Paragraphs 接口

定义

Paragraph所选内容、范围或文档中的对象的集合。A collection of Paragraph objects in a selection, range, or document.

public interface class Paragraphs : System::Collections::IEnumerable
[System.Runtime.InteropServices.Guid("00020958-0000-0000-C000-000000000046")]
public interface Paragraphs : System.Collections.IEnumerable
type Paragraphs = interface
    interface IEnumerable
Public Interface Paragraphs
Implements IEnumerable
属性
实现

注解

使用 段落 属性返回 的段落 集合。Use the Paragraphs property to return the Paragraphs collection.

使用 Add(Object) 、、 InsertParagraph() InsertParagraphAfter()InsertParagraphBefore() 方法可向文档中添加一个新段落。Use the Add(Object), InsertParagraph(), InsertParagraphAfter(), or InsertParagraphBefore() method to add a new paragraph to a document.

使用段落index ),其中 index 是索引号,返回单个段落对象。Use Paragraphs(index), where index is the index number, to return a single Paragraph object.

Count在文档中,此集合的属性返回的只是正文中的项目数。The Count property for this collection in a document returns the number of items in the main story only. 若要统计其他部分中的项目数,请使用带有该对象的集合 RangeTo count items in other stories use the collection with the Range object.

属性

AddSpaceBetweenFarEastAndAlpha

确定是否将 Microsoft Word 设置为在指定段落的日语和西文文字之间自动添加空格。Determines if Microsoft Word is set to automatically add spaces between Japanese and Latin text for the specified paragraphs.

AddSpaceBetweenFarEastAndDigit

确定是否将 Microsoft Word 设置为在日语文本和数字之间为指定段落自动添加空格。Determines if Microsoft Word is set to automatically add spaces between Japanese text and numbers for the specified paragraphs.

Alignment

返回或设置一个 WdParagraphAlignment 常量,该常量代表指定段落的对齐方式。Returns or sets a WdParagraphAlignment constant that represents the alignment for the specified paragraphs.

Application

返回一个 Application 代表 Microsoft Word 应用程序的对象。Returns a Application object that represents the Microsoft Word application.

AutoAdjustRightIndent

确定是否将 Microsoft Word 设置为自动调整指定段落的右缩进(如果已指定每行的字符数)。Determines if Microsoft Word is set to automatically adjust the right indent for the specified paragraphs if you’ve specified a set number of characters per line.

BaseLineAlignment

返回或设置一个 WdBaselineAlignment 常量,该常量代表字体在线条上的垂直位置。Returns or sets a WdBaselineAlignment constant that represents the vertical position of fonts on a line.

Borders

返回一个 Borders 集合,该集合代表指定对象的所有边框。Returns a Borders collection that represents all the borders for the specified object.

CharacterUnitFirstLineIndent

返回或设置首行或悬挂缩进的值 (以字符为单位)。Returns or sets the value (in characters) for a first-line or hanging indent.

CharacterUnitLeftIndent

返回或设置指定段落的左缩进值 (以字符为单位)。Returns or sets the left indent value (in characters) for the specified paragraphs.

CharacterUnitRightIndent

该属性返回或设置指定段落的右缩进量(以字符为单位)。Returns or sets the right indent value (in characters) for the specified paragraphs.

Count

返回指定集合中的项目数。Returns the number of items in the specified collection.

Creator

返回一个 32 位整数,它指示在其中创建指定的对象的应用程序。Returns a 32-bit integer that indicates the application in which the specified object was created.

DisableLineHeightGrid

确定在指定每页的行数时,Microsoft Word 是否将指定段落中的字符与行网格对齐。Determines if Microsoft Word aligns characters in the specified paragraphs to the line grid when a set number of lines per page is specified.

FarEastLineBreakControl

确定 Microsoft Word 是否对指定段落应用东亚语言换行规则。Determines if Microsoft Word applies East Asian line-breaking rules to the specified paragraphs.

First

返回一个 Paragraph 对象,表示集合中的第一个项目 ParagraphsReturns a Paragraph object that represents the first item in the Paragraphs collection.

FirstLineIndent

返回或设置首行的行或悬挂缩进的值 (以磅为单位)。Returns or sets the value (in points) for a first line or hanging indent.

Format

返回或设置一个 ParagraphFormat 对象,表示指定的一个或多个段落的格式。Returns or sets a ParagraphFormat object that represents the formatting of the specified paragraph or paragraphs.

HalfWidthPunctuationOnTopOfLine

确定是否 Microsoft Word 将行首的标点符号更改为指定段落的半角字符。Determines if Microsoft Word changes punctuation symbols at the beginning of a line to half-width characters for the specified paragraphs.

HangingPunctuation

确定是否为指定段落启用标点溢出边界。Determines if hanging punctuation is enabled for the specified paragraphs.

Hyphenation

确定是否在自动断字中包含指定的段落。Determines if the specified paragraphs are included in automatic hyphenation.

Item[Int32]

返回集合中的单个对象。Returns an individual object in a collection.

KeepTogether

确定当 Microsoft Word 对文档重新分页时,指定段落中的所有行是否保持在同一页上。Determines if all lines in the specified paragraphs remain on the same page when Microsoft Word repaginates the document.

KeepWithNext

确定当 Microsoft Word 对文档重新分页时,指定的段落是否保留在与其后的段落相同的页面上。Determines if the specified paragraph remains on the same page as the paragraph that follows it when Microsoft Word repaginates the document.

Last

以对象的形式返回集合中的最后一项 Paragraphs ParagraphReturns the last item in the Paragraphs collection as a Paragraph object.

LeftIndent

返回或设置 一个 值,表示指定段落的左缩进值 (以磅为单位)。Returns or sets a Single that represents the left indent value (in points) for the specified paragraphs.

LineSpacing

返回或设置指定段落的行距 (以磅为单位)。Returns or sets the line spacing (in points) for the specified paragraphs.

LineSpacingRule

返回或设置指定段落的行距。Returns or sets the line spacing for the specified paragraphs.

LineUnitAfter

返回或设置指定段落的段后间距 (以网格线)。Returns or sets the amount of spacing (in gridlines) after the specified paragraphs.

LineUnitBefore

返回或设置指定段落的段前间距 (以网格线) 的数量。Returns or sets the amount of spacing (in gridlines) before the specified paragraphs.

NoLineNumber

确定是否取消指定段落的行号。Determines if line numbers are repressed for the specified paragraphs.

OutlineLevel

返回或设置指定段落的大纲级别。Returns or sets the outline level for the specified paragraphs.

PageBreakBefore

确定在指定段落前是否强制分页。Determines if a page break is forced before the specified paragraphs.

Parent

返回一个对象,代表指定对象的父对象。Returns an object that represents the parent object of the specified object.

ReadingOrder

返回或设置指定段落的读取次序而不改变其对齐方式。Returns or sets the reading order of the specified paragraphs without changing their alignment.

RightIndent

返回或设置指定段落的右缩进量(以磅为单位)。Returns or sets the right indent (in points) for the specified paragraphs.

Shading

返回一个 Shading 对象,该对象代表指定对象的底纹格式。Returns a Shading object that refers to the shading formatting for the specified object.

SpaceAfter

返回或设置指定段落或文本栏后面的间距 (以磅为单位) 的数量。Returns or sets the amount of spacing (in points) after the specified paragraph or text column.

SpaceAfterAuto

确定是否 Microsoft Word 自动设置指定段落的段后间距。Determines if Microsoft Word automatically sets the amount of spacing after the specified paragraphs.

SpaceBefore

返回或设置指定段落的段前间距 (以磅为单位)。Returns or sets the spacing (in points) before the specified paragraphs.

SpaceBeforeAuto

确定是否 Microsoft Word 自动设置指定段落的段前间距。Determines if Microsoft Word automatically sets the amount of spacing before the specified paragraphs.

Style

返回或设置指定对象的样式。Returns or sets the style for the specified object.

TabStops

返回或设置一个 TabStops 集合,该集合代表指定段落的所有自定义制表位。Returns or sets a TabStops collection that represents all the custom tab stops for the specified paragraphs.

WidowControl

确定当 Microsoft Word 对文档重新分页时,指定段落中的第一行和最后一行是否与段落的其余部分保持一致。Determines if the first and last lines in the specified paragraph remain on the same page as the rest of the paragraph when Microsoft Word repaginates the document.

WordWrap

确定 Microsoft Word 是否将西文文本在指定段落或文本框架中的单词中间换行。Determines if Microsoft Word wraps Latin text in the middle of a word in the specified paragraphs or text frames.

方法

Add(Object)

返回一个 Paragraph 对象,该对象代表添加到文档中的一个新的空白段落。Returns a Paragraph object that represents a new, blank paragraph added to a document.

CloseUp()

清除指定段落前的段落间距。Removes any spacing before the specified paragraphs.

DecreaseSpacing()

以 6 磅增量缩减段前和段后的间距。Decreases the spacing before and after paragraphs in six-point increments.

GetEnumerator()
IncreaseSpacing()

以 6 磅增量增加段前和段后的间距。Increases the spacing before and after paragraphs in six-point increments.

Indent()

为一个或多个段落增加一个级别的缩进。Indents one or more paragraphs by one level.

IndentCharWidth(Int16)

将一个或多个段落缩进指定的字符数。Indents one or more paragraphs by a specified number of characters.

IndentFirstLineCharWidth(Int16)

将一个或多个段落缩进指定的字符数。Indents one or more paragraphs by a specified number of characters.

OpenOrCloseUp()

如果指定段落的段前间距等于 0(零),则此方法将其设置为 12 磅;如果指定段落的段前间距大于 0(零),则此方法将其设置为 0(零)。If spacing before the specified paragraphs is 0 (zero), this method sets spacing to 12 points. If spacing before the paragraphs is greater than 0 (zero), this method sets spacing to 0 (zero).

OpenUp()

为指定段落设置 12 磅的段前间距。Sets spacing before the specified paragraphs to 12 points.

Outdent()

为一个或多个段落删除一个级别的缩进。Removes one level of indent for one or more paragraphs.

OutlineDemote()

对指定段落应用下一个标题级别样式(从"标题 1"到"标题 8")。Applies the next heading level style (Heading 1 through Heading 8) to the specified paragraph or paragraphs.

OutlineDemoteToBody()

通过应用"正文"样式将指定段落降级为正文文本。Demotes the specified paragraph or paragraphs to body text by applying the Normal style.

OutlinePromote()

对指定段落应用上一个标题级别样式(从"标题 1"到"标题 8")。Applies the previous heading level style (Heading 1 through Heading 8) to the specified paragraph or paragraphs.

Reset()

删除手动段落格式(不使用样式应用的格式)。Removes manual paragraph formatting (formatting not applied using a style).

Space1()

为指定段落设置单倍行距。Single-spaces the specified paragraphs.

Space15()

为指定段落设置 1.5 倍行距。Formats the specified paragraphs with 1.5-line spacing.

Space2()

为指定段落设置 2 倍行距。Double-spaces the specified paragraphs.

TabHangingIndent(Int16)

将悬挂缩进量设置为指定的制表位数。Sets a hanging indent to a specified number of tab stops.

TabIndent(Int16)

将指定段落的左缩进量设置为指定的制表位数。Sets the left indent for the specified paragraphs to a specified number of tab stops.

适用于