Find.ParagraphFormat 属性 (Word)

返回或设置一个 ParagraphFormat 对象,该对象代表指定查找操作的段落设置。 读/写。

语法

expressionParagraphFormat

表达 一个代表“Find”对象的变量。

示例

本示例查找活动文档中所有双倍行距的段落,并将其设置为 1.5 倍行距。

With ActiveDocument.Content.Find 
 .ClearFormatting 
 .ParagraphFormat.Space2 
 .Replacement.ClearFormatting 
 .Replacement.ParagraphFormat.Space15 
 .Execute FindText:="", ReplaceWith:="", _ 
 Replace:=wdReplaceAll 
End With

另请参阅

Find 对象

支持和反馈

有关于 Office VBA 或本文档的疑问或反馈? 请参阅 Office VBA 支持和反馈,获取有关如何接收支持和提供反馈的指南。