Class FontAndColor
Default IFontAndColor and IReadOnlyFontAndColor implementation. Also contains static properties to get system colors as IReadOnlyFontAndColor.
public class FontAndColor : IFontAndColor, IReadOnlyFontAndColor
- Inheritance
-
FontAndColor
- Implements
- Derived
Constructors
- FontAndColor()
Initializes a new instance of the FontAndColor class.
- FontAndColor(Color?, Color?, Font?)
Initializes a new instance of the FontAndColor class.
Fields
- Empty
Gets IReadOnlyFontAndColor instance with Empty colors and null font.
- Null
Gets IReadOnlyFontAndColor with all properties set to null.
Properties
- BackgroundColor
Gets or sets background color.
- Font
Gets or sets font.
- ForegroundColor
Gets or sets foreground color.
- SystemColorActiveCaption
Has ActiveCaption for the background color and ActiveCaptionText for the foreground color.
- SystemColorButtonFace
Has ButtonFace for the background color and ControlText for the foreground color.
- SystemColorHighlight
Has Highlight for the background color and HighlightText for the foreground color.
- SystemColorInactiveCaption
Has InactiveCaption for the background color and InactiveCaptionText for the foreground color.
- SystemColorInfo
Has Info for the background color and InfoText for the foreground color.
- SystemColorMenu
Has Menu for the background color and MenuText for the foreground color.
- SystemColorWindow
Has Window for the background color and WindowText for the foreground color.
Methods
- ChangeColor(ref IReadOnlyFontAndColor?, Color?, bool, Action?)
Creates new IReadOnlyFontAndColor instance and assigns it to
colors
with the modified background or foreground color value.
- WithBackColor(Color?)
Gets this object with changed background color.
- WithFont(Font?)
Gets this object with changed font.
- WithForeColor(Color?)
Gets this object with changed foreground color.