Castle Game Engine: CastleControls: Class TCastleLabel

# Class TCastleLabel
Description | Hierarchy | Fields | Methods | Properties
## Unit CastleControls ## Declaration `type TCastleLabel = class(TUIControlFont)` ## Description Label with possibly multiline text, in a box. ## Hierarchy TComponent TInputListener TUIControl TUIRectangularControl TUIControlFont TCastleLabel ## Overview ### Fields
| `internal const DefaultLineSpacing = 2;`
### Methods
| `constructor Create(AOwner: TComponent); override;`
| `destructor Destroy; override;`
| `procedure Render; override;`
| `function Rect: TRectangle; override;`
### Properties
| `property Color: TCastleColor read FColor write FColor;`
| `property Text: TStrings read FText;`
| `property Padding: Integer read FPadding write FPadding default 0;`
| `property LineSpacing: Integer read FLineSpacing write FLineSpacing default DefaultLineSpacing;`
| `property Tags: boolean read FTags write FTags default false;`
| `property Frame: boolean read FFrame write FFrame default true;`
| `property MaxWidth: Integer read FMaxWidth write FMaxWidth;`
| `property Alignment: THorizontalPosition read FAlignment write FAlignment default hpLeft;`
## Description ### Fields
| `internal const DefaultLineSpacing = 2;`
### Methods
| `constructor Create(AOwner: TComponent); override;`
| `destructor Destroy; override;`
| `procedure Render; override;`
| `function Rect: TRectangle; override;`
### Properties
| `property Color: TCastleColor read FColor write FColor;`
Text color. By default it's white.
| `property Text: TStrings read FText;`
| `property Padding: Integer read FPadding write FPadding default 0;`
Inside the label box, `padding` between rect borders and text.
| `property LineSpacing: Integer read FLineSpacing write FLineSpacing default DefaultLineSpacing;`
Extra spacing between lines (may also be negative to squeeze lines tighter).
| `property Tags: boolean read FTags write FTags default false;`
Does the text use HTML-like `tags`. This is very limited for now, see TCastleFont.PrintStrings documentation.
| `property Frame: boolean read FFrame write FFrame default true;`
Draw frame around the text. Frame uses theme image tiLabel, see TCastleTheme.Images if you want to customize it.
| `property MaxWidth: Integer read FMaxWidth write FMaxWidth;`
If non-zero, limit the width of resulting label. The text will be broken in the middle of lines, to make it fit (together with Padding) inside `MaxWidth`.
| `property Alignment: THorizontalPosition read FAlignment write FAlignment default hpLeft;`
Horizontal alignment of the text.
Generated by PasDoc 0.13.0 on 2015-06-15 04:43:09