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
property_image.gif Background The Background property sets and returns a solid fill brush.
property_image.gif Border The Border property sets and returns component border.
property_image.gif Enabled The Enabled property determines whether a style can be applied to the component.
property_image.gif Font The Font property sets and returns font parameters.
property_image.gif Shadow The Shadow property sets and returns component shadow.

Methods

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

Properties inherited from the Object class

  Property name Brief description

Id

The Id property determines a repository object identifier.

Methods inherited from the Object class

  Method name Brief description
clone The clone method creates an object copy.
dispose The dispose method deletes the component.
getHashCode The getHashCode method returns hash code of repository object.
getId The getId method returns repository object identifier.
getSettings The getSettings method returns repository object settings.
getTypeName The getTypeName method returns the name of the object type without the namespace, to which it belongs.
isEqual The isEqual method determines whether the specified object is equal to the current repository object.
isLive The isLive method determines validity of repository object.
removeAllEvents The removeAllEvents method removes all object event handlers by the specified context.
setId The setId method determines a repository object identifier.
setSettings The setSettings method determines repository object settings.
defineProps The defineProps method creates get and set methods from name array for the specified class.
keys The keys method returns array of methods and properties names for the specified object.

See also:

PP