Class TProjectStyle
Unit
Declaration
type TProjectStyle = class(TObject)
Description
A singleton to manage current style in the project and get its properties.
Don't create or destroy instances of this class. Only use "Current()" method to access to its global unique instance.
Hierarchy
- TObject
- TProjectStyle
Overview
Methods
![]() |
constructor Create; |
![]() |
function GetStyles(const StyleType: TProjectStyleType): TStringDynArray; |
![]() |
procedure RegisterStyle(const StyleName: string; const StyleType: TProjectStyleType = TProjectStyleType.other); |
![]() |
class function Current: TProjectStyle; |
![]() |
destructor Destroy; override; |
Properties
![]() |
property StyleName: string read FStyleName write SetStyleName; |
![]() |
property StylesCount: integer read GetStyleCount; |
![]() |
property Styles[constIndex:integer]: TProjectStyleItem read GetStyle; |
Description
Methods
![]() |
constructor Create; |
|
Instance constructor method for this class. | |
![]() |
function GetStyles(const StyleType: TProjectStyleType): TStringDynArray; |
|
Returns an array of strings corresponding on registered styles name. | |
![]() |
procedure RegisterStyle(const StyleName: string; const StyleType: TProjectStyleType = TProjectStyleType.other); |
|
Add a style to the available styles for this project. | |
![]() |
class function Current: TProjectStyle; |
|
Returns the global TProjectStyle singleton class.
Never try to "Free()" the instance given by the "Current()" method. You will have access violations in your program and memory leaks ! | |
![]() |
destructor Destroy; override; |
|
Instance destructor method for this class. don't call it. Use ".Free()" or "FreeAndNil()". | |
Properties
![]() |
property StyleName: string read FStyleName write SetStyleName; |
|
Name of the current style. | |
![]() |
property StylesCount: integer read GetStyleCount; |
|
Number of available registered styles. | |
![]() |
property Styles[constIndex:integer]: TProjectStyleItem read GetStyle; |
|
Give access to each registered styles as style item instances. | |
Generated by PasDoc 0.16.0.

