Word.Interfaces.FontUpdateData interface
An interface for updating data on the Font
object, for use in font.set({ ... })
.
Properties
all |
Specifies whether the font is formatted as all capital letters, which makes lowercase letters appear as uppercase letters. The possible values are as follows:
|
bold | Specifies a value that indicates whether the font is bold. True if the font is formatted as bold, otherwise, false. |
bold |
Specifies whether the font is formatted as bold in a right-to-left language document. The possible values are as follows:
|
color | Specifies the color for the specified font. You can provide the value in the '#RRGGBB' format or the color name. |
color |
Specifies a |
color |
Specifies the color for the |
contextual |
Specifies whether contextual alternates are enabled for the font. |
diacritic |
Specifies the color to be used for diacritics for the |
disable |
Specifies whether Microsoft Word ignores the number of characters per line for the corresponding |
double |
Specifies a value that indicates whether the font has a double strikethrough. True if the font is formatted as double strikethrough text, otherwise, false. |
emboss | Specifies whether the font is formatted as embossed. The possible values are as follows:
|
emphasis |
Specifies an |
engrave | Specifies whether the font is formatted as engraved. The possible values are as follows:
|
fill | Returns a |
glow | Returns a |
hidden | Specifies a value that indicates whether the font is tagged as hidden. True if the font is formatted as hidden text, otherwise, false. |
highlight |
Specifies the highlight color. To set it, use a value either in the '#RRGGBB' format or the color name. To remove highlight color, set it to null. The returned highlight color can be in the '#RRGGBB' format, an empty string for mixed highlight colors, or |
italic | Specifies a value that indicates whether the font is italicized. True if the font is italicized, otherwise, false. |
italic |
Specifies whether the font is italicized in a right-to-left language document. The possible values are as follows:
|
kerning | Specifies the minimum font size for which Microsoft Word will adjust kerning automatically. |
ligature | Specifies the ligature setting for the |
line | Returns a |
name | Specifies a value that represents the name of the font. |
name |
Specifies the font used for Latin text (characters with character codes from 0 (zero) through 127). |
name |
Specifies the font name in a right-to-left language document. |
name |
Specifies the East Asian font name. |
name |
Specifies the font used for characters with codes from 128 through 255. |
number |
Specifies the number form setting for an OpenType font. |
number |
Specifies the number spacing setting for the font. |
outline | Specifies if the font is formatted as outlined. The possible values are as follows:
|
position | Specifies the position of text (in points) relative to the base line. |
reflection | Returns a |
scaling | Specifies the scaling percentage applied to the font. |
shadow | Specifies if the font is formatted as shadowed. The possible values are as follows:
|
size | Specifies a value that represents the font size in points. |
size |
Specifies the font size in points for right-to-left text. |
small |
Specifies whether the font is formatted as small caps, which makes lowercase letters appear as small uppercase letters. The possible values are as follows:
|
spacing | Specifies the spacing between characters. |
strike |
Specifies a value that indicates whether the font has a strikethrough. True if the font is formatted as strikethrough text, otherwise, false. |
stylistic |
Specifies the stylistic set for the font. |
subscript | Specifies a value that indicates whether the font is a subscript. True if the font is formatted as subscript, otherwise, false. |
superscript | Specifies a value that indicates whether the font is a superscript. True if the font is formatted as superscript, otherwise, false. |
text |
Returns a |
text |
Returns a |
three |
Returns a |
underline | Specifies a value that indicates the font's underline type. 'None' if the font isn't underlined. |
underline |
Specifies the color of the underline for the |
Property Details
allCaps
Specifies whether the font is formatted as all capital letters, which makes lowercase letters appear as uppercase letters. The possible values are as follows:
true
: All the text has the All Caps attribute.false
: None of the text has the All Caps attribute.null
: Returned if some, but not all, of the text has the All Caps attribute.
allCaps?: boolean;
Property Value
boolean
Remarks
bold
Specifies a value that indicates whether the font is bold. True if the font is formatted as bold, otherwise, false.
bold?: boolean;
Property Value
boolean
Remarks
boldBidirectional
Specifies whether the font is formatted as bold in a right-to-left language document. The possible values are as follows:
true
: All the text is bold.false
: None of the text is bold.null
: Returned if some, but not all, of the text is bold.
boldBidirectional?: boolean;
Property Value
boolean
Remarks
color
Specifies the color for the specified font. You can provide the value in the '#RRGGBB' format or the color name.
color?: string;
Property Value
string
Remarks
colorIndex
Specifies a ColorIndex
value that represents the color for the font.
colorIndex?: Word.ColorIndex | "Auto" | "Black" | "Blue" | "Turquoise" | "BrightGreen" | "Pink" | "Red" | "Yellow" | "White" | "DarkBlue" | "Teal" | "Green" | "Violet" | "DarkRed" | "DarkYellow" | "Gray50" | "Gray25" | "ClassicRed" | "ClassicBlue" | "ByAuthor";
Property Value
Word.ColorIndex | "Auto" | "Black" | "Blue" | "Turquoise" | "BrightGreen" | "Pink" | "Red" | "Yellow" | "White" | "DarkBlue" | "Teal" | "Green" | "Violet" | "DarkRed" | "DarkYellow" | "Gray50" | "Gray25" | "ClassicRed" | "ClassicBlue" | "ByAuthor"
Remarks
colorIndexBidirectional
Specifies the color for the Font
object in a right-to-left language document.
colorIndexBidirectional?: Word.ColorIndex | "Auto" | "Black" | "Blue" | "Turquoise" | "BrightGreen" | "Pink" | "Red" | "Yellow" | "White" | "DarkBlue" | "Teal" | "Green" | "Violet" | "DarkRed" | "DarkYellow" | "Gray50" | "Gray25" | "ClassicRed" | "ClassicBlue" | "ByAuthor";
Property Value
Word.ColorIndex | "Auto" | "Black" | "Blue" | "Turquoise" | "BrightGreen" | "Pink" | "Red" | "Yellow" | "White" | "DarkBlue" | "Teal" | "Green" | "Violet" | "DarkRed" | "DarkYellow" | "Gray50" | "Gray25" | "ClassicRed" | "ClassicBlue" | "ByAuthor"
Remarks
contextualAlternates
Specifies whether contextual alternates are enabled for the font.
contextualAlternates?: boolean;
Property Value
boolean
Remarks
diacriticColor
Specifies the color to be used for diacritics for the Font
object. You can provide the value in the '#RRGGBB' format.
diacriticColor?: string;
Property Value
string
Remarks
disableCharacterSpaceGrid
Specifies whether Microsoft Word ignores the number of characters per line for the corresponding Font
object.
disableCharacterSpaceGrid?: boolean;
Property Value
boolean
Remarks
doubleStrikeThrough
Specifies a value that indicates whether the font has a double strikethrough. True if the font is formatted as double strikethrough text, otherwise, false.
doubleStrikeThrough?: boolean;
Property Value
boolean
Remarks
emboss
Specifies whether the font is formatted as embossed. The possible values are as follows:
true
: All the text is embossed.false
: None of the text is embossed.null
: Returned if some, but not all, of the text is embossed.
emboss?: boolean;
Property Value
boolean
Remarks
emphasisMark
Specifies an EmphasisMark
value that represents the emphasis mark for a character or designated character string.
emphasisMark?: Word.EmphasisMark | "None" | "OverSolidCircle" | "OverComma" | "OverWhiteCircle" | "UnderSolidCircle";
Property Value
Word.EmphasisMark | "None" | "OverSolidCircle" | "OverComma" | "OverWhiteCircle" | "UnderSolidCircle"
Remarks
engrave
Specifies whether the font is formatted as engraved. The possible values are as follows:
true
: All the text is engraved.false
: None of the text is engraved.null
: Returned if some, but not all, of the text is engraved.
engrave?: boolean;
Property Value
boolean
Remarks
fill
Returns a FillFormat
object that contains fill formatting properties for the font used by the range of text.
fill?: Word.Interfaces.FillFormatUpdateData;
Property Value
Remarks
glow
Returns a GlowFormat
object that represents the glow formatting for the font used by the range of text.
glow?: Word.Interfaces.GlowFormatUpdateData;
Property Value
Remarks
hidden
Specifies a value that indicates whether the font is tagged as hidden. True if the font is formatted as hidden text, otherwise, false.
hidden?: boolean;
Property Value
boolean
Remarks
highlightColor
Specifies the highlight color. To set it, use a value either in the '#RRGGBB' format or the color name. To remove highlight color, set it to null. The returned highlight color can be in the '#RRGGBB' format, an empty string for mixed highlight colors, or null
for no highlight color. Note: Only the default highlight colors are available in Office for Windows Desktop. These are "Yellow", "Lime", "Turquoise", "Pink", "Blue", "Red", "DarkBlue", "Teal", "Green", "Purple", "DarkRed", "Olive", "Gray", "LightGray", and "Black". When the add-in runs in Office for Windows Desktop, any other color is converted to the closest color when applied to the font.
highlightColor?: string;
Property Value
string
Remarks
italic
Specifies a value that indicates whether the font is italicized. True if the font is italicized, otherwise, false.
italic?: boolean;
Property Value
boolean
Remarks
italicBidirectional
Specifies whether the font is italicized in a right-to-left language document. The possible values are as follows:
true
: All the text is italicized.false
: None of the text is italicized.null
: Returned if some, but not all, of the text is italicized.
italicBidirectional?: boolean;
Property Value
boolean
Remarks
kerning
Specifies the minimum font size for which Microsoft Word will adjust kerning automatically.
kerning?: number;
Property Value
number
Remarks
ligature
Specifies the ligature setting for the Font
object.
ligature?: Word.Ligature | "None" | "Standard" | "Contextual" | "StandardContextual" | "Historical" | "StandardHistorical" | "ContextualHistorical" | "StandardContextualHistorical" | "Discretional" | "StandardDiscretional" | "ContextualDiscretional" | "StandardContextualDiscretional" | "HistoricalDiscretional" | "StandardHistoricalDiscretional" | "ContextualHistoricalDiscretional" | "All";
Property Value
Word.Ligature | "None" | "Standard" | "Contextual" | "StandardContextual" | "Historical" | "StandardHistorical" | "ContextualHistorical" | "StandardContextualHistorical" | "Discretional" | "StandardDiscretional" | "ContextualDiscretional" | "StandardContextualDiscretional" | "HistoricalDiscretional" | "StandardHistoricalDiscretional" | "ContextualHistoricalDiscretional" | "All"
Remarks
line
Returns a LineFormat
object that specifies the formatting for a line.
line?: Word.Interfaces.LineFormatUpdateData;
Property Value
Remarks
name
Specifies a value that represents the name of the font.
name?: string;
Property Value
string
Remarks
nameAscii
Specifies the font used for Latin text (characters with character codes from 0 (zero) through 127).
nameAscii?: string;
Property Value
string
Remarks
nameBidirectional
Specifies the font name in a right-to-left language document.
nameBidirectional?: string;
Property Value
string
Remarks
nameFarEast
Specifies the East Asian font name.
nameFarEast?: string;
Property Value
string
Remarks
nameOther
Specifies the font used for characters with codes from 128 through 255.
nameOther?: string;
Property Value
string
Remarks
numberForm
Specifies the number form setting for an OpenType font.
numberForm?: Word.NumberForm | "Default" | "Lining" | "OldStyle";
Property Value
Word.NumberForm | "Default" | "Lining" | "OldStyle"
Remarks
numberSpacing
Specifies the number spacing setting for the font.
numberSpacing?: Word.NumberSpacing | "Default" | "Proportional" | "Tabular";
Property Value
Word.NumberSpacing | "Default" | "Proportional" | "Tabular"
Remarks
outline
Specifies if the font is formatted as outlined. The possible values are as follows:
true
: All the text is outlined.false
: None of the text is outlined.null
: Returned if some, but not all, of the text is outlined.
outline?: boolean;
Property Value
boolean
Remarks
position
Specifies the position of text (in points) relative to the base line.
position?: number;
Property Value
number
Remarks
reflection
Returns a ReflectionFormat
object that represents the reflection formatting for a shape.
reflection?: Word.Interfaces.ReflectionFormatUpdateData;
Property Value
Remarks
scaling
Specifies the scaling percentage applied to the font.
scaling?: number;
Property Value
number
Remarks
shadow
Specifies if the font is formatted as shadowed. The possible values are as follows:
true
: All the text is shadowed.false
: None of the text is shadowed.null
: Returned if some, but not all, of the text is shadowed.
shadow?: boolean;
Property Value
boolean
Remarks
size
Specifies a value that represents the font size in points.
size?: number;
Property Value
number
Remarks
sizeBidirectional
Specifies the font size in points for right-to-left text.
sizeBidirectional?: number;
Property Value
number
Remarks
smallCaps
Specifies whether the font is formatted as small caps, which makes lowercase letters appear as small uppercase letters. The possible values are as follows:
true
: All the text has the Small Caps attribute.false
: None of the text has the Small Caps attribute.null
: Returned if some, but not all, of the text has the Small Caps attribute.
smallCaps?: boolean;
Property Value
boolean
Remarks
spacing
Specifies the spacing between characters.
spacing?: number;
Property Value
number
Remarks
strikeThrough
Specifies a value that indicates whether the font has a strikethrough. True if the font is formatted as strikethrough text, otherwise, false.
strikeThrough?: boolean;
Property Value
boolean
Remarks
stylisticSet
Specifies the stylistic set for the font.
stylisticSet?: Word.StylisticSet | "Default" | "Set01" | "Set02" | "Set03" | "Set04" | "Set05" | "Set06" | "Set07" | "Set08" | "Set09" | "Set10" | "Set11" | "Set12" | "Set13" | "Set14" | "Set15" | "Set16" | "Set17" | "Set18" | "Set19" | "Set20";
Property Value
Word.StylisticSet | "Default" | "Set01" | "Set02" | "Set03" | "Set04" | "Set05" | "Set06" | "Set07" | "Set08" | "Set09" | "Set10" | "Set11" | "Set12" | "Set13" | "Set14" | "Set15" | "Set16" | "Set17" | "Set18" | "Set19" | "Set20"
Remarks
subscript
Specifies a value that indicates whether the font is a subscript. True if the font is formatted as subscript, otherwise, false.
subscript?: boolean;
Property Value
boolean
Remarks
superscript
Specifies a value that indicates whether the font is a superscript. True if the font is formatted as superscript, otherwise, false.
superscript?: boolean;
Property Value
boolean
Remarks
textColor
Returns a ColorFormat
object that represents the color for the font.
textColor?: Word.Interfaces.ColorFormatUpdateData;
Property Value
Remarks
textShadow
Returns a ShadowFormat
object that specifies the shadow formatting for the font.
textShadow?: Word.Interfaces.ShadowFormatUpdateData;
Property Value
Remarks
threeDimensionalFormat
Returns a ThreeDimensionalFormat
object that contains 3-dimensional (3D) effect formatting properties for the font.
threeDimensionalFormat?: Word.Interfaces.ThreeDimensionalFormatUpdateData;
Property Value
Remarks
underline
Specifies a value that indicates the font's underline type. 'None' if the font isn't underlined.
underline?: Word.UnderlineType | "Mixed" | "None" | "Hidden" | "DotLine" | "Single" | "Word" | "Double" | "Thick" | "Dotted" | "DottedHeavy" | "DashLine" | "DashLineHeavy" | "DashLineLong" | "DashLineLongHeavy" | "DotDashLine" | "DotDashLineHeavy" | "TwoDotDashLine" | "TwoDotDashLineHeavy" | "Wave" | "WaveHeavy" | "WaveDouble";
Property Value
Word.UnderlineType | "Mixed" | "None" | "Hidden" | "DotLine" | "Single" | "Word" | "Double" | "Thick" | "Dotted" | "DottedHeavy" | "DashLine" | "DashLineHeavy" | "DashLineLong" | "DashLineLongHeavy" | "DotDashLine" | "DotDashLineHeavy" | "TwoDotDashLine" | "TwoDotDashLineHeavy" | "Wave" | "WaveHeavy" | "WaveDouble"
Remarks
underlineColor
Specifies the color of the underline for the Font
object. You can provide the value in the '#RRGGBB' format.
underlineColor?: string;
Property Value
string