Version

Style Class Members

The following tables list the members exposed by Style.

Public Constructors
 NameDescription
Public ConstructorStyle ConstructorOverloaded.   
Protected Fields
 NameDescription
Protected FieldownerPropName  
Public Properties
 NameDescription
Public PropertyBackColorGets or sets the background color of the Web server control. (Inherited from System.Web.UI.WebControls.Style)
Public PropertyBackgroundImage

The filename of an image to be displayed in the background of an object.

 
Public PropertyBorderColorGets or sets the border color of the Web server control. (Inherited from System.Web.UI.WebControls.Style)
Public PropertyBorderDetails

The details of the style's border such as individual color, style and width of each side of it.

 
Public PropertyBorderStyleGets or sets the border style of the Web server control. (Inherited from System.Web.UI.WebControls.Style)
Public PropertyBorderWidthGets or sets the border width of the Web server control. (Inherited from System.Web.UI.WebControls.Style)
Public PropertyContainer (Inherited from System.ComponentModel.Component)
Public PropertyCssClassGets or sets the cascading style sheet (CSS) class rendered by the Web server control on the client. (Inherited from System.Web.UI.WebControls.Style)
Public PropertyCursorThe type of cursor displayed for an object when the mouse pointer is over it.  
Public PropertyCustomRulesA string of text that determines additional CSS rules to apply to the object.  
Public PropertyFontGets the font properties associated with the Web server control. (Inherited from System.Web.UI.WebControls.Style)
Public PropertyForeColorGets or sets the foreground color (typically the color of the text) of the Web server control. (Inherited from System.Web.UI.WebControls.Style)
Public PropertyHasBorderDetailsA Boolean value that indicates whether border details have been applied to an object. This property is read-only.  
Public PropertyHasMarginA Boolean value that indicates whether the margin has been set. If True, an assigned margin setting is in effect for the object. If False, no margin has been specifically set. This property is read-only.  
Public PropertyHasPaddingA boolean value that indicates whether paddign (internal spacing) is applied to the object. This property is read-only.  
Public PropertyHeightGets or sets the height of the Web server control. (Inherited from System.Web.UI.WebControls.Style)
Public PropertyIsEmptyA protected property. Gets a value indicating whether any style elements have been defined in the state bag. (Inherited from System.Web.UI.WebControls.Style)
Public PropertyMargin

The amount of space for margins of an object.

 
Public PropertyPadding

The amount of space to insert between an object and its edges.

 
Public PropertyRegisteredCssClassGets the cascading style sheet (CSS) class that is registered with the control. (Inherited from System.Web.UI.WebControls.Style)
Public PropertySite (Inherited from System.ComponentModel.Component)
Public PropertyWidthGets or sets the width of the Web server control. (Inherited from System.Web.UI.WebControls.Style)
Protected Properties
 NameDescription
Protected PropertyCanRaiseEvents (Inherited from System.ComponentModel.Component)
Protected PropertyDesignMode (Inherited from System.ComponentModel.Component)
Protected PropertyEvents (Inherited from System.ComponentModel.Component)
Protected PropertyIsTrackingViewStateReturns a value indicating whether any style elements have been defined in the state bag. (Inherited from System.Web.UI.WebControls.Style)
Public Methods
 NameDescription
Public MethodAddAttributesToRenderOverloaded. Overridden. Adds all style attributes to the HtmlTextWriter instance passed in.  
Public MethodAppendStyleOverloaded. Append custom properties in format compatible with css rules supported by browsers.  
Public MethodCopyFromOverridden. Copy style from source.  
Public MethodCreateObjRefCreates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. (Inherited from System.MarshalByRefObject)
Public MethodDisposeOverloaded.  (Inherited from System.ComponentModel.Component)
Public MethodGetLifetimeServiceRetrieves the current lifetime service object that controls the lifetime policy for this instance. (Inherited from System.MarshalByRefObject)
Public MethodGetStyleAttributesRetrieves the System.Web.UI.CssStyleCollection object for the specified System.Web.UI.IUrlResolutionService-implemented object. (Inherited from System.Web.UI.WebControls.Style)
Public MethodInitializeLifetimeServiceObtains a lifetime service object to control the lifetime policy for this instance. (Inherited from System.MarshalByRefObject)
Public MethodIsEmptyOverloaded. A protected property. Gets a value indicating whether any style elements have been defined in the state bag.  
Public MethodResetOverridden. Resets all properties to their default values.  
Public MethodToStringReturns a string representation of this object.  
Protected Methods
 NameDescription
Protected MethodFillStyleAttributesAdds the specified object's style properties to a System.Web.UI.CssStyleCollection object. (Inherited from System.Web.UI.WebControls.Style)
Protected MethodFinalize (Inherited from System.ComponentModel.Component)
Protected MethodGetService (Inherited from System.ComponentModel.Component)
Protected MethodMemberwiseCloneOverloaded. Creates a shallow copy of the current System.MarshalByRefObject object. (Inherited from System.MarshalByRefObject)
Public Events
 NameDescription
Public EventDisposed (Inherited from System.ComponentModel.Component)
See Also