ToolStripPanel.ToolStripPanelRowCollection 类

定义

表示 ToolStripPanelRow 中的所有 ToolStripPanel 对象。Represents all the ToolStripPanelRow objects in a ToolStripPanel.

public: ref class ToolStripPanel::ToolStripPanelRowCollection : System::Windows::Forms::Layout::ArrangedElementCollection, System::Collections::IList
[System.ComponentModel.ListBindable(false)]
[System.Runtime.InteropServices.ComVisible(false)]
public class ToolStripPanel.ToolStripPanelRowCollection : System.Windows.Forms.Layout.ArrangedElementCollection, System.Collections.IList
type ToolStripPanel.ToolStripPanelRowCollection = class
    inherit ArrangedElementCollection
    interface IList
    interface ICollection
    interface IEnumerable
Public Class ToolStripPanel.ToolStripPanelRowCollection
Inherits ArrangedElementCollection
Implements IList
继承
ToolStripPanel.ToolStripPanelRowCollection
属性
实现

构造函数

ToolStripPanel.ToolStripPanelRowCollection(ToolStripPanel)

初始化指定 ToolStripPanel.ToolStripPanelRowCollection 中的 ToolStripPanel 类的新实例。Initializes a new instance of the ToolStripPanel.ToolStripPanelRowCollection class in the specified ToolStripPanel.

ToolStripPanel.ToolStripPanelRowCollection(ToolStripPanel, ToolStripPanelRow[])

用指定的 ToolStripPanel.ToolStripPanelRowCollection 中的指定数目的行初始化 ToolStripPanel 类的新实例。Initializes a new instance of the ToolStripPanel.ToolStripPanelRowCollection class with the specified number of rows in the specified ToolStripPanel.

属性

Count

获取集合中的元素数。Gets the number of elements in the collection.

(继承自 ArrangedElementCollection)
IsReadOnly

获取一个值,该值指示集合是否为只读。Gets a value indicating whether the collection is read-only.

(继承自 ArrangedElementCollection)
Item[Int32]

获取 ToolStripPanelRow 中的一个特定 ToolStripPanel.ToolStripPanelRowCollectionGets a particular ToolStripPanelRow within the ToolStripPanel.ToolStripPanelRowCollection.

方法

Add(ToolStripPanelRow)

将指定的 ToolStripPanelRow 添加到 ToolStripPanel.ToolStripPanelRowCollectionAdds the specified ToolStripPanelRow to the ToolStripPanel.ToolStripPanelRowCollection.

AddRange(ToolStripPanel+ToolStripPanelRowCollection)

将指定的 ToolStripPanel.ToolStripPanelRowCollection 添加到 ToolStripPanelAdds the specified ToolStripPanel.ToolStripPanelRowCollection to a ToolStripPanel.

AddRange(ToolStripPanelRow[])

ToolStripPanelRow 对象数组添加到 ToolStripPanelAdds an array of ToolStripPanelRow objects to a ToolStripPanel.

Clear()

ToolStripPanelRow 中移除所有 ToolStripPanel.ToolStripPanelRowCollection 对象。Removes all ToolStripPanelRow objects from the ToolStripPanel.ToolStripPanelRowCollection.

Contains(ToolStripPanelRow)

确定指定的 ToolStripPanelRow 是否在 ToolStripPanel.ToolStripPanelRowCollection 中。Determines whether the specified ToolStripPanelRow is in the ToolStripPanel.ToolStripPanelRowCollection.

CopyTo(Array, Int32)

从目标数组的指定索引处开始将此集合的全部内容复制到兼容的一维 ArrayCopies the entire contents of this collection to a compatible one-dimensional Array, starting at the specified index of the target array.

(继承自 ArrangedElementCollection)
CopyTo(ToolStripPanelRow[], Int32)

从一个现有数组的指定位置开始,将整个 ToolStripPanel.ToolStripPanelRowCollection 复制到该数组中。Copies the entire ToolStripPanel.ToolStripPanelRowCollection into an existing array at a specified location within the array.

Equals(Object)

确定两个 ArrangedElementCollection 实例是否相等。Determines whether two ArrangedElementCollection instances are equal.

(继承自 ArrangedElementCollection)
GetEnumerator()

返回一个用于访问整个集合的枚举数。Returns an enumerator for the entire collection.

(继承自 ArrangedElementCollection)
GetHashCode()

返回此实例的哈希代码。Returns the hash code for this instance.

(继承自 ArrangedElementCollection)
GetType()

获取当前实例的 TypeGets the Type of the current instance.

(继承自 Object)
IndexOf(ToolStripPanelRow)

获取指定的 ToolStripPanelRowToolStripPanel.ToolStripPanelRowCollection 中的索引。Gets the index of the specified ToolStripPanelRow in the ToolStripPanel.ToolStripPanelRowCollection.

Insert(Int32, ToolStripPanelRow)

ToolStripPanelRow 中的指定位置插入指定的 ToolStripPanel.ToolStripPanelRowCollectionInserts the specified ToolStripPanelRow at the specified location in the ToolStripPanel.ToolStripPanelRowCollection.

MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(继承自 Object)
Remove(ToolStripPanelRow)

ToolStripPanelRow 中移除指定的 ToolStripPanel.ToolStripPanelRowCollectionRemoves the specified ToolStripPanelRow from the ToolStripPanel.ToolStripPanelRowCollection.

RemoveAt(Int32)

ToolStripPanelRow 中移除指定索引处的 ToolStripPanel.ToolStripPanelRowCollectionRemoves the ToolStripPanelRow at the specified index from the ToolStripPanel.ToolStripPanelRowCollection.

ToString()

返回一个表示当前对象的 string。Returns a string that represents the current object.

(继承自 Object)

显式界面实现

ICollection.IsSynchronized

有关此成员的说明,请参见 IsSynchronized 属性。For a description of this member, see the IsSynchronized property.

(继承自 ArrangedElementCollection)
ICollection.SyncRoot

有关此成员的说明,请参见 SyncRoot 属性。For a description of this member, see the SyncRoot property.

(继承自 ArrangedElementCollection)
IList.Add(Object)

有关此成员的说明,请参见 Add(Object)For a description of this member, see Add(Object).

IList.Clear()

有关此成员的说明,请参见 Clear()For a description of this member, see Clear().

IList.Contains(Object)

有关此成员的说明,请参见 Contains(Object)For a description of this member, see Contains(Object).

IList.IndexOf(Object)

有关此成员的说明,请参见 IndexOf(Object)For a description of this member, see IndexOf(Object).

IList.Insert(Int32, Object)

有关此成员的说明,请参见 Insert(Int32, Object)For a description of this member, see Insert(Int32, Object).

IList.IsFixedSize

有关此成员的说明,请参见 IsFixedSizeFor a description of this member, see IsFixedSize.

IList.IsReadOnly

有关此成员的说明,请参见 IsReadOnlyFor a description of this member, see IsReadOnly.

IList.Item[Int32]

有关此成员的说明,请参见 Item[Int32]For a description of this member, see Item[Int32].

IList.Remove(Object)

有关此成员的说明,请参见 Remove(Object)For a description of this member, see Remove(Object).

IList.RemoveAt(Int32)

有关此成员的说明,请参见 RemoveAt(Int32)For a description of this member, see RemoveAt(Int32).

扩展方法

Cast<TResult>(IEnumerable)

IEnumerable 的元素强制转换为指定的类型。Casts the elements of an IEnumerable to the specified type.

OfType<TResult>(IEnumerable)

根据指定类型筛选 IEnumerable 的元素。Filters the elements of an IEnumerable based on a specified type.

AsParallel(IEnumerable)

启用查询的并行化。Enables parallelization of a query.

AsQueryable(IEnumerable)

IEnumerable 转换为 IQueryableConverts an IEnumerable to an IQueryable.

适用于