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 群組的 屬性。

適用於