ListView.BorderStyle 属性

定义

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

public:
 virtual property System::Web::UI::WebControls::BorderStyle BorderStyle { System::Web::UI::WebControls::BorderStyle get(); void set(System::Web::UI::WebControls::BorderStyle value); };
[System.ComponentModel.Browsable(false)]
public override System.Web.UI.WebControls.BorderStyle BorderStyle { get; set; }
[<System.ComponentModel.Browsable(false)>]
member this.BorderStyle : System.Web.UI.WebControls.BorderStyle with get, set
Public Overrides Property BorderStyle As BorderStyle

属性值

BorderStyle

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

属性

例外

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

注解

控件不支持样式属性 ListViewStyle properties are not supported by the ListView control. 如果尝试设置该 BorderStyle 属性,则 NotSupportedException 会引发异常。If you try to set the BorderStyle 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.

适用于