DeclarativeCatalogPart.BorderWidth 属性

定义

DeclarativeCatalogPart 控件不使用此继承的属性。This inherited property is not used by the DeclarativeCatalogPart control. 此属性被重写只是为了防止它出现在 Microsoft Visual Studio 2005 设计器工具中。The property is overridden only for the purpose of preventing it from appearing in Microsoft Visual Studio 2005 designer tools.

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

属性值

Unit

Unit,确定控件四周的边框宽度。A Unit that determines the width of the border around a control.

属性

注解

BorderWidth作为控件的成员的属性未在用于 DeclarativeCatalogPart 呈现控件的 Web 部件控件集内的任何位置使用。The BorderWidth property, as a member of the DeclarativeCatalogPart control, is not used anywhere within the Web Parts control set for rendering the control. 因此,不应使用此属性;设置它不会对呈现产生任何影响。Therefore, you should not use this property; setting it has no effect on rendering.

若要防止开发人员使用此属性,请将代码特性设置为在 Visual Studio 中隐藏它。To prevent developers from using this property, code attributes are set on it to hide it in Visual Studio. DeclarativeCatalogPart Visual Studio 中使用控件时, BorderWidth 属性在 "属性" 窗格或 IntelliSense 中不可见。When you work with a DeclarativeCatalogPart control in Visual Studio, the BorderWidth property is not visible in the Properties pane or IntelliSense.

如果要使用此属性,则需要创建从类继承的自定义类 CatalogPartIf you want to use this property, you need to create a custom class that inherits from the CatalogPart class. 自定义类可以使用继承的 BorderWidth 属性,也可以重写该属性并更改其行为。The custom class can either use the inherited BorderWidth property as it is, or override it and change its behavior.

无法通过主题或样式表主题设置此属性。This property cannot be set by themes or style sheet themes. 有关详细信息,请参阅 ThemeableAttributeASP.NET 主题和外观For more information, see ThemeableAttribute and ASP.NET Themes and Skins.

适用于

另请参阅