RibbonControlService.GetQuickAccessToolBarId(DependencyObject) 方法

定義

取得物件之 QuickAccessToolBarId 附加屬性的值。Gets the value of the QuickAccessToolBarId attached property for an object.

public:
 static System::Object ^ GetQuickAccessToolBarId(System::Windows::DependencyObject ^ element);
public static object GetQuickAccessToolBarId (System.Windows.DependencyObject element);
static member GetQuickAccessToolBarId : System.Windows.DependencyObject -> obj
Public Shared Function GetQuickAccessToolBarId (element As DependencyObject) As Object

參數

element
DependencyObject

要讀取屬性值的物件。The object from which the property value is read.

傳回

Object

物件的 QuickAccessToolBarId 屬性值。The object's QuickAccessToolBarId property value.

例外狀況

指定的 elementnullThe specified element is null.

適用於