ListView.AccessKey 屬性

定義

覆寫 AccessKey 屬性。 ListView 控制項不支援設定這個屬性。

public:
 virtual property System::String ^ AccessKey { System::String ^ get(); void set(System::String ^ value); };
[System.ComponentModel.Browsable(false)]
public override string AccessKey { get; set; }
[<System.ComponentModel.Browsable(false)>]
member this.AccessKey : string with get, set
Public Overrides Property AccessKey As String

屬性值

Empty,表示屬性未設定。

屬性

例外狀況

已嘗試設定 AccessKey 屬性。

備註

控制項不支援 ListView 樣式屬性。 如果您嘗試設定 AccessKey 屬性, NotSupportedException 則會擲回例外狀況。 如果您取得 屬性,它會傳回基類對應屬性的預設值。

若要設定 ListView 控制項的樣式,您必須使用級聯樣式表單 (CSS) 類別或內嵌樣式專案來設定範本內的 ListView 控制項樣式。

適用於

另請參閱