Table of Contents

Class FontAndColor

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

Default IFontAndColor and IReadOnlyFontAndColor implementation. Also contains static properties to get system colors as IReadOnlyFontAndColor.

public class FontAndColor : IFontAndColor, IReadOnlyFontAndColor
Inheritance
FontAndColor
Implements

Constructors

FontAndColor()

Initializes a new instance of the FontAndColor class.

FontAndColor(Color?, Color?, Font?)

Initializes a new instance of the FontAndColor class.

Properties

BackgroundColor

Gets or sets background color.

Empty

Has Empty for the background color and Empty for the foreground color.

Font

Gets or sets font.

ForegroundColor

Gets or sets foreground color.

Null

Has null for the background and foreground colors.

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.