Represents a single HtmlStyle. This object can be used to help probe and do validation
against Html styles. Has functionality to convert unit styles to int values and color styles to System.Drawing.Color.
Inheritance Hierarchy
ArtOfTest.WebAii.Controls.HtmlControlsHtmlStyle
Namespace: ArtOfTest.WebAii.Controls.HtmlControls
Assembly: ArtOfTest.WebAii (in ArtOfTest.WebAii.dll) Version: 2018.1.116.0 (2018.1.116.0)
Syntax
The HtmlStyle type exposes the following members.
Constructors
Name | Description | |
---|---|---|
HtmlStyle |
Create a new HtmlStyle object.
|
Properties
Name | Description | |
---|---|---|
Name |
Gets the style name.
| |
Value |
Gets the style value.
|
Methods
Name | Description | |
---|---|---|
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
IsColor |
Whether the value of this style is a color value or not.
| |
IsInt |
Whether the value of this style is an integer value or not.
| |
IsSameColor |
Performs a simple color compare that only compares red/green/blue colors.
Does not compare known color names or alpha blending.
| |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ToColor |
Attempts to parse the style value as a color and return a System.Drawing.Color
object that corresponds to the color style value.
| |
ToHtmlColor |
Translates a System.Drawing.Color to an Html color string.
| |
ToInt |
Strips any style value from units (i.e. px/pt..etc) and returns the integer value.
| |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
See Also