DesignerAutoFormatCollection.Item[Int32] 属性

定义

获取或设置 DesignerAutoFormat 集合中指定索引处的对象。

public:
 property System::Web::UI::Design::DesignerAutoFormat ^ default[int] { System::Web::UI::Design::DesignerAutoFormat ^ get(int index); };
public System.Web.UI.Design.DesignerAutoFormat this[int index] { get; }
member this.Item(int) : System.Web.UI.Design.DesignerAutoFormat
Default Public ReadOnly Property Item(index As Integer) As DesignerAutoFormat

参数

index
Int32

要获取或设置集合中的从零开始的 DesignerAutoFormat 索引。

属性值

DesignerAutoFormat集合中指定索引处。

例外

index 小于零。

-或-

index 大于 Count 属性。

注解

Item[]使用索引器检索DesignerAutoFormat集合中指定索引处的对象,或设置集合中指定索引处的格式。 可以使用数组表示法为集合中的元素编制索引。 例如,可以使用 Microsoft VisualBas 为索引c2 />为 C# 为元素编制索引。

如果具有对 DesignerAutoFormat 对象的引用,并且需要集合中对象的索引,请使用该方法 IndexOf

适用于

另请参阅