Share via


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

StyleStyleCollection 物件之以零起始的索引位置。

屬性值

Style

Style 中位於指定索引處的 StyleCollection 物件。

備註

使用這個索引子,即可 Style StyleCollection 使用簡單的陣列標記法,從位於指定索引處的存取物件。 索引子可讓您直接修改或取代 Style 集合中的物件。

適用於

另請參閱