RibbonControlService.SetToolTipImageSource 方法

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

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

语法

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

参数

异常

异常 条件
ArgumentNullException

指定的 element 为 null。

.NET Framework 安全性

请参见

参考

RibbonControlService 类

Microsoft.Windows.Controls.Ribbon 命名空间