dundas.controls.SolidColorBrush Class

Defines a color to be used to fill a graphical element.
 

Inheritance Hierarchy

 
Class
   dundas.controls.Brush
      dundas.controls.SolidColorBrush
 

Constructors

 
  Name Description
init Initializes the brush. Called during construction.
 
 

Properties

 
  Name Description
brushType Gets the type of the brush. This value is used by the server to identify the brush type. This value cannot be set in JavaScript. Instead, the derived class type should be used. Inherited from dundas.controls.Brush.
color Gets or sets the color of the brush.
 
 

Methods

 
  Name Description
applyToElement Applies this brush to an element.
clone Creates a clone of this brush.
fromJObject Applies the property values from a plain object created from JSON to the properties of this instance. Inherited from Class.

Static
fromString Creates a solid color brush based on a color parsed from a string.
toCss Returns the CSS representation of the color. Inherited from dundas.controls.Brush.
toJSON Implementation for toJSON to return an object that will include this class's prototype property values when stringified. Inherited from Class.
toString Creates a string representation of this brush.
 
 

Examples