共用方式為


RibbonControlService.SetDefaultControlSizeDefinition 方法

定義

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

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

參數

element
DependencyObject

要寫入附加屬性的物件。

value
RibbonControlSizeDefinition

要設定的值。

例外狀況

指定的 elementnull

適用於