Class Font
Represents font properties such as family, size, and theme for text formatting.
Inheritance
System.Object
Font
Implements
IronSoftware.Abstractions.Word.IFont
IronSoftware.Abstractions.IFont
IronSoftware.Abstractions.IDocumentObject
System.ICloneable
Namespace: IronWord.Models
Assembly: IronWord.dll
Syntax
public class Font : Object, IFont, IFont, IDocumentObject, ICloneable
Constructors
Font()
Declaration
public Font()
Properties
AsciiTheme
Gets or sets the ASCII theme font to be used for text.
Declaration
public Nullable<ThemeFontValues> AsciiTheme { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Nullable<ThemeFontValues> |
ComplexScript
Gets or sets the font for complex script text.
Declaration
public string ComplexScript { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
ComplexScriptTheme
Gets or sets the theme font to be used for complex script text.
Declaration
public Nullable<ThemeFontValues> ComplexScriptTheme { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Nullable<ThemeFontValues> |
EastAsia
Gets or sets the font for East Asian text.
Declaration
public string EastAsia { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
EastAsiaTheme
Gets or sets the theme font to be used for East Asian text.
Declaration
public Nullable<ThemeFontValues> EastAsiaTheme { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Nullable<ThemeFontValues> |
FontData
The byte data of the font.
Declaration
public byte[] FontData { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Byte[] |
FontFamily
Gets or sets the font family for the ASCII text.
Declaration
public string FontFamily { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
HighAnsi
Gets or sets the font for High ANSI characters.
Declaration
public string HighAnsi { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
HighAnsiTheme
Gets or sets the theme font to be used for High ANSI characters.
Declaration
public Nullable<ThemeFontValues> HighAnsiTheme { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Nullable<ThemeFontValues> |
IsEmbedded
Whether the font is embedded or not.
Declaration
public bool IsEmbedded { get; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
Name
Name of the font.
Declaration
public string Name { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
Methods
Clone()
Declaration
public object Clone()
Returns
| Type | Description |
|---|---|
| System.Object |
Implements
IronSoftware.Abstractions.Word.IFont
IronSoftware.Abstractions.IFont
IronSoftware.Abstractions.IDocumentObject
System.ICloneable