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 visualBasic 或 AutoFormats[i] C# 的標記法 AutoFormats(i) ,在索引處編制元素的索引 i

當您有 物件的參考 DesignerAutoFormat ,而且需要集合中物件的索引時,請使用 IndexOf 方法。

適用於

另請參閱