Interface ITextConfig
Configuration which is used when rendering text.
Inherited Members
Namespace: AGS.API
Assembly: AGS.API.dll
Syntax
public interface ITextConfig : INotifyPropertyChanged
Properties
| Improve this Doc View SourceAlignment
Gets the alignment of the text (the text will be aligned to its hosting label.
Declaration
Alignment Alignment { get; set; }
Property Value
Type | Description |
---|---|
Alignment | The alignment. |
AutoFit
Allows for a label and its text to fit together in various way
Declaration
AutoFit AutoFit { get; set; }
Property Value
Type | Description |
---|---|
AutoFit |
Brush
Gets the brush for drawing the text. The brush is usually a solid color (for example, a blue brush), but can potentially be a different brush (like a gradient brush).
Declaration
IBrush Brush { get; set; }
Property Value
Type | Description |
---|---|
IBrush | The brush. |
Font
Gets the font used to render the text.
Declaration
IFont Font { get; set; }
Property Value
Type | Description |
---|---|
IFont | The font. |
LabelMinSize
An optional minimum size for the label containing the text. This will be enforced after AutoFit has taken place.
Declaration
SizeF? LabelMinSize { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<SizeF> | The minimum size of the label. |
OutlineBrush
Gets an optional brush for drawing an outline for the text. An outline is the same text drawn behind the original text, only slightly bigger and usually with a different color, to provide better contrast for the rendered text.
Declaration
IBrush OutlineBrush { get; set; }
Property Value
Type | Description |
---|---|
IBrush | The outline brush. |
OutlineWidth
Gets the width of the outline.
Declaration
float OutlineWidth { get; set; }
Property Value
Type | Description |
---|---|
System.Single | The width of the outline. |
PaddingBottom
Gets a bottom padding (in pixels) for the text from its hosting label.
Declaration
float PaddingBottom { get; set; }
Property Value
Type | Description |
---|---|
System.Single | The bottom padding. |
PaddingLeft
Gets a left padding (in pixels) for the text from its hosting label.
Declaration
float PaddingLeft { get; set; }
Property Value
Type | Description |
---|---|
System.Single | The left padding. |
PaddingRight
Gets a right padding (in pixels) for the text from its hosting label.
Declaration
float PaddingRight { get; set; }
Property Value
Type | Description |
---|---|
System.Single | The right padding. |
PaddingTop
Gets a top padding (in pixels) for the text from its hosting label.
Declaration
float PaddingTop { get; set; }
Property Value
Type | Description |
---|---|
System.Single | The top padding. |
ShadowBrush
Gets an optional brush for drawing a shadow for the text. The shadow is the same text drawn behind the original text with an offset, giving the appearance of a shadow.
Declaration
IBrush ShadowBrush { get; set; }
Property Value
Type | Description |
---|---|
IBrush | The shadow brush. |
See Also
| Improve this Doc View SourceShadowOffsetX
Gets the shadow x offset. This is the number of horizontal pixels that the shadow will be drawn away from the text (assuming ShadowBrush is used).
Declaration
float ShadowOffsetX { get; set; }
Property Value
Type | Description |
---|---|
System.Single | The shadow x offset. |
ShadowOffsetY
Gets the shadow y offset. This is the number of vertical pixels that the shadow will be drawn away from the text (assuming ShadowBrush is used).
Declaration
float ShadowOffsetY { get; set; }
Property Value
Type | Description |
---|---|
System.Single | The shadow y offset. |