Word.Interfaces.FontUpdateData interface
用于更新对象上 Font 的数据的接口,用于 font.set({ ... }).
属性
| all |
指定字体是否格式化为全大写字母,这将使小写字母显示为大写字母。 可能值包括:
|
| bold | 指定字体是否为粗体。
|
| bold |
指定在从右向左的语言文档中字体是否格式化为粗体。 可能值包括:
|
| color | 指定字体的颜色。 可以以“#RRGGBB”格式或颜色名称提供值。 |
| color |
指定表示 |
| color |
指定从右到左语言文档中对象 |
| contextual |
指定是否为字体启用上下文替代项。 |
| diacritic |
指定对象音 |
| disable |
指定 Microsoft Word 是否忽略相应 |
| double |
指定字体是否具有双删除线。
|
| emboss | 指定字体是否格式化为浮雕字体。 可能值包括:
|
| emphasis |
指定表示 |
| engrave | 指定字体是否格式化为雕刻字体。 可能值包括:
|
| fill | 返回一个 |
| glow | 返回一个 |
| hidden | 指定字体是否已标记为隐藏。
|
| highlight |
指定突出显示颜色。 若要设置它,请使用“#RRGGBB”格式或颜色名称的值。 要删除突出显示颜色,请将其设置为 |
| italic | 指定字体是否为斜体。
|
| italic |
指定从右向左的语言文档中字体是否为斜体。 可能值包括:
|
| kerning | 指定 Microsoft Word 自动调整字距调整的最小字号。 |
| ligature | 指定对象的 |
| line | 返回指定 |
| name | 指定字体的名称。 |
| name |
指定用于字符代码从 0 (零) 到 127) 的拉丁文本 (字符的字体。 |
| name |
指定从右向左语言文档中的字体名称。 |
| name |
指定东亚字体名称。 |
| name |
指定用于代码为 128 至 255 的字符的字体。 |
| number |
指定 OpenType 字体的数字形式设置。 |
| number |
指定字体的数字间距设置。 |
| outline | 指定字体的格式是否为轮廓。 可能值包括:
|
| position | 指定以点) 相对于基线的点 (的位置。 |
| reflection | 返回表示 |
| scaling | 指定应用于字体的缩放百分比。 |
| shadow | 指定字体是否格式化为阴影字体。 可能值包括:
|
| size | 指定字号(以磅为单位)。 |
| size |
指定从右到左文本的字号(以磅为单位)。 |
| small |
指定字体是否格式化为小型大写,这会使小写字母显示为小型大写字母。 可能值包括:
|
| spacing | 指定字符之间的间距。 |
| strike |
指定字体是否具有删除线。
|
| stylistic |
指定字体的样式集。 |
| subscript | 指定字体是否为下标。
|
| superscript | 指定字体是否为上标。
|
| text |
返回 |
| text |
返回指定 |
| three |
返回包含 |
| underline | 指定字体的下划线类型。
|
| underline |
指定对象下 |
属性详细信息
allCaps
指定字体是否格式化为全大写字母,这将使小写字母显示为大写字母。 可能值包括:
true:所有文本都具有 “全部大写” 属性。false:所有文本均不具有 “全部大写” 属性。null:如果部分(但不是全部)文本具有 “全部大写 ”属性,则返回。
allCaps?: boolean;
属性值
boolean
注解
bold
boldBidirectional
指定在从右向左的语言文档中字体是否格式化为粗体。 可能值包括:
true:所有文本均为粗体。false:没有任何文本是粗体的。null:如果部分(但不是全部)文本为粗体,则返回。
boldBidirectional?: boolean;
属性值
boolean
注解
color
colorIndex
指定表示 ColorIndex 字体颜色的值。
colorIndex?: Word.ColorIndex | "Auto" | "Black" | "Blue" | "Turquoise" | "BrightGreen" | "Pink" | "Red" | "Yellow" | "White" | "DarkBlue" | "Teal" | "Green" | "Violet" | "DarkRed" | "DarkYellow" | "Gray50" | "Gray25" | "ClassicRed" | "ClassicBlue" | "ByAuthor";
属性值
Word.ColorIndex | "Auto" | "Black" | "Blue" | "Turquoise" | "BrightGreen" | "Pink" | "Red" | "Yellow" | "White" | "DarkBlue" | "Teal" | "Green" | "Violet" | "DarkRed" | "DarkYellow" | "Gray50" | "Gray25" | "ClassicRed" | "ClassicBlue" | "ByAuthor"
注解
colorIndexBidirectional
指定从右到左语言文档中对象 Font 的颜色。
colorIndexBidirectional?: Word.ColorIndex | "Auto" | "Black" | "Blue" | "Turquoise" | "BrightGreen" | "Pink" | "Red" | "Yellow" | "White" | "DarkBlue" | "Teal" | "Green" | "Violet" | "DarkRed" | "DarkYellow" | "Gray50" | "Gray25" | "ClassicRed" | "ClassicBlue" | "ByAuthor";
属性值
Word.ColorIndex | "Auto" | "Black" | "Blue" | "Turquoise" | "BrightGreen" | "Pink" | "Red" | "Yellow" | "White" | "DarkBlue" | "Teal" | "Green" | "Violet" | "DarkRed" | "DarkYellow" | "Gray50" | "Gray25" | "ClassicRed" | "ClassicBlue" | "ByAuthor"
注解
contextualAlternates
diacriticColor
指定对象音 Font 调符号要使用的颜色。 可以用“#RRGGBB”格式提供值。
diacriticColor?: string;
属性值
string
注解
disableCharacterSpaceGrid
指定 Microsoft Word 是否忽略相应Font对象的每行字符数。
disableCharacterSpaceGrid?: boolean;
属性值
boolean
注解
doubleStrikeThrough
指定字体是否具有双删除线。
true 如果字体格式设置为双删除线文本,否则为 false.
doubleStrikeThrough?: boolean;
属性值
boolean
注解
emboss
指定字体是否格式化为浮雕字体。 可能值包括:
true:所有文本均经过浮雕处理。false:没有任何文本浮雕。null:如果部分(但不是全部)文本是浮雕的,则返回。
emboss?: boolean;
属性值
boolean
注解
emphasisMark
指定表示 EmphasisMark 字符或指定字符串的强调标记的值。
emphasisMark?: Word.EmphasisMark | "None" | "OverSolidCircle" | "OverComma" | "OverWhiteCircle" | "UnderSolidCircle";
属性值
Word.EmphasisMark | "None" | "OverSolidCircle" | "OverComma" | "OverWhiteCircle" | "UnderSolidCircle"
注解
engrave
指定字体是否格式化为雕刻字体。 可能值包括:
true:雕刻所有文字。false:未雕刻任何文本。null:如果雕刻了部分(但不是全部)文本,则返回。
engrave?: boolean;
属性值
boolean
注解
fill
返回一个 FillFormat 对象,该对象包含文本区域所用字体的填充格式属性。
fill?: Word.Interfaces.FillFormatUpdateData;
属性值
注解
glow
返回一个 GlowFormat 对象,该对象表示文本区域使用的字体的发光格式。
glow?: Word.Interfaces.GlowFormatUpdateData;
属性值
注解
hidden
指定字体是否已标记为隐藏。
true 如果字体格式化为隐藏文本,否则, false.
hidden?: boolean;
属性值
boolean
注解
highlightColor
指定突出显示颜色。 若要设置它,请使用“#RRGGBB”格式或颜色名称的值。 要删除突出显示颜色,请将其设置为 null。 返回的突出显示颜色可以是“#RRGGBB”格式,混合突出显示颜色为空字符串,或 null 无突出显示颜色。 注意:Office for Windows 桌面版中仅提供默认突出显示颜色。 它们是“黄色”、“石灰”、“绿松石色”、“粉色”、“蓝色”、“红色”、“深蓝色”、“青色”、“绿色”、“紫色”、“深红色”、“橄榄色”、“灰色”、“浅灰色”和“黑色”。 在 Office for Windows 桌面版中运行加载项时,其他任何颜色在应用于字体时都转换为最接近的颜色。
highlightColor?: string;
属性值
string
注解
italic
italicBidirectional
指定从右向左的语言文档中字体是否为斜体。 可能值包括:
true:所有文本均为斜体。false:所有文本均不以斜体表示。null:如果部分(但不是全部)文本为斜体,则返回。
italicBidirectional?: boolean;
属性值
boolean
注解
kerning
ligature
指定对象的 Font 连字设置。
ligature?: Word.Ligature | "None" | "Standard" | "Contextual" | "StandardContextual" | "Historical" | "StandardHistorical" | "ContextualHistorical" | "StandardContextualHistorical" | "Discretional" | "StandardDiscretional" | "ContextualDiscretional" | "StandardContextualDiscretional" | "HistoricalDiscretional" | "StandardHistoricalDiscretional" | "ContextualHistoricalDiscretional" | "All";
属性值
Word.Ligature | "None" | "Standard" | "Contextual" | "StandardContextual" | "Historical" | "StandardHistorical" | "ContextualHistorical" | "StandardContextualHistorical" | "Discretional" | "StandardDiscretional" | "ContextualDiscretional" | "StandardContextualDiscretional" | "HistoricalDiscretional" | "StandardHistoricalDiscretional" | "ContextualHistoricalDiscretional" | "All"
注解
line
返回指定 LineFormat 行的格式的对象。
line?: Word.Interfaces.LineFormatUpdateData;
属性值
注解
name
nameAscii
nameBidirectional
nameFarEast
nameOther
numberForm
指定 OpenType 字体的数字形式设置。
numberForm?: Word.NumberForm | "Default" | "Lining" | "OldStyle";
属性值
Word.NumberForm | "Default" | "Lining" | "OldStyle"
注解
numberSpacing
指定字体的数字间距设置。
numberSpacing?: Word.NumberSpacing | "Default" | "Proportional" | "Tabular";
属性值
Word.NumberSpacing | "Default" | "Proportional" | "Tabular"
注解
outline
指定字体的格式是否为轮廓。 可能值包括:
true:将突出显示所有文本。false:未突出任何文本。null:如果部分文本(但不是全部)被轮廓显示,则返回。
outline?: boolean;
属性值
boolean
注解
position
reflection
返回表示 ReflectionFormat 形状反射格式的对象。
reflection?: Word.Interfaces.ReflectionFormatUpdateData;
属性值
注解
scaling
shadow
指定字体是否格式化为阴影字体。 可能值包括:
true:所有文本都有阴影。false:所有文本均不带有阴影。null:如果部分(但不是全部)文本带有阴影,则返回。
shadow?: boolean;
属性值
boolean
注解
size
sizeBidirectional
smallCaps
指定字体是否格式化为小型大写,这会使小写字母显示为小型大写字母。 可能值包括:
true:所有文本都具有 小型大写 属性。false:没有文本具有 小型大写 属性。null:如果部分(但不是全部)文本具有 小型大写 属性,则返回。
smallCaps?: boolean;
属性值
boolean
注解
spacing
strikeThrough
指定字体是否具有删除线。
true 如果字体格式设置为删除线文本,否则为 false。
strikeThrough?: boolean;
属性值
boolean
注解
stylisticSet
指定字体的样式集。
stylisticSet?: Word.StylisticSet | "Default" | "Set01" | "Set02" | "Set03" | "Set04" | "Set05" | "Set06" | "Set07" | "Set08" | "Set09" | "Set10" | "Set11" | "Set12" | "Set13" | "Set14" | "Set15" | "Set16" | "Set17" | "Set18" | "Set19" | "Set20";
属性值
Word.StylisticSet | "Default" | "Set01" | "Set02" | "Set03" | "Set04" | "Set05" | "Set06" | "Set07" | "Set08" | "Set09" | "Set10" | "Set11" | "Set12" | "Set13" | "Set14" | "Set15" | "Set16" | "Set17" | "Set18" | "Set19" | "Set20"
注解
subscript
superscript
textColor
返回 ColorFormat 表示字体颜色的对象。
textColor?: Word.Interfaces.ColorFormatUpdateData;
属性值
注解
textShadow
返回指定 ShadowFormat 字体阴影格式的对象。
textShadow?: Word.Interfaces.ShadowFormatUpdateData;
属性值
注解
threeDimensionalFormat
返回包含 ThreeDimensionalFormat 字体的 3D (3D) 效果格式设置属性的对象。
threeDimensionalFormat?: Word.Interfaces.ThreeDimensionalFormatUpdateData;
属性值
注解
underline
指定字体的下划线类型。
none 如果字体没有下划线。
underline?: Word.UnderlineType | "Mixed" | "None" | "Hidden" | "DotLine" | "Single" | "Word" | "Double" | "Thick" | "Dotted" | "DottedHeavy" | "DashLine" | "DashLineHeavy" | "DashLineLong" | "DashLineLongHeavy" | "DotDashLine" | "DotDashLineHeavy" | "TwoDotDashLine" | "TwoDotDashLineHeavy" | "Wave" | "WaveHeavy" | "WaveDouble";
属性值
Word.UnderlineType | "Mixed" | "None" | "Hidden" | "DotLine" | "Single" | "Word" | "Double" | "Thick" | "Dotted" | "DottedHeavy" | "DashLine" | "DashLineHeavy" | "DashLineLong" | "DashLineLongHeavy" | "DotDashLine" | "DotDashLineHeavy" | "TwoDotDashLine" | "TwoDotDashLineHeavy" | "Wave" | "WaveHeavy" | "WaveDouble"
注解
underlineColor
指定对象下 Font 划线的颜色。 可以用“#RRGGBB”格式提供值。
underlineColor?: string;
属性值
string