TProjectStyle Class

A singleton to manage current style in the project and get its properties.

Unit: uStyleManager
System.TObject
  uStyleManager.TProjectStyle
type TProjectStyle = class(TObject)

The TProjectStyle type exposes the following members.

Show:
 NameDescription
Create

Instance constructor method for this class.

Destroy

Instance destructor method for this class. don't call it. Use ".Free()" or "FreeAndNil()".

Top
Show:
 NameDescription
StyleName

Name of the current style.

Styles

Give access to each registered styles as style item instances.

StylesCount

Number of available registered styles.

Top
Show:
 NameDescription
Current

Returns the global TProjectStyle singleton class.

GetStyles

Returns an array of strings corresponding on registered styles name.

RegisterStyle

Add a style to the available styles for this project.

Top

Don't create or destroy instances of this class. Only use "Current()" method to access to its global unique instance.