ControlSkin Class
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents a control skin, which is a means to define stylistic properties that are applied to an ASP.NET Web server control.
public ref class ControlSkin
public class ControlSkin
type ControlSkin = class
Public Class ControlSkin
- Inheritance
-
ControlSkin
The following code example demonstrates how control skins are specified for controls in a declarative ASP.NET page. The example shows three ASP.NET server controls found in the same page, two that use the same named skin and one that uses a different skin.
<asp:repeater runat="server" id="Specials" skinid = "ProductSpecialsList" />
<asp:repeater runat="server" id="TopItems" skinid = "ProductList" />
<asp:repeater runat="server" id="Items" skinid = "ProductList" />
<asp:repeater runat="server" id="Specials" skinid = "ProductSpecialsList" />
<asp:repeater runat="server" id="TopItems" skinid = "ProductList" />
<asp:repeater runat="server" id="Items" skinid = "ProductList" />
Page and control developers do not use the ControlSkinDelegate, ControlSkin, or PageTheme classes directly. These classes are used internally by the ASP.NET page framework to apply server-side properties and cascading style sheet definitions that are defined in ASP.NET themes and control skin files to specific types of controls.
ControlSkin objects represent a named skin or default skin of a Control control at run time and design time. ASP.NET builds PageTheme, ControlSkin and ControlSkinDelegate objects to apply the style elements defined in themes and control skin files to ASP.NET Web pages and controls.
For more information about themes and control skins, see ASP.NET Themes and Skins.
Control |
Creates a new instance of the ControlSkin class using the passed Control type and delegate. |
Control |
Gets the Type of the control that the ControlSkin object is associated with. |
Apply |
Applies the skin to the Control control contained by the ControlSkin object. |
Equals(Object) |
Determines whether the specified object is equal to the current object. (Inherited from Object) |
Get |
Serves as the default hash function. (Inherited from Object) |
Get |
Gets the Type of the current instance. (Inherited from Object) |
Memberwise |
Creates a shallow copy of the current Object. (Inherited from Object) |
To |
Returns a string that represents the current object. (Inherited from Object) |
Product | Versions |
---|---|
.NET Framework | 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET feedback
.NET is an open source project. Select a link to provide feedback: