RibbonControlService.SetToolTipDescription 方法

设置对象的 ToolTipDescription 附加属性的值。

命名空间:  Microsoft.Windows.Controls.Ribbon
程序集:  RibbonControlsLibrary(在 RibbonControlsLibrary.dll 中)

语法

声明
Public Shared Sub SetToolTipDescription ( _
    element As DependencyObject, _
    value As String _
)
public static void SetToolTipDescription(
    DependencyObject element,
    string value
)
public:
static void SetToolTipDescription(
    DependencyObject^ element, 
    String^ value
)
static member SetToolTipDescription : 
        element:DependencyObject * 
        value:string -> unit 
public static function SetToolTipDescription(
    element : DependencyObject, 
    value : String
)

参数

异常

异常 条件
ArgumentNullException

指定的 element 为 nullnull 引用(在 Visual Basic 中为 Nothing)。

.NET Framework 安全性

请参见

参考

RibbonControlService 类

Microsoft.Windows.Controls.Ribbon 命名空间