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 の、0 から始まるインデックス。

プロパティ値

コレクション内の指定したインデックス位置の DesignerAutoFormat

例外

index が 0 未満です。

- または -

indexCount プロパティより大きい値です。

注釈

インデクサーを Item[] 使用して、コレクション内の DesignerAutoFormat 指定したインデックスにあるオブジェクトを取得するか、コレクション内の指定したインデックスで形式を設定します。 配列表記を使用して、コレクション内の要素にインデックスを付けることができます。 たとえば、visualBasic または AutoFormats[i] C# の場合Microsoft表記をAutoFormats(i)使用して、インデックスi位置の要素にインデックスを付けることができます。

オブジェクトへの参照があり、コレクション内の DesignerAutoFormat オブジェクトのインデックスが必要な場合は、 メソッドを IndexOf 使用します。

適用対象

こちらもご覧ください