語言

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

集合中 to get 或 set 的 DesignerAutoFormat 零基索引。

屬性值

在集合中指定的索引處。DesignerAutoFormat

例外狀況

index 小於零。

-或-

index大於屬性。Count

備註

使用 Item[] 索引器在集合中指定的索引處檢索 DesignerAutoFormat 物件,或在集合中指定索引處設定格式。 你可以用陣列符號來索引集合中的元素。 例如,你可以用 i 表示 Microsoft VisualBasic 的元素索引為 AutoFormats(i),C# 則用 AutoFormats[i]。

當你有物件 DesignerAutoFormat 的參考,需要集合中物件的索引時,使用該 IndexOf 方法。

適用於

另請參閱