获取或设置集合的 RibbonGroup 名称,该名称规定了工具栏的大小减少时使用分组大小定义的顺序。
命名空间: Microsoft.Windows.Controls.Ribbon
程序集: RibbonControlsLibrary(在 RibbonControlsLibrary.dll 中)
语法
声明
<TypeConverterAttribute(GetType(StringCollectionConverter))> _
Public Property GroupSizeReductionOrder As StringCollection
Get
Set
[TypeConverterAttribute(typeof(StringCollectionConverter))]
public StringCollection GroupSizeReductionOrder { get; set; }
[TypeConverterAttribute(typeof(StringCollectionConverter))]
public:
property StringCollection^ GroupSizeReductionOrder {
StringCollection^ get ();
void set (StringCollection^ value);
}
[<TypeConverterAttribute(typeof(StringCollectionConverter))>]
member GroupSizeReductionOrder : StringCollection with get, set
function get GroupSizeReductionOrder () : StringCollection
function set GroupSizeReductionOrder (value : StringCollection)
属性值
类型:System.Collections.Specialized.StringCollection
RibbonGroup 名称的集合,指定在减小 Ribbon 的大小时,应用组大小定义的顺序。注册的默认值为 nullnull 引用(在 Visual Basic 中为 Nothing)。有关可以影响值的因素的更多信息,请参见 依赖项属性值优先级。
依赖项属性信息
标识符字段 |
|
设置为 true 的元数据属性 |
无 |
示例
下面的示例演示如何指定 GroupSizeReductionOrder。
<ribbon:RibbonTab Header="Home"
GroupSizeReductionOrder="Clipboard, Insert, Insert, Paragraph, Clipboard, Editing, Font, Clipboard" >
<ribbon:RibbonGroup Header="Clipboard" Name="Clipboard" SmallImageSource="Images/Paste16.png">
...
</ribbon:RibbonGroup>
<ribbon:RibbonGroup Header="Font" Name="Font" SmallImageSource="Images\FontColor16.png">
...
</ribbon:RibbonGroup>
<ribbon:RibbonGroup Header="Paragraph" Name="Paragraph" SmallImageSource="Images/AlignLeft16.png">
...
</ribbon:RibbonGroup>
<ribbon:RibbonGroup Header="Insert" Name="Insert" SmallImageSource="Images/InsertPicture16.png">
...
</ribbon:RibbonGroup>
<ribbon:RibbonGroup Header="Editing" Name="Editing" SmallImageSource="Images/Find16.png">
...
</ribbon:RibbonGroup>
</ribbon:RibbonTab>
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。
请参见
参考
Microsoft.Windows.Controls.Ribbon 命名空间