Font Class

Definition

Line 983 of System.Windows/Graphics.cm

Constructors & Destructor

public nothrow Font()
public nothrow Font(Font&& that)
public Font(const Font& that)
public Font(const FontFamily& family, float emSize)
public Font(const FontFamily& family, float emSize, FontStyle style, Unit unit)
public nothrow Font(void* nativeFont_)
public ~Font()

Member Functions

public static Font FromHFont(void* hdc, void* hfont)
public nothrow GraphicsStatus GetFamily(FontFamily& fontFamily)
public FontFamily GetFamilyChecked()
public nothrow float GetHeight(const Graphics& graphics) const
public nothrow float GetSize() const
public nothrow FontStyle GetStyle() const
public nothrow bool IsNull() const
public inline nothrow void* NativeFont() const
public nothrow GraphicsStatus ToHFont(const Graphics& graphics, FontHandle& fontHandle)
public FontHandle ToHFontChecked(const Graphics& graphics)
public void operator=(const Font& that)

Member Variables

private void* nativeFont

Constructor& Destructor Details

Font Constructor

public nothrow Font()

Definition
Line 995 of System.Windows/Graphics.cm


Font Constructor

public nothrow Font(Font&& that)

Definition
Line 1002 of System.Windows/Graphics.cm


Font Constructor

public Font(const Font& that)

Definition
Line 998 of System.Windows/Graphics.cm


Font Constructor

public Font(const FontFamily& family, float emSize)

Definition
Line 989 of System.Windows/Graphics.cm


Font Constructor

public Font(const FontFamily& family, float emSize, FontStyle style, Unit unit)

Definition
Line 985 of System.Windows/Graphics.cm


Font Constructor

public nothrow Font(void* nativeFont_)

Definition
Line 992 of System.Windows/Graphics.cm


~Font Destructor

public ~Font()

Definition
Line 1018 of System.Windows/Graphics.cm


Member Function Details

FromHFont Static Member Function

public static Font FromHFont(void* hdc, void* hfont)

Definition
Line 1051 of System.Windows/Graphics.cm


GetFamily Member Function

public nothrow GraphicsStatus GetFamily(FontFamily& fontFamily)

Definition
Line 1041 of System.Windows/Graphics.cm


GetFamilyChecked Member Function

public FontFamily GetFamilyChecked()

Definition
Line 1045 of System.Windows/Graphics.cm


GetHeight Member Function

public nothrow float GetHeight(const Graphics& graphics)

Definition
Line 1033 of System.Windows/Graphics.cm


GetSize Member Function

public nothrow float GetSize()

Definition
Line 1029 of System.Windows/Graphics.cm


GetStyle Member Function

public nothrow FontStyle GetStyle()

Definition
Line 1037 of System.Windows/Graphics.cm


IsNull Member Function

public nothrow bool IsNull()

Definition
Line 1025 of System.Windows/Graphics.cm


NativeFont Member Function

public inline nothrow void* NativeFont()

Definition
Line 1073 of System.Windows/Graphics.cm


ToHFont Member Function

public nothrow GraphicsStatus ToHFont(const Graphics& graphics, FontHandle& fontHandle)

Definition
Line 1057 of System.Windows/Graphics.cm


ToHFontChecked Member Function

public FontHandle ToHFontChecked(const Graphics& graphics)

Definition
Line 1067 of System.Windows/Graphics.cm


operator= Member Function

public void operator=(const Font& that)

Definition
Line 1006 of System.Windows/Graphics.cm