Show / Hide Table of Contents

    Interface IButtonState

    Interface for the state of a button

    Inherited Members
    IBackground.BackgroundImage
    IShape.BackgroundColor
    IShape.HasShadow
    IShape.ShadowInverted
    IShape.OutlineColor
    IShape.OutlineRadius
    IShape.OutlineWidth
    IShape.BorderColor
    IShape.BorderRadius
    IShape.BorderWidth
    IShape.ElementShape
    ILabel.Text
    ILabel.HtmlText
    ILabel.FittedFontSize
    ILabel.SynchronizedFontSize
    ILabelStyle.TextColor
    ILabelStyle.HorizontalTextAlignment
    ILabelStyle.VerticalTextAlignment
    ILabelStyle.LineBreakMode
    ILabelStyle.AutoFit
    ILabelStyle.Lines
    ILabelStyle.MinFontSize
    IFontElement.FontAttributes
    IFontElement.FontFamily
    IFontElement.FontSize
    IElement.InstanceId
    Namespace: Forms9Patch
    Assembly: Forms9Patch.dll
    Syntax
    public interface IButtonState : IBackground, IShape, ILabel, ILabelStyle, IFontElement, IElement

    Properties

    HasTightSpacing

    controls if the button's icon will be justified to the edge of the button (false) or to be next to the button's text (true)

    Declaration
    bool HasTightSpacing { get; set; }
    Property Value
    Type Description
    Boolean

    IconColor

    Overrides the icon color as provided by the Button's TextColor (if TintIcon=true), the default TextColor (if IconText != null), or the IconImage colors

    Declaration
    Color IconColor { get; set; }
    Property Value
    Type Description
    Color

    IconFontFamily

    Gets or sets the font family for the IconText

    Declaration
    string IconFontFamily { get; set; }
    Property Value
    Type Description
    String

    IconFontSize

    Overrides the default icon font size (the button's FontSize).

    Declaration
    double IconFontSize { get; set; }
    Property Value
    Type Description
    Double

    IconImage

    gets/sets Forms9Patch.Image used for the button's icon

    Declaration
    Image IconImage { get; set; }
    Property Value
    Type Description
    Image

    IconText

    gets/sets HtmlText used to create the button's icon

    Declaration
    string IconText { get; set; }
    Property Value
    Type Description
    String

    Orientation

    controls if the button's text and icon are arranged horizontally or vertically

    Declaration
    StackOrientation Orientation { get; set; }
    Property Value
    Type Description
    StackOrientation

    Spacing

    controls the pixels between the button's icon and text (if HasTightSpacing is true)

    Declaration
    double Spacing { get; set; }
    Property Value
    Type Description
    Double

    TintIcon

    controls if the button's icon is tinted to match the button's TextColor

    Declaration
    bool TintIcon { get; set; }
    Property Value
    Type Description
    Boolean

    TrailingIcon

    controls if the button's icon is before or after the button's text

    Declaration
    bool TrailingIcon { get; set; }
    Property Value
    Type Description
    Boolean

    Extension Methods

    FontExtensions.LineHeight(IFontElement)
    FontExtensions.LineSpace(IFontElement)
    DebugExtensions.AddToCensus(Object)
    DebugExtensions.RemoveFromCensus(Object)
    ReflectionExtensions.GetProperties(Object)
    ReflectionExtensions.GetProperty(Object, String)
    ReflectionExtensions.PropertyNames(Object)
    ReflectionExtensions.PropertyExists(Object, String)
    ReflectionExtensions.HasProperty(Object, String)
    ReflectionExtensions.GetPropertyValue(Object, String)
    ReflectionExtensions.SetPropertyValue(Object, String, Object)
    ReflectionExtensions.GetFieldValue(Object, String)
    ReflectionExtensions.SetFieldValue(Object, String, Object)
    ReflectionExtensions.CallMethod(Object, String, Object[])
    Back to top Copyright © 2018 42nd Parallel