Class Font
Represents font properties such as family, size, and theme for text formatting.
Inheritance
System.Object
Font
Implements
IronSoftware.IDocumentFontObject
IronSoftware.IDocumentObject
System.ICloneable
Namespace: IronWord.Models
Assembly: IronWord.dll
Syntax
public class Font : Object, IDocumentFontObject, 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> |
DocumentId
Declaration
public IDocumentId DocumentId { get; set; }
Property Value
| Type | Description |
|---|---|
| IronSoftware.IDocumentId |
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
Declaration
public byte[] FontData { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Byte[] |
FontFamily
Gets or sets the font family for the text.
Declaration
public string FontFamily { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
FontSize
Gets or sets the font size for the text.
Declaration
public float FontSize { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Single |
FontSizeComplexScript
Gets or sets the font size for complex script text.
Declaration
public Nullable<double> FontSizeComplexScript { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Nullable<System.Double> |
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
Declaration
public bool IsEmbedded { get; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
Name
Declaration
public string Name { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
ObjNum
Declaration
public uint ObjNum { get; set; }
Property Value
| Type | Description |
|---|---|
| System.UInt32 |
PageIndex
Declaration
public uint PageIndex { get; set; }
Property Value
| Type | Description |
|---|---|
| System.UInt32 |
Methods
Clone()
Declaration
public object Clone()
Returns
| Type | Description |
|---|---|
| System.Object |
Implements
IronSoftware.IDocumentFontObject
IronSoftware.IDocumentObject
System.ICloneable