Skip to main content
A newer version of this page is available. .
Tab

AppearanceStyleBase Members

Serves as a base for classes that define appearance styles of different elements within web controls.

Constructors

Name Description
AppearanceStyleBase() Initializes a new instance of the AppearanceStyleBase class.

Fields

Name Description
DefaultOpacity For internal use only.

Properties

Name Description
BackColor Gets or sets the background color of the Web server control. Inherited from Style.
BackgroundImage Gets the background image defined by the current style.
Border Gets the border settings defined by the current style.
BorderBottom Gets the settings of the bottom border.
BorderColor Gets or sets the border color. Instead use the BorderWrapper.BorderColor property which is available via the style object’s AppearanceStyleBase.Border property.
BorderLeft Gets the settings of the left border.
BorderRight Gets the settings of the right border.
BorderStyle Gets or sets the border style. Instead use the BorderWrapper.BorderStyle property which is available via the style object’s AppearanceStyleBase.Border property.
BorderTop Gets the settings of the top border.
BorderWidth Gets or sets the border width. Instead use the BorderWrapper.BorderWidth property which is available via the style object’s AppearanceStyleBase.Border property.
CanRaiseEvents protected Gets a value indicating whether the component can raise an event. Inherited from Component.
Container Gets the IContainer that contains the Component. Inherited from Component.
CssClass Gets or sets the cascading style sheet (CSS) class rendered by the Web server control on the client. Inherited from Style.
Cursor Gets or sets the type of cursor to display when the mouse pointer is over the object which the current style applies to.
DesignMode protected Gets a value that indicates whether the Component is currently in design mode. Inherited from Component.
Events protected Gets the list of event handlers that are attached to this Component. Inherited from Component.
Font Gets the font properties associated with the Web server control. Inherited from Style.
ForeColor Gets or sets the foreground color (typically the color of the text) of the Web server control. Inherited from Style.
Height This property is not in effect for the AppearanceStyleBase object.
HorizontalAlign Gets or sets the horizontal alignment of the contents within its container.
IsEmpty Gets a value that indicates whether this AppearanceStyleBase object is initialized with the default values.
IsTrackingViewState protected Returns a value indicating whether any style elements have been defined in the state bag. Inherited from Style.
RegisteredCssClass Gets the cascading style sheet (CSS) class that is registered with the control. Inherited from Style.
Site Gets or sets the ISite of the Component. Inherited from Component.
VerticalAlign Gets or sets the vertical alignment of the contents in its container.
Width This property is not in effect for the AppearanceStyleBase object.
Wrap Gets or sets a value indicating whether the text content wraps within a container cell.

Methods

Name Description
AddAttributesToRender(HtmlTextWriter, WebControl) For internal use only.
AddAttributesToRender(HtmlTextWriter) Adds HTML attributes and styles that need to be rendered to the specified HtmlTextWriter. This method is primarily used by control developers. Inherited from Style.
Assign(AppearanceStyleBase) Copies the settings from the specified AppearanceStyleBase object to the current object.
AssignToControl(WebControl, AttributesRange, Boolean, Boolean, Boolean) For internal use only.
AssignToControl(WebControl, AttributesRange, Boolean, Boolean) For internal use only.
AssignToControl(WebControl, AttributesRange, Boolean) For internal use only.
AssignToControl(WebControl, AttributesRange) Copies the settings from the current AppearanceStyleBase object to the specified object.
AssignToControl(WebControl, Boolean) For internal use only.
AssignToControl(WebControl) Copies the settings from the current AppearanceStyleBase object to the specified object.
AssignToHyperLink(HyperLink, Boolean) For internal use only.
AssignToHyperLink(HyperLink) For internal use only.
AssignToHyperLink(WebControl, Boolean) For internal use only.
AssignWithoutBorders(AppearanceStyleBase) Copies all settings except for border settings from the specified AppearanceStyleBase object to the current object.
CopyBordersFrom(Style) Duplicates the border properties of the specified style object into the instance of the AppearanceStyleBase class that this method is called from.
CopyFontAndCursorFrom(Style) Duplicates the font and cursor setting of the specified style object into the instance of the AppearanceStyleBase class that this method is called from.
CopyFontFrom(Style) Duplicates the font properties of the specified style object into the instance of the AppearanceStyleBase class that this method is called from.
CopyFrom(Style, Boolean) Duplicates the properties of the specified object into the current instance of the AppearanceStyleBase class specifying whether border setting should be copied.
CopyFrom(Style) Duplicates the properties of the specified object into the current instance of the AppearanceStyleBase class.
CopyTextDecorationFrom(Style) Duplicates the text decoration properties of the specified object into the current instance of the AppearanceStyleBase class.
CreateObjRef(Type) Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. Inherited from MarshalByRefObject.
Dispose() Releases all resources used by the Component. Inherited from Component.
Dispose(Boolean) protected Releases the unmanaged resources used by the Component and optionally releases the managed resources. Inherited from Component.
Equals(Object, Object) static Determines whether the specified object instances are considered equal. Inherited from Object.
Equals(Object) Determines whether the specified object is equal to the current object. Inherited from Object.
GetBorderColorBottom() Returns the color of the bottom border.
GetBorderColorLeft() Returns the color of the left border.
GetBorderColorRight() Returns the color of the right border.
GetBorderColorTop() Returns the color of the top border.
GetBorderStyleBottom() Returns the style of the bottom border.
GetBorderStyleLeft() Returns the style of the left border.
GetBorderStyleRight() Returns the style of the right border.
GetBorderStyleTop() Returns the style of the top border.
GetBorderWidthBottom() Returns the width of the bottom border.
GetBorderWidthLeft() Returns the width of the left border.
GetBorderWidthRight() Returns the width of the right border.
GetBorderWidthTop() Returns the width of the top border.
GetHashCode() Serves as the default hash function. Inherited from Object.
GetLifetimeService() Retrieves the current lifetime service object that controls the lifetime policy for this instance. Inherited from MarshalByRefObject.
GetService(Type) protected Returns an object that represents a service provided by the Component or by its Container. Inherited from Component.
GetStyleAttributes(IUrlResolutionService) Retrieves the CssStyleCollection object for the specified IUrlResolutionService-implemented object. Inherited from Style.
GetType() Gets the Type of the current instance. Inherited from Object.
InitializeLifetimeService() Obtains a lifetime service object to control the lifetime policy for this instance. Inherited from MarshalByRefObject.
LoadViewState(Object) protected Loads the previously saved state. Inherited from Style.
MemberwiseClone() protected Creates a shallow copy of the current Object. Inherited from Object.
MemberwiseClone(Boolean) protected Creates a shallow copy of the current MarshalByRefObject object. Inherited from MarshalByRefObject.
MergeBordersWith(Style) Combines the border properties of the specified Style with the current instance of the AppearanceStyleBase class.
MergeFontWith(Style) Combines the font properties of the specified Style with the current instance of the AppearanceStyleBase class.
MergeWith(Style) Combines the properties of the specified Style with the current instance of the AppearanceStyleBase class.
ReferenceEquals(Object, Object) static Determines whether the specified Object instances are the same instance. Inherited from Object.
Reset() Returns the AppearanceStyleBase object to its original state.
SaveViewState() protected A protected method. Saves any state that has been modified after the TrackViewState() method was invoked. Inherited from Style.
SetBit(Int32) protected A protected internal method. Sets an internal bitmask field that indicates the style properties that are stored in the state bag. Inherited from Style.
SetDirty() Marks the Style so that its state will be recorded in view state. Inherited from Style.
ToString() Returns a String containing the name of the Component, if any. This method should not be overridden. Inherited from Component.
TrackViewState() protected A protected method. Marks the beginning for tracking state changes on the control. Any changes made after tracking has begun will be tracked and saved as part of the control view state. Inherited from Style.

Events

Name Description
Disposed Occurs when the component is disposed by a call to the Dispose() method. Inherited from Component.
See Also