[]
        
(Showing Draft Content)

GrapeCity.Documents.Word.FontBase

FontBase Class

Contains font attributes (font name, font size, color, and so on) for an object.

Inheritance
FontBase
Namespace: GrapeCity.Documents.Word
Assembly: DS.Documents.Word.dll
Syntax
public class FontBase : FormattingBag
Public Class FontBase
    Inherits FormattingBag

Properties

Name Description
AllCaps

Gets or sets a value indicating whether the font is formatted as all capital letters.

AlwaysHidden

Gets or sets a value indicating whether the given run shall always behave as if it is hidden, even when hidden text is being displayed in the current document.

Animation

Gets or sets the font animation effect.

BaseKey

Gets the base (this class) key for formatting properties.

Bidi

Gets or sets a value indicating whether the contents shall be treated as complex script text regardless of their Unicode character values when determining the formatting. This means that a consumer shall use the complex script formatting (e.g. BoldBi, ItalicBi...) applied by this font when determining the resulting formatting properties.

Bold

Gets or sets a value indicating whether the font is formatted as bold.

BoldBi

Gets or sets whether the bold property shall be applied to all complex script characters in the contents when displayed in a document.

Border

Gets the Border object that specifies borders for the font.

Color

Gets the color of the font.

DisableCharacterSpaceGrid

Gets or sets a value indicating whether the current run should use the document grid characters per line settings defined in the Document.Grid property when laying out the contents in this run. This setting determines whether the additional character pitch specified in the document grid shall be added to each character in this run as specified by the document grid.

DoubleStrikeThrough

Gets or sets a value indicating whether the font is formatted as double strikethrough text.

EastAsianLayout

Gets East Asian typography settings which shall be applied to the contents of the run.

Emboss

Gets or sets a value indicating whether the font is formatted as embossed.

EmphasisMark

Gets or sets a EmphasisMark constant that represents the emphasis mark for a character or designated character string.

Engrave

Gets or sets a value indicating whether the font is formatted as engraved.

FitTextId

Gets or sets a unique ID which shall be used to link multiple contiguous runs with specified FitTextWidth property to each other to ensure that their contents are correctly merged into the specified width in the document. This means that multiple runs which are broken apart due to differences in formatting can be identified as belonging to the same grouping in terms of FitText properties, although they are multiple runs of text in the document.

FitTextWidth

Gets or sets that the contents of the run shall not be automatically displayed based on the width of its contents, rather its contents shall be resized to fit the width specified by the this property. This expansion/contraction shall be performed by equally increasing/decreasing the size of each character in the run's contents when displayed.

Hidden

Gets or sets a value indicating whether the font is formatted as hidden text.

HintType

Gets or sets the font type that shall be used to format any ambiguous characters.

Italic

Gets or sets a value indicating whether the font is formatted as italic.

In an Office Math zone this property takes into account the GrapeCity.Documents.Word.OMathFormat.Style property.

ItalicBi

Gets or sets a value indicating whether Italic shall be applied to all complex script characters in the contents when displayed in a document.

In an Office Math zone this property takes into account the GrapeCity.Documents.Word.OMathFormat.Style property.

Kerning

Gets or sets the font size at which kerning starts.

LocaleName

Gets or sets the locale name (language) of the formatted characters.

LocaleNameBi

Gets or sets the locale name (language) of the complex script characters.

LocaleNameFarEast

Gets or sets the locale name (language) of the formatted Asian characters.

Name

Gets or sets the name of the font.

When getting, returns NameAscii by default. If HintType is ComplexScript returns NameBi. If HintType is EastAsia returns NameFarEast.

When setting, sets NameAscii, NameBi, NameFarEast and NameOther to the specified value.

In an Office Math zone this property takes into account the Font property.

NameAscii

Gets or sets the font used for Latin text (characters with character codes from 0 (zero) through 127).

In an Office Math zone this property takes into account the Font property.

NameBi

Gets or sets the name of the font used for complex script characters.

In an Office Math zone this property takes into account the Font property.

NameFarEast

Gets or sets an East Asian font name.

In an Office Math zone this property takes into account the Font property.

NameOther

Gets or sets the font used for characters with character codes from 128 through 255.

In an Office Math zone this property takes into account the Font property.

NoProofing

Gets or sets a value indicating whether the formatted characters are not to be spell checked.

Outline

Gets or sets a value indicating whether the font is formatted as outline.

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.

Scaling

Gets or sets the character width scaling in percent.

Shading

Gets the Shading object that refers to the shading formatting for the font.

Shadow

Gets or sets a value indicating whether the font is formatted as shadowed.

Size

Gets or sets the font size in points.

SizeBi

Gets or sets the font size in points used for all complex script characters in the contents when displayed in a document.

SmallCaps

Gets or sets a value indicating whether the font is formatted as small capital letters.

Spacing

Gets or sets the spacing (in points) between characters.

StrikeThrough

Gets or sets a value indicating whether the font is formatted as strikethrough text.

ThemeAscii

Gets or sets a theme font that shall be used to format all characters in the Unicode range (U+0000U+007F) within the parent. This theme font is a reference to one of the predefined theme fonts, which allows for font information to be set centrally in the document.

ThemeBi

Gets or sets a theme font that shall be used to format all characters in a complex script Unicode range. This theme font is a reference to one of the predefined theme fonts, which allows for font information to be set centrally in the document.

ThemeFarEast

Gets or sets a theme font that shall be used to format all characters in an East Asian Unicode range. This theme font is a reference to one of the predefined theme fonts, which allows for font information to be set centrally in the document.

ThemeOther

Gets or sets a theme font that shall be used to format all characters in a Unicode range that does not fall into one of the three categories defined above. This theme font is a reference to one of the predefined theme fonts, which allows for font information to be set centrally in the document.

Underline

Gets or sets the type of underline applied to the font.

UnderlineColor

Gets the color of the underline applied to the font.

VerticalPosition

Gets or sets the alignment that shall be applied to the contents in relation to the default appearance of the text. This allows the text to be repositioned as subscript or superscript without altering the font size.

WebHidden

Gets or sets a value indicating whether the contents shall be hidden in a document when the document is being displayed in a web page view.

Methods

Name Description
ClearFormatting()

Resets to default font formatting.