[]
        
(Showing Draft Content)

C1.Util.Font

Font Class

Defines a format for text, including font face, size, and style attributes.

Inheritance
Font
Namespace: C1.Util
Assembly: C1.Pdf.dll
Syntax
public class Font

Constructors

Name Description
Font(Font, FontStyle)

Initializes a new instance of a Font object from a other font.

Font(FontStyle, float, FontSubSet)

Initializes a new instance of a Font object.

Font(FontStyle, float, byte[])

Initializes a new instance of a Font object.

Font(FontStyle, float, Stream)

Initializes a new instance of a Font object from a stream containing raw font data.

Font(string, float)

Initializes a new instance of a Font object.

Font(string, float, FontStyle)

Initializes a new instance of a Font object.

Properties

Name Description
Bold

Gets a value that determines whether this font is bold.

GdiCharSet

Gets or sets character set code.

GdiVerticalFont

Gets or sets vertical font flag.

Height

Gets height of this font in points.

Italic

Gets a value that determines whether this font is italic.

Name

Gets the font name.

OriginalFontName

Gets or sets the font original name.

Size

Gets the font size in points.

Strikeout

Gets a value that determines whether this font has a horizontal line through it.

Style

Gets the font style attributes.

Underline

Gets a value that determines whether this font is underlined.

Methods

Name Description
Create(XLFont)

Create font using document font with real data.

Create(Font, float, FontStyle)

Create font using document font with real data.

Create(string, float, FontStyle)

Create font using document font with real data.

Equals(object)
GetHashCode()
GetResourceFont(BuildInFont)

Gets a font that embedded (build-in) to this library.

GetResourceFont(string)

Gets a font that embedded (build-in) to this library.

GetTextFormat(Font, Color)

Gets GrapeCity.Documents.Text.TextFormat object by Font object.

Operators

Name Description
implicit operator XLFont(Font)

Convert implicitly to C1.Excel.XLFont C1.Excel font.

implicit operator Font(Font)

Convert implicitly to drawing font.