PowerPoint.Interfaces.ShapeFontData interface
一个接口,用于描述通过调用 shapeFont.toJSON()
返回的数据。
属性
all |
指定是否将 中的
|
bold | 指定 中的文本
|
color | 指定文本颜色 (的 HTML 颜色代码表示形式,例如,“#FF0000”表示红色) 。
|
double |
指定 是否将 中的
|
italic | 指定 中的文本
|
name | 指定字体名称 (例如“Calibri”) 。 如果文本是复杂脚本或东亚语言,则这是相应的字体名称:否则为拉丁文字体名称。
|
size | 指定字体大小(以磅为单位), (例如 11) 。
|
small |
指定是否将 中的
|
strikethrough | 指定 是否将 中的
|
subscript | 指定 是否将 中的
|
superscript | 指定 是否将 中的
|
underline | 指定应用于字体的下划线类型。
|
属性详细信息
allCaps
注意
此 API 以预览状态提供给开发者,可能根据我们收到的反馈更改。 请勿在生产环境中使用此 API。
指定是否将 中的 TextRange
文本设置为使用使小写字母显示为大写字母 的 All Caps 属性。 可能值包括:
true
:所有文本都具有 All Caps 属性。false
:没有文本具有 All Caps属性。null
:文本的某些(但不是全部)具有 All Caps 属性。
allCaps?: boolean | null;
属性值
boolean | null
注解
bold
指定 中的文本 TextRange
是否设置为粗体。 可能值包括:
true
:所有文本都加粗。false
:文本均不加粗。null
:如果部分文本(但不是全部)为粗体,则返回 。
bold?: boolean | null;
属性值
boolean | null
注解
color
指定文本颜色 (的 HTML 颜色代码表示形式,例如,“#FF0000”表示红色) 。
null
如果 TextRange
包含不同颜色的文本片段,则返回 。
color?: string | null;
属性值
string | null
注解
doubleStrikethrough
注意
此 API 以预览状态提供给开发者,可能根据我们收到的反馈更改。 请勿在生产环境中使用此 API。
指定 是否将 中的 TextRange
文本设置为使用 Double 删除线 属性。 可能值包括:
true
:所有文本都具有 Double 删除线 属性。false
:任何文本都没有 双删除线 属性。null
:如果文本的某些(但不是全部)具有 Double 删除线 属性,则返回 。
doubleStrikethrough?: boolean | null;
属性值
boolean | null
注解
italic
指定 中的文本 TextRange
是否设置为斜体。 可能值包括:
true
:所有文本都斜体化。false
:不对文本进行斜体化。null
:如果文本的某些(但不是全部)被斜体化,则返回 。
italic?: boolean | null;
属性值
boolean | null
注解
name
指定字体名称 (例如“Calibri”) 。 如果文本是复杂脚本或东亚语言,则这是相应的字体名称:否则为拉丁文字体名称。
null
如果 TextRange
包含具有不同字体名称的文本片段,则返回 。
name?: string | null;
属性值
string | null
注解
size
指定字体大小(以磅为单位), (例如 11) 。
null
如果 TextRange
包含具有不同字号的文本片段,则返回 。
size?: number | null;
属性值
number | null
注解
smallCaps
注意
此 API 以预览状态提供给开发者,可能根据我们收到的反馈更改。 请勿在生产环境中使用此 API。
指定是否将 中的 TextRange
文本设置为使用 Small Caps 属性,该属性使小写字母显示为小写字母。 可能值包括:
true
:所有文本都具有 Small Caps 属性。false
:没有一个文本具有 Small Caps 属性。null
:如果部分(但不是全部)文本具有 Small Caps 属性,则返回 。
smallCaps?: boolean | null;
属性值
boolean | null
注解
strikethrough
注意
此 API 以预览状态提供给开发者,可能根据我们收到的反馈更改。 请勿在生产环境中使用此 API。
指定 是否将 中的 TextRange
文本设置为使用 Strikethrough 属性。 可能值包括:
true
:所有文本都具有 Strikethrough 属性。false
:没有一个文本具有 Strikethrough 属性。null
:如果文本的某些(但不是全部)具有 Strikethrough 属性,则返回 。
strikethrough?: boolean | null;
属性值
boolean | null
注解
subscript
注意
此 API 以预览状态提供给开发者,可能根据我们收到的反馈更改。 请勿在生产环境中使用此 API。
指定 是否将 中的 TextRange
文本设置为使用 Subscript 属性。 可能值包括:
true
:所有文本都具有 Subscript 属性。false
:文本中没有 下标 属性。null
:如果文本的某些(但不是全部)具有 Subscript 属性,则返回 。
subscript?: boolean | null;
属性值
boolean | null
注解
superscript
注意
此 API 以预览状态提供给开发者,可能根据我们收到的反馈更改。 请勿在生产环境中使用此 API。
指定 是否将 中的 TextRange
文本设置为使用 Superscript 属性。 可能值包括:
true
:所有文本都具有 上标 属性。false
:文本中没有 上标 属性。null
:如果文本的某些(但不是全部)具有 上标 属性,则返回 。
superscript?: boolean | null;
属性值
boolean | null
注解
underline
指定应用于字体的下划线类型。
null
如果 TextRange
包含具有不同下划线样式的文本片段,则返回 。 有关详细信息 ,请参阅 PowerPoint.ShapeFontUnderlineStyle 。
underline?: PowerPoint.ShapeFontUnderlineStyle | "None" | "Single" | "Double" | "Heavy" | "Dotted" | "DottedHeavy" | "Dash" | "DashHeavy" | "DashLong" | "DashLongHeavy" | "DotDash" | "DotDashHeavy" | "DotDotDash" | "DotDotDashHeavy" | "Wavy" | "WavyHeavy" | "WavyDouble" | null;
属性值
PowerPoint.ShapeFontUnderlineStyle | "None" | "Single" | "Double" | "Heavy" | "Dotted" | "DottedHeavy" | "Dash" | "DashHeavy" | "DashLong" | "DashLongHeavy" | "DotDash" | "DotDashHeavy" | "DotDotDash" | "DotDotDashHeavy" | "Wavy" | "WavyHeavy" | "WavyDouble" | null