Show / Hide Table of Contents

    Interface ITextConfig

    Configuration which is used when rendering text.

    Inherited Members
    System.ComponentModel.INotifyPropertyChanged.PropertyChanged
    Namespace: AGS.API
    Assembly: AGS.API.dll
    Syntax
    public interface ITextConfig : INotifyPropertyChanged

    Properties

    | Improve this Doc View Source

    Alignment

    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.

    | Improve this Doc View Source

    AutoFit

    Allows for a label and its text to fit together in various way

    Declaration
    AutoFit AutoFit { get; set; }
    Property Value
    Type Description
    AutoFit
    | Improve this Doc View Source

    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.

    | Improve this Doc View Source

    Font

    Gets the font used to render the text.

    Declaration
    IFont Font { get; set; }
    Property Value
    Type Description
    IFont

    The font.

    | Improve this Doc View Source

    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.

    | Improve this Doc View Source

    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.

    | Improve this Doc View Source

    OutlineWidth

    Gets the width of the outline.

    Declaration
    float OutlineWidth { get; set; }
    Property Value
    Type Description
    System.Single

    The width of the outline.

    | Improve this Doc View Source

    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.

    | Improve this Doc View Source

    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.

    | Improve this Doc View Source

    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.

    | Improve this Doc View Source

    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.

    | Improve this Doc View Source

    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
    ShadowOffsetX
    ShadowOffsetY
    | Improve this Doc View Source

    ShadowOffsetX

    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.

    | Improve this Doc View Source

    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.

    • Improve this Doc
    • View Source
    Back to top Generated by DocFX