DekGenius.com
[ Team LiB ] Previous Section Next Section

FontStyleserializable, flag

System.Drawing (system.drawing.dll)enum

This enumeration provides a set of style modifiers that can be used on a Font. Because it is marked with the FlagsAttribute, you can combine several values using the bitwise operator (e.g., | ) to generate compound styles such as (Bold | Italic).

public enum FontStyle {
   Regular = 0x00000000,
   Bold = 0x00000001,
   Italic = 0x00000002,
   Underline = 0x00000004,
   Strikeout = 0x00000008
}

Hierarchy

System.Object System.ValueType System.Enum(System.IComparabl, System.IFormattable, System.IConvertible) FontStyle

Returned By

Font.Style

Passed To

Font.Font(), FontFamily.{GetCellAscent(), GetCellDescent(), GetEmHeight(), GetLineSpacing(), IsStyleAvailable()}

    [ Team LiB ] Previous Section Next Section