語言

StyleCollection.Item[Int32] 屬性

定義

取得 Style 物件在指定的索引位置 StyleCollection 。

public:
 property System::Web::UI::WebControls::Style ^ default[int] { System::Web::UI::WebControls::Style ^ get(int i); void set(int i, System::Web::UI::WebControls::Style ^ value); };
public System.Web.UI.WebControls.Style this[int i] { get; set; }
member this.Item(int) : System.Web.UI.WebControls.Style with get, set
Default Public Property Item(i As Integer) As Style

參數

i
Int32

物件在 Style中以零為基礎的StyleCollection指標位置。

屬性值

在 . 中指定索引Style的物件。StyleCollection

備註

使用此索引器使用簡單的陣列符號,從指定索引處存取 Style 物件 StyleCollection 。 索引器允許你直接修改或替換集合中的物件 Style 。

適用於

另請參閱