PdfSharp-GDI  1.31.7289
PdfSharp.Drawing.XFontFamily Class Reference

Defines a group of type faces having a similar basic design and certain variations in styles. More...

Public Member Functions

 XFontFamily (string name)
 Initializes a new instance of the XFontFamily class. More...
 
int GetCellAscent (XFontStyle style)
 Returns the cell ascent, in design units, of the XFontFamily object of the specified style. More...
 
int GetCellDescent (XFontStyle style)
 Returns the cell descent, in design units, of the XFontFamily object of the specified style. More...
 
int GetEmHeight (XFontStyle style)
 Gets the height, in font design units, of the em square for the specified style. More...
 
int GetLineSpacing (XFontStyle style)
 Returns the line spacing, in design units, of the FontFamily object of the specified style. The line spacing is the vertical distance between the base lines of two consecutive lines of text. More...
 
bool IsStyleAvailable (XFontStyle style)
 Indicates whether the specified FontStyle enumeration is available. More...
 

Static Public Member Functions

static XFontFamily[] GetFamilies (XGraphics graphics)
 Returns an array that contains all the FontFamily objects available for the specified graphics context. More...
 

Properties

string Name [get]
 Gets the name of the font family. More...
 
static XFontFamily[] Families [get]
 Returns an array that contains all the FontFamily objects associated with the current graphics context. More...
 

Detailed Description

Defines a group of type faces having a similar basic design and certain variations in styles.

Constructor & Destructor Documentation

◆ XFontFamily()

PdfSharp.Drawing.XFontFamily.XFontFamily ( string  name)

Initializes a new instance of the XFontFamily class.

Parameters
nameThe family name of a font.

Member Function Documentation

◆ GetCellAscent()

int PdfSharp.Drawing.XFontFamily.GetCellAscent ( XFontStyle  style)

Returns the cell ascent, in design units, of the XFontFamily object of the specified style.

◆ GetCellDescent()

int PdfSharp.Drawing.XFontFamily.GetCellDescent ( XFontStyle  style)

Returns the cell descent, in design units, of the XFontFamily object of the specified style.

◆ GetEmHeight()

int PdfSharp.Drawing.XFontFamily.GetEmHeight ( XFontStyle  style)

Gets the height, in font design units, of the em square for the specified style.

◆ GetFamilies()

static XFontFamily [] PdfSharp.Drawing.XFontFamily.GetFamilies ( XGraphics  graphics)
static

Returns an array that contains all the FontFamily objects available for the specified graphics context.

◆ GetLineSpacing()

int PdfSharp.Drawing.XFontFamily.GetLineSpacing ( XFontStyle  style)

Returns the line spacing, in design units, of the FontFamily object of the specified style. The line spacing is the vertical distance between the base lines of two consecutive lines of text.

◆ IsStyleAvailable()

bool PdfSharp.Drawing.XFontFamily.IsStyleAvailable ( XFontStyle  style)

Indicates whether the specified FontStyle enumeration is available.

Property Documentation

◆ Families

XFontFamily [] PdfSharp.Drawing.XFontFamily.Families
staticget

Returns an array that contains all the FontFamily objects associated with the current graphics context.

◆ Name

string PdfSharp.Drawing.XFontFamily.Name
get

Gets the name of the font family.


The documentation for this class was generated from the following file: