DesignerAutoFormatCollection.Item[Int32] 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得或設定位於集合中指定索引上的 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。
例外狀況
備註
Item[]使用索引子擷取 DesignerAutoFormat 集合內指定索引處的物件,或設定集合內指定索引處的格式。 您可以使用陣列標記法,為集合中的專案編制索引。 例如,您可以使用 Microsoft visualBasic 或 AutoFormats[i]
C# 的標記法 AutoFormats(i)
,在索引處編制元素的索引 i
。
當您有 物件的參考 DesignerAutoFormat ,而且需要集合中物件的索引時,請使用 IndexOf 方法。
適用於
另請參閱
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應