RibbonControlService.GetControlSizeDefinition(DependencyObject) 方法

定义

获取对象的 ControlSizeDefinition 附加属性的值。

public:
 static System::Windows::Controls::Ribbon::RibbonControlSizeDefinition ^ GetControlSizeDefinition(System::Windows::DependencyObject ^ element);
public static System.Windows.Controls.Ribbon.RibbonControlSizeDefinition GetControlSizeDefinition (System.Windows.DependencyObject element);
static member GetControlSizeDefinition : System.Windows.DependencyObject -> System.Windows.Controls.Ribbon.RibbonControlSizeDefinition
Public Shared Function GetControlSizeDefinition (element As DependencyObject) As RibbonControlSizeDefinition

参数

element
DependencyObject

从中读取属性值的对象。

返回

对象的 ControlSizeDefinition 属性值。

例外

指定的 elementnull

适用于