DeclarativeCatalogPart.BorderColor 属性
定义
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::Drawing::Color BorderColor { System::Drawing::Color get(); void set(System::Drawing::Color value); };
[System.ComponentModel.Browsable(false)]
[System.Web.UI.Themeable(false)]
public override System.Drawing.Color BorderColor { get; set; }
[<System.ComponentModel.Browsable(false)>]
[<System.Web.UI.Themeable(false)>]
member this.BorderColor : System.Drawing.Color with get, set
Public Overrides Property BorderColor As Color
属性值
Color,用作控件四周的边框颜色。A Color that is used as the color of the border around a control.
- 属性
注解
BorderColor作为控件的成员的属性未在用于 DeclarativeCatalogPart 呈现控件的 Web 部件控件集内的任何位置使用。The BorderColor 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 中使用控件时, BorderColor 属性在 "属性" 窗格或 IntelliSense 中不可见。When you work with a DeclarativeCatalogPart control in Visual Studio, the BorderColor property is not visible in the Properties pane or IntelliSense.
如果要使用此属性,则需要创建从类继承的自定义类 CatalogPart 。If you want to use this property, you need to create a custom class that inherits from the CatalogPart class. 自定义类可以使用继承的 BorderColor 属性,也可以重写该属性并更改其行为。The custom class can either use the inherited BorderColor property as it is, or override it and change its behavior.
无法通过主题或样式表主题设置此属性。This property cannot be set by themes or style sheet themes. 有关详细信息,请参阅 ThemeableAttribute 和 ASP.NET 主题和外观。For more information, see ThemeableAttribute and ASP.NET Themes and Skins.