PowerPoint.Interfaces.TextRangeLoadOptions interface

包含附加到形状上的文本,以及用于操作文本的属性和方法。

属性

$all

指定加载选项将 $all 加载所有标量属性 ((如 Range.address) ),但不会加载导航属性 ((如 Range.format.fill.color) )。

font

返回 ShapeFont 表示文本区域的字体属性的对象。

length

获取或设置此表示 TextRange 的范围的长度。 当使用负值设置或值大于起点的可用文本长度时引发 InvalidArgument 异常。

paragraphFormat

表示文本区域的段落格式。 有关详细信息,请参阅 PowerPoint.ParagraphFormat 。

start

对于它 TextRange 所表示的范围的起始位置,获取或设置相对于父文本框架从零开始的索引。 当使用负值设置或值大于文本长度时引发 InvalidArgument 异常。

text

表示文本范围的纯文本内容。

属性详细信息

$all

指定加载选项将 $all 加载所有标量属性 ((如 Range.address) ),但不会加载导航属性 ((如 Range.format.fill.color) )。

$all?: boolean;

属性值

boolean

font

返回 ShapeFont 表示文本区域的字体属性的对象。

font?: PowerPoint.Interfaces.ShapeFontLoadOptions;

属性值

注解

API 集:PowerPointApi 1.4

length

获取或设置此表示 TextRange 的范围的长度。 当使用负值设置或值大于起点的可用文本长度时引发 InvalidArgument 异常。

length?: boolean;

属性值

boolean

注解

API 集:PowerPointApi 1.5

paragraphFormat

表示文本区域的段落格式。 有关详细信息,请参阅 PowerPoint.ParagraphFormat 。

paragraphFormat?: PowerPoint.Interfaces.ParagraphFormatLoadOptions;

属性值

注解

API 集:PowerPointApi 1.4

start

对于它 TextRange 所表示的范围的起始位置,获取或设置相对于父文本框架从零开始的索引。 当使用负值设置或值大于文本长度时引发 InvalidArgument 异常。

start?: boolean;

属性值

boolean

注解

API 集:PowerPointApi 1.5

text

表示文本范围的纯文本内容。

text?: boolean;

属性值

boolean

注解

API 集:PowerPointApi 1.4