共用方式為


RibbonGroup.GroupSizeDefinitions 屬性

定義

取得或設定功能區群組的RibbonGroupSizeDefinition集合。

public:
 property System::Windows::Controls::Ribbon::RibbonGroupSizeDefinitionBaseCollection ^ GroupSizeDefinitions { System::Windows::Controls::Ribbon::RibbonGroupSizeDefinitionBaseCollection ^ get(); void set(System::Windows::Controls::Ribbon::RibbonGroupSizeDefinitionBaseCollection ^ value); };
public System.Windows.Controls.Ribbon.RibbonGroupSizeDefinitionBaseCollection GroupSizeDefinitions { get; set; }
member this.GroupSizeDefinitions : System.Windows.Controls.Ribbon.RibbonGroupSizeDefinitionBaseCollection with get, set
Public Property GroupSizeDefinitions As RibbonGroupSizeDefinitionBaseCollection

屬性值

RibbonGroupSizeDefinitionBaseCollection

RibbonGroupSizeDefinition 物件的集合,描述在不同大小之 RibbonGroup 群組中控制大小。

範例

下列範例顯示 GroupSizeDefinitions 指定三個不同群組大小的集合。

<ribbon:RibbonGroup.GroupSizeDefinitions>  
  <ribbon:RibbonGroupSizeDefinition>  
    <ribbon:RibbonControlSizeDefinition ImageSize="Large" IsLabelVisible="True" />  
    <ribbon:RibbonControlSizeDefinition ImageSize="Small" IsLabelVisible="True" />  
    <ribbon:RibbonControlSizeDefinition ImageSize="Small" IsLabelVisible="True" />  
  </ribbon:RibbonGroupSizeDefinition>  
  <ribbon:RibbonGroupSizeDefinition>  
    <ribbon:RibbonControlSizeDefinition ImageSize="Large" IsLabelVisible="True" />  
    <ribbon:RibbonControlSizeDefinition ImageSize="Small" IsLabelVisible="False" />  
    <ribbon:RibbonControlSizeDefinition ImageSize="Small" IsLabelVisible="False" />  
  </ribbon:RibbonGroupSizeDefinition>  
  <ribbon:RibbonGroupSizeDefinition IsCollapsed="True" />  
</ribbon:RibbonGroup.GroupSizeDefinitions>  

備註

相依性屬性資訊

識別碼欄位 GroupSizeDefinitionsProperty
中繼資料屬性設定為 true

適用於