HtmlStyle Class

Progress Software Corporation - Testing Framework 2018.1 Automation Infrastructure
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

SystemObject
  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

public class HtmlStyle

The HtmlStyle type exposes the following members.

Constructors

  NameDescription
Public methodHtmlStyle
Create a new HtmlStyle object.
Top
Properties

  NameDescription
Public propertyName
Gets the style name.
Public propertyValue
Gets the style value.
Top
Methods

  NameDescription
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodIsColor
Whether the value of this style is a color value or not.
Public methodIsInt
Whether the value of this style is an integer value or not.
Public methodStatic memberIsSameColor
Performs a simple color compare that only compares red/green/blue colors. Does not compare known color names or alpha blending.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToColor
Attempts to parse the style value as a color and return a System.Drawing.Color object that corresponds to the color style value.
Public methodStatic memberToHtmlColor
Translates a System.Drawing.Color to an Html color string.
Public methodToInt
Strips any style value from units (i.e. px/pt..etc) and returns the integer value.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
See Also

Reference