ListView.AccessKey 属性

定义

重写 AccessKey 属性。Overrides the AccessKey property. ListView 控件不支持设置此属性。Setting this property is not supported by the ListView control.

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

属性值

String

Empty,表示该属性未设置。Empty, which indicates that the property is not set.

属性

例外

已尝试设置 AccessKey 属性。An attempt was made to set the AccessKey property.

注解

控件不支持样式属性 ListViewStyle properties are not supported by the ListView control. 如果尝试设置该 AccessKey 属性,则 NotSupportedException 会引发异常。If you try to set the AccessKey property, a NotSupportedException exception is thrown. 如果获得属性,它将返回基类的相应属性的默认值。If you get the property, it returns the default value of the corresponding property of the base class.

若要为 ListView 控件的样式,必须 ListView 使用级联样式表 (CSS) 类或内联样式元素来为模板内的控件制定样式。To style the ListView control, you must style the controls inside the ListView templates by using cascading style sheets (CSS) classes or inline style elements.

适用于