DesignerOptionService.DesignerOptionCollection DesignerOptionService.DesignerOptionCollection DesignerOptionService.DesignerOptionCollection DesignerOptionService.DesignerOptionCollection Class

定义

包含设计器选项的集合。Contains a collection of designer options. 此类不能被继承。This class cannot be inherited.

public: ref class DesignerOptionService::DesignerOptionCollection sealed : System::Collections::IList
[System.ComponentModel.TypeConverter(typeof(System.ComponentModel.Design.DesignerOptionService/DesignerOptionConverter))]
public sealed class DesignerOptionService.DesignerOptionCollection : System.Collections.IList
type DesignerOptionService.DesignerOptionCollection = class
    interface IList
    interface ICollection
    interface IEnumerable
Public NotInheritable Class DesignerOptionService.DesignerOptionCollection
Implements IList
继承
DesignerOptionService.DesignerOptionCollectionDesignerOptionService.DesignerOptionCollectionDesignerOptionService.DesignerOptionCollectionDesignerOptionService.DesignerOptionCollection
属性
实现

注解

类是包含其他DesignerOptionService.DesignerOptionCollection对象的集合。 DesignerOptionService.DesignerOptionCollectionThe DesignerOptionService.DesignerOptionCollection class is a collection that contains other DesignerOptionService.DesignerOptionCollection objects. 这会形成一个选项树, 其中树的每个分支都有一个名称和一个可能的属性集。This forms a tree of options, with each branch of the tree having a name and a possible collection of properties. 树的每个父分支都包含所有子分支的属性的联合。Each parent branch of the tree contains a union of the properties of all the child branches.

属性

Count Count Count Count

获取此 DesignerOptionService.DesignerOptionCollection 包含的子选项集合的数量。Gets the number of child option collections this DesignerOptionService.DesignerOptionCollection contains.

Item[Int32] Item[Int32] Item[Int32] Item[Int32]

在给定索引处获取子集合。Gets the child collection at the given index.

Item[String] Item[String] Item[String] Item[String]

在给定名称处获取子集合。Gets the child collection at the given name.

Name Name Name Name

获取此 DesignerOptionService.DesignerOptionCollection 的名称。Gets the name of this DesignerOptionService.DesignerOptionCollection.

Parent Parent Parent Parent

获取父集合对象。Gets the parent collection object.

Properties Properties Properties Properties

获取由此 DesignerOptionService.DesignerOptionCollection 提供的属性集合,以及它的所有子级。Gets the collection of properties offered by this DesignerOptionService.DesignerOptionCollection, along with all of its children.

方法

CopyTo(Array, Int32) CopyTo(Array, Int32) CopyTo(Array, Int32) CopyTo(Array, Int32)

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

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

确定指定的对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetEnumerator() GetEnumerator() GetEnumerator() GetEnumerator()

返回可用于循环访问此集合的 IEnumeratorReturns an IEnumerator that can be used to iterate this collection.

GetHashCode() GetHashCode() GetHashCode() GetHashCode()

作为默认哈希函数。Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

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

(Inherited from Object)
IndexOf(DesignerOptionService+DesignerOptionCollection) IndexOf(DesignerOptionService+DesignerOptionCollection) IndexOf(DesignerOptionService+DesignerOptionCollection) IndexOf(DesignerOptionService+DesignerOptionCollection)

返回在此集合范围内给定值的第一个匹配项的索引。Returns the index of the first occurrence of a given value in a range of this collection.

MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

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

(Inherited from Object)
ShowDialog() ShowDialog() ShowDialog() ShowDialog()

显示对话框用户界面 (UI),用户可以通过它配置此 DesignerOptionService.DesignerOptionCollection 中的选项。Displays a dialog box user interface (UI) with which the user can configure the options in this DesignerOptionService.DesignerOptionCollection.

ToString() ToString() ToString() ToString()

返回表示当前对象的字符串。Returns a string that represents the current object.

(Inherited from Object)

显式界面实现

ICollection.IsSynchronized ICollection.IsSynchronized ICollection.IsSynchronized ICollection.IsSynchronized

获取一个值,该值指示对集合的访问是否经过同步因而是线程安全的。Gets a value indicating whether access to the collection is synchronized and, therefore, thread safe.

ICollection.SyncRoot ICollection.SyncRoot ICollection.SyncRoot ICollection.SyncRoot

获取可用于同步对集合的访问的对象。Gets an object that can be used to synchronize access to the collection.

IList.Add(Object) IList.Add(Object) IList.Add(Object) IList.Add(Object)

将某项添加到 IList 中。Adds an item to the IList.

IList.Clear() IList.Clear() IList.Clear() IList.Clear()

从集合中移除所有项。Removes all items from the collection.

IList.Contains(Object) IList.Contains(Object) IList.Contains(Object) IList.Contains(Object)

确定集合中是否包含特定值。Determines whether the collection contains a specific value.

IList.IndexOf(Object) IList.IndexOf(Object) IList.IndexOf(Object) IList.IndexOf(Object)

确定集合中特定项的索引。Determines the index of a specific item in the collection.

IList.Insert(Int32, Object) IList.Insert(Int32, Object) IList.Insert(Int32, Object) IList.Insert(Int32, Object)

将一项插入集合中指定索引处。Inserts an item into the collection at the specified index.

IList.IsFixedSize IList.IsFixedSize IList.IsFixedSize IList.IsFixedSize

获取一个值,该值指示集合是否具有固定大小。Gets a value indicating whether the collection has a fixed size.

IList.IsReadOnly IList.IsReadOnly IList.IsReadOnly IList.IsReadOnly

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

IList.Item[Int32] IList.Item[Int32] IList.Item[Int32] IList.Item[Int32]

获取或设置指定索引处的元素。Gets or sets the element at the specified index.

IList.Remove(Object) IList.Remove(Object) IList.Remove(Object) IList.Remove(Object)

从集合中移除特定对象的第一个匹配项。Removes the first occurrence of a specific object from the collection.

IList.RemoveAt(Int32) IList.RemoveAt(Int32) IList.RemoveAt(Int32) IList.RemoveAt(Int32)

移除指定索引处的集合项。Removes the collection item at the specified index.

扩展方法

Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable)

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

OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable)

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

AsParallel(IEnumerable) AsParallel(IEnumerable) AsParallel(IEnumerable) AsParallel(IEnumerable)

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

AsQueryable(IEnumerable) AsQueryable(IEnumerable) AsQueryable(IEnumerable) AsQueryable(IEnumerable)

IEnumerable 转换为 IQueryableConverts an IEnumerable to an IQueryable.

适用于

另请参阅