RibbonGroup.Items 属性

定义

获取组中的控件。

public:
 property System::Collections::Generic::IList<Microsoft::Office::Tools::Ribbon::RibbonControl ^> ^ Items { System::Collections::Generic::IList<Microsoft::Office::Tools::Ribbon::RibbonControl ^> ^ get(); };
public System.Collections.Generic.IList<Microsoft.Office.Tools.Ribbon.RibbonControl> Items { get; }
member this.Items : System.Collections.Generic.IList<Microsoft.Office.Tools.Ribbon.RibbonControl>
Public ReadOnly Property Items As IList(Of RibbonControl)

属性值

组中控件的集合。

例外

加载功能区后,尝试添加、移除或替换 RibbonControl

注解

可以在运行时将功能区控件添加到组,但只能在加载功能区之前添加。 创建控件的实例,然后将新控件添加到集合。Items 有关详细信息,请参阅 功能区对象模型概述

使用功能区Designer将控件添加到组时,Visual Studio 会自动将控件添加到Items组的 属性。

适用于