PowerPoint.Interfaces.TextRangeLoadOptions interface

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

注解

[ API 集:PowerPointApi 1.4 ]

属性

$all

$all为 LoadOptions 指定将加载所有标量属性 (例如:Range.address) 但不加载导航属性 (例如: Range.format.fill.color) 。

font

返回一个 ShapeFont 对象,该对象代表文本区域的字体属性。

length

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

paragraphFormat

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

start

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

text

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

属性详细信息

$all

$all为 LoadOptions 指定将加载所有标量属性 (例如: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 ]