ParagraphFormat 属性 (Word)Selection.ParagraphFormat property (Word)

返回或设置一个**ParagraphFormat** 对象, 该对象代表指定的选定内容的段落设置。Returns or sets a ParagraphFormat object that represents the paragraph settings for the specified selection. 读/写。Read/write.


expressionexpression. ParagraphFormat

_表达式_一个代表**Selection** 对象的变量。expression A variable that represents a Selection object.


本示例将当前选定内容的段落格式设置为右对齐。This example sets the paragraph formatting for the current selection to be right-aligned.

Selection.ParagraphFormat.Alignment = wdAlignParagraphRight

另请参阅See also

Selection 对象Selection Object

支持和反馈Support and feedback

有关于 Office VBA 或本文档的疑问或反馈?Have questions or feedback about Office VBA or this documentation? 请参阅 Office VBA 支持和反馈,获取有关如何接收支持和提供反馈的指南。Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.