Interface IButtonState
Interface for the state of a button
Inherited Members
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 |