ToolStrip.DisplayedItems ToolStrip.DisplayedItems ToolStrip.DisplayedItems ToolStrip.DisplayedItems Property


获取当前在 ToolStrip 上显示的项的子集,其中包括自动添加到 ToolStrip 中的项。Gets the subset of items that are currently displayed on the ToolStrip, including items that are automatically added into the ToolStrip.

protected public:
 virtual property System::Windows::Forms::ToolStripItemCollection ^ DisplayedItems { System::Windows::Forms::ToolStripItemCollection ^ get(); };
protected internal virtual System.Windows.Forms.ToolStripItemCollection DisplayedItems { get; }
member this.DisplayedItems : System.Windows.Forms.ToolStripItemCollection
Protected Friend Overridable ReadOnly Property DisplayedItems As ToolStripItemCollection


一个 ToolStripItemCollection,表示当前在 ToolStrip 上显示的项。A ToolStripItemCollection representing the items that are currently displayed on the ToolStrip.


DisplayedItems使用属性可仅访问当前显示的那些项。Use the DisplayedItems property to access only those items that are currently displayed. 这些是当前不在溢出菜单中的项。These are the items that are not currently in an overflow menu.

使用集合来检索的所有项ToolStripItemsUse the Items collection to retrieve all the items of a ToolStrip.