Class Font
Represents a Font.
Inherited Members
Namespace: DRIT.Document
Assembly: DRIT.Document.dll
Syntax
public class Font
Properties
AllCaps
True if the font is formatted as all capital letters.
Declaration
public bool AllCaps { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
AutoColor
Gets or sets auto color.
Declaration
public DrawingColor AutoColor { get; }
Property Value
| Type | Description |
|---|---|
| DrawingColor |
Bidi
Specifies whether the contents of this run shall have right-to-left characteristics.
Declaration
public bool Bidi { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
Bold
True if the font is formatted as bold.
Declaration
public bool Bold { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
BoldBi
True if the right-to-left text is formatted as bold.
Declaration
public bool BoldBi { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
Border
Gets border.
Declaration
public Border Border { get; }
Property Value
| Type | Description |
|---|---|
| Border |
Color
Gets or sets color.
Declaration
public DrawingColor Color { get; set; }
Property Value
| Type | Description |
|---|---|
| DrawingColor |
ComplexScript
Specifies whether the contents of this run shall be treated as complex script text regardless of their Unicode character values when determining the formatting for this run.
Declaration
public bool ComplexScript { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
DoubleStrikeThrough
True if the font is formatted as double strikethrough text.
Declaration
public bool DoubleStrikeThrough { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
Emboss
Gets or sets emboss.
Declaration
public bool Emboss { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
Engrave
Gets or sets engrave.
Declaration
public bool Engrave { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
Hidden
Gets or sets hidden.
Declaration
public bool Hidden { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
HighlightColor
Gets or sets highlight color.
Declaration
public DrawingColor HighlightColor { get; set; }
Property Value
| Type | Description |
|---|---|
| DrawingColor |
Italic
Gets or sets italic.
Declaration
public bool Italic { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
ItalicBi
True if the right-to-left text is formatted as italic.
Declaration
public bool ItalicBi { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
Kerning
Gets or sets kerning.
Declaration
public double Kerning { get; set; }
Property Value
| Type | Description |
|---|---|
| double |
Language
Gets or sets the BCP 47 language tag for Latin text in the formatted characters.
Declaration
public string Language { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
LanguageBi
Gets or sets the BCP 47 language tag for right-to-left text in the formatted characters.
Declaration
public string LanguageBi { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
LanguageFarEast
Gets or sets the BCP 47 language tag for East Asian text in the formatted characters.
Declaration
public string LanguageFarEast { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
LineSpacing
Returns line spacing of this font (in points).
Declaration
public double LineSpacing { get; }
Property Value
| Type | Description |
|---|---|
| double |
LocaleId
Gets or sets the locale identifier (language) of the formatted characters.
Declaration
public int LocaleId { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
LocaleIdBi
Gets or sets the locale identifier (language) of the formatted right-to-left characters.
Declaration
public int LocaleIdBi { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
LocaleIdFarEast
Gets or sets the locale identifier (language) of the formatted Asian characters.
Declaration
public int LocaleIdFarEast { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
Name
Gets or sets name.
Declaration
public string Name { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
NameAscii
Returns or sets the font used for Latin text (characters with character codes from 0 (zero) through 127).
Declaration
public string NameAscii { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
NameBi
Returns or sets the name of the font in a right-to-left language document.
Declaration
public string NameBi { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
NameFarEast
Returns or sets an East Asian font name.
Declaration
public string NameFarEast { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
NameOther
Returns or sets the font used for characters with character codes from 128 through 255.
Declaration
public string NameOther { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
NoProofing
True when the formatted characters are not to be spell checked.
Declaration
public bool NoProofing { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
Outline
True if the font is formatted as outline.
Declaration
public bool Outline { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
Position
Gets or sets the position of text (in points) relative to the base line. A positive number raises the text, and a negative number lowers it.
Declaration
public double Position { get; set; }
Property Value
| Type | Description |
|---|---|
| double |
Scaling
Gets or sets character width scaling in percent.
Declaration
public int Scaling { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
Shading
Gets or sets shading.
Declaration
public Shading Shading { get; }
Property Value
| Type | Description |
|---|---|
| Shading |
Shadow
True if the font is formatted as shadowed.
Declaration
public bool Shadow { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
Size
Gets or sets the font size in points.
Declaration
public double Size { get; set; }
Property Value
| Type | Description |
|---|---|
| double |
SizeBi
Gets or sets the font size in points used in a right-to-left document.
Declaration
public double SizeBi { get; set; }
Property Value
| Type | Description |
|---|---|
| double |
SmallCaps
True if the font is formatted as small capital letters.
Declaration
public bool SmallCaps { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
Spacing
Returns or sets the spacing (in points) between characters.
Declaration
public double Spacing { get; set; }
Property Value
| Type | Description |
|---|---|
| double |
StrikeThrough
True if the font is formatted as strikethrough text.
Declaration
public bool StrikeThrough { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
Style
Gets or sets the character style applied to this formatting.
Declaration
public Style Style { get; set; }
Property Value
| Type | Description |
|---|---|
| Style |
StyleIdentifier
Gets or sets the locale independent style identifier of the character style applied to this formatting.
Declaration
public StyleIdentifier StyleIdentifier { get; set; }
Property Value
| Type | Description |
|---|---|
| StyleIdentifier |
StyleName
Gets or sets the name of the character style applied to this formatting.
Declaration
public string StyleName { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Subscript
True if the font is formatted as subscript.
Declaration
public bool Subscript { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
Superscript
True if the font is formatted as superscript.
Declaration
public bool Superscript { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
TextEffect
Gets or sets the font animation effect.
Declaration
public TextEffect TextEffect { get; set; }
Property Value
| Type | Description |
|---|---|
| TextEffect |
Underline
Gets or sets the type of underline applied to the font.
Declaration
public Underline Underline { get; set; }
Property Value
| Type | Description |
|---|---|
| Underline |
UnderlineColor
Gets or sets the color of the underline applied to the font.
Declaration
public Color UnderlineColor { get; set; }
Property Value
| Type | Description |
|---|---|
| Color |