WPS 基础接口 > 文字 API 参考 > ParagraphFormat > 方法 > ParagraphFormat.IndentCharWidth 方法
将一个或多个段落缩进指定的字符数。

语法

表达式.IndentCharWidth(Count)

表达式   必选。一个代表 ParagraphFormat 对象的变量。

参数

名称 必选/可选 数据类型 说明
Count 必选 Integer 指定段落要缩进的字符数。

说明

此方法等效于单击“格式”工具栏上的“增加缩进量”按钮。

示例

以下示例将活动文档的第一段缩进 10 个字符。

示例代码
ActiveDocument.Paragraphs.Item(1).Format.IndentCharWidth (10)


请参阅