Style

Namespace: PP

Inheritance hierarchy

Object

Style

Description

The Style class implements component style.

Syntax

PP.initClass(PP.Style, PP.Object, "PP.Style");

Constructor

  Constructor name Brief description
Style The Style constructor creates an instance of the Style class.

Properties

  Property name Brief description
Background The Background property sets and returns a solid fill brush.
Border The Border property sets and returns component border.
Enabled The Enabled property determines whether a style can be applied to the component.
Font The Font property sets and returns font parameters.
Shadow The Shadow property sets and returns component shadow.

Methods

  Method name Brief description
toCSSFormat The toCSSFormat method returns a style in CSS format.
toSVGFormat The toSVGFormat method applies a style to SVG element.

Properties inherited from the Object class

  Property name Brief description
Data The Data property associates a random object with this component.
Id The Id property sets component identifier.
Settings The Settings property sets component parameters.

Methods inherited from the Object class

  Method name Brief description
clone The clone method creates a copy of object. It is not implemented in PP.Ui.Control.
dispose The dispose method deletes the component.
getTypeName The getTypeName method returns the name of the object type without the namespace, to which it belongs.

See also:

PP