RibbonControlService.SetToolTipImageSource 方法

定義

設定物件的 ToolTipImageSource 附加屬性值。

public:
 static void SetToolTipImageSource(System::Windows::DependencyObject ^ element, System::Windows::Media::ImageSource ^ value);
public static void SetToolTipImageSource (System.Windows.DependencyObject element, System.Windows.Media.ImageSource value);
static member SetToolTipImageSource : System.Windows.DependencyObject * System.Windows.Media.ImageSource -> unit
Public Shared Sub SetToolTipImageSource (element As DependencyObject, value As ImageSource)

參數

element
DependencyObject

要寫入附加屬性的物件。

value
ImageSource

要設定的值。

例外狀況

指定的 elementnull

適用於