RibbonControlService.SetControlSizeDefinition 方法

定义

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

public:
 static void SetControlSizeDefinition(System::Windows::DependencyObject ^ element, System::Windows::Controls::Ribbon::RibbonControlSizeDefinition ^ value);
public static void SetControlSizeDefinition (System.Windows.DependencyObject element, System.Windows.Controls.Ribbon.RibbonControlSizeDefinition value);
static member SetControlSizeDefinition : System.Windows.DependencyObject * System.Windows.Controls.Ribbon.RibbonControlSizeDefinition -> unit
Public Shared Sub SetControlSizeDefinition (element As DependencyObject, value As RibbonControlSizeDefinition)

参数

element
DependencyObject

将附加属性写入到的对象。

value
RibbonControlSizeDefinition

要设置的值。

例外

指定的 elementnull

适用于