MenuItemCollection 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
一组相关的 MenuItem 对象。
public ref class MenuItemCollection sealed : System::Collections::Generic::ICollection<Microsoft::Maui::Controls::MenuItem ^>, System::Collections::Generic::IEnumerable<Microsoft::Maui::Controls::MenuItem ^>, System::Collections::Generic::IList<Microsoft::Maui::Controls::MenuItem ^>, System::Collections::Specialized::INotifyCollectionChanged
public sealed class MenuItemCollection : System.Collections.Generic.ICollection<Microsoft.Maui.Controls.MenuItem>, System.Collections.Generic.IEnumerable<Microsoft.Maui.Controls.MenuItem>, System.Collections.Generic.IList<Microsoft.Maui.Controls.MenuItem>, System.Collections.Specialized.INotifyCollectionChanged
type MenuItemCollection = class
interface seq<MenuItem>
interface IEnumerable
interface IList<MenuItem>
interface ICollection<MenuItem>
interface INotifyCollectionChanged
Public NotInheritable Class MenuItemCollection
Implements ICollection(Of MenuItem), IEnumerable(Of MenuItem), IList(Of MenuItem), INotifyCollectionChanged
- 继承
-
MenuItemCollection
- 实现
构造函数
MenuItemCollection() |
一组相关的 MenuItem 对象。 |
属性
Count |
一组相关的 MenuItem 对象。 |
IsReadOnly |
一组相关的 MenuItem 对象。 |
Item[Int32] |
一组相关的 MenuItem 对象。 |
方法
Add(MenuItem) |
一组相关的 MenuItem 对象。 |
Clear() |
一组相关的 MenuItem 对象。 |
Contains(MenuItem) |
一组相关的 MenuItem 对象。 |
CopyTo(MenuItem[], Int32) |
一组相关的 MenuItem 对象。 |
GetEnumerator() |
一组相关的 MenuItem 对象。 |
IndexOf(MenuItem) |
一组相关的 MenuItem 对象。 |
Insert(Int32, MenuItem) |
一组相关的 MenuItem 对象。 |
Remove(MenuItem) |
一组相关的 MenuItem 对象。 |
RemoveAt(Int32) |
一组相关的 MenuItem 对象。 |
显式接口实现
IEnumerable.GetEnumerator() |
一组相关的 MenuItem 对象。 |
INotifyCollectionChanged.CollectionChanged |
一组相关的 MenuItem 对象。 |
适用于
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈