Table of Contents

Method ChangeFontStyle

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

ChangeFontStyle(FontStyle, FontStyle, bool)

Turns on or off FontStyle element(s).

public static FontStyle ChangeFontStyle(FontStyle value, FontStyle element, bool add)

Parameters

value FontStyle

Original value.

element FontStyle

Element to add or remove.

add bool

true to add, false to remove.

Returns

FontStyle

Changed FontStyle value with added or removed element.

Examples

Style = Font.ChangeFontStyle(Style, FontStyle.Italic, value);