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 オブジェクトを取得するか、コレクション内の指定したインデックスに書式を設定します。 配列表記を使用して、コレクション内の要素のインデックスを作成できます。 たとえば、index i の要素に、visualBasic の場合は AutoFormats(i)、C# の場合は Microsoft AutoFormats[i] という表記でインデックスを作成できます。

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

適用対象

こちらもご覧ください