Range 接口

定义

表示文档中的一个连续区域。Represents a contiguous area in a document.

public interface class Range
[System.Runtime.InteropServices.Guid("0002095E-0000-0000-C000-000000000046")]
public interface Range
type Range = interface
Public Interface Range
属性

注解

每个 Range 对象都由起始和结束字符位置定义。Each Range object is defined by a starting and ending character position. 与在文档中使用书签的方式类似, Range 对象用于标识文档的特定部分。Similar to the way bookmarks are used in a document, Range objects are used to identify specific portions of a document. 但是,与书签不同的 Range 是,对象仅在定义它的编程代码运行时才存在。However, unlike a bookmark, a Range object only exists while the programming code that defined it is running. Range对象独立于所选内容。Range objects are independent of the selection. 这就是说,你可以定义区域并对其进行操作,无需更改选定内容。That is, you can define and manipulate a range without changing the selection. 此外,你还可以在文档中定义多个区域,但每个窗格只能具有一个选定内容。You can also define multiple ranges in a document, while there can be only one selection per pane.

使用 Range(Object, Object) 方法返回 Range 由给定的起始和结束字符位置定义的对象。Use the Range(Object, Object) method to return a Range object defined by the given starting and ending character positions.

使用单个对象的Range属性可返回 Range 由该对象的开头和结尾定义的对象。Use the Range property of an individual object to return a Range object defined by the beginning and end of the object. Range属性适用于许多对象(例如、、 Paragraph Bookmark 、和 Cell )。The Range property applies to many objects (for example, Paragraph, Bookmark, and Cell).

属性

Application

返回一个 Application 对象,表示 Microsoft Word 应用程序。Returns an Application object that represents the Microsoft Word application.

Bold

确定字体或区域的格式是否为加粗。Determines if the font or range is formatted as bold.

BoldBi

确定字体或区域的格式是否为加粗。Determines if the font or range is formatted as bold.

BookmarkID

返回包含指定的所选内容或区域的开始位置的书签的编号。如果没有相应的书签,则返回0(零)。Returns the number of the bookmark that encloses the beginning of the specified selection or range; returns 0 (zero) if there's no corresponding bookmark.

Bookmarks

返回一个 Bookmarks 集合,该集合代表区域中的所有书签。Returns a Bookmarks collection that represents all the bookmarks in a range.

Borders

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

CanEdit

保留以供内部使用。 Reserved for internal use.

CanPaste

保留以供内部使用。Reserved for internal use.

Case

返回或设置一个 WdCharacterCase 常量,该常量代表指定区域中的文本的大小写。Returns or sets a WdCharacterCase constant that represents the case of the text in the specified range.

Cells

返回一个 Cells 集合,该集合代表区域中的表格单元格。Returns a Cells collection that represents the table cells in a range.

Characters

返回一个 Characters 集合,该集合代表区域中的字符。Returns a Characters collection that represents the characters in a range.

CharacterStyle

返回一个Object类型的对象,该对象代表用于设置一个或多个字符格式的样式。Returns a Object that represents the style used to format one or more characters. 只读。Read-only.

CharacterWidth

返回或设置指定区域的字符宽度。Returns or sets the character width of the specified range.

Columns

返回一个 Columns 集合,该集合代表区域中的所有表格列。Returns a Columns collection that represents all the table columns in the range.

CombineCharacters

确定指定区域是否包含组合字符。Determines if the specified range contains combined characters.

Comments

返回一个 Comments 集合,该集合代表指定区域中的所有批注。Returns a Comments collection that represents all the comments in the specified range.

Conflicts

获取一个 Conflicts 集合对象,该对象包含范围中的所有冲突对象。Gets a Conflicts collection object that contains all the conflict objects in the range.

ContentControls

返回一个 ContentControls 集合,该集合代表区域中包含的内容控件。Returns a ContentControls collection that represents the content controls contained within a range. 只读。Read-only.

Creator

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

DisableCharacterSpaceGrid

确定 Microsoft Word 是否忽略区域中每行的字符数。Determines if Microsoft Word ignores the number of characters per line for the range.

Document

返回 Document 与指定区域相关联的对象。Returns a Document object associated with the specified range.

Duplicate

返回一个 Range 对象,表示指定范围的所有属性。Returns a Range object that represents all the properties of the specified range.

Editors

返回一个 Editors 对象,表示有权修改文档中的所选内容或区域的所有用户。Returns an Editors object that represents all the users authorized to modify a selection or range within a document.

EmphasisMark

返回或设置字符或指定的字符字符串的着重号。Returns or sets the emphasis mark for a character or designated character string.

End

返回或设置某区域中结束字符的位置。Returns or sets the ending character position of a range.

EndnoteOptions

返回一个 EndnoteOptions 对象,表示某一区域或选定内容中的尾注。Returns a EndnoteOptions object that represents the endnotes in a range or selection.

Endnotes

返回一个 Endnotes 集合,该集合代表区域中的所有尾注。Returns a Endnotes collection that represents all the endnotes in a range.

EnhMetaFileBits

返回所选内容或文本区域的显示方式的图片表示。Returns a picture representation of how a selection or range of text appears.

Fields

返回一个只读 Fields 集合,该集合代表区域中的所有字段。Returns a read-only Fields collection that represents all the fields in the range.

Find

返回一个 Find 对象,其中包含查找操作的条件。Returns a Find object that contains the criteria for a find operation.

FitTextWidth

返回或设置 Microsoft Word 适应当前区域中的文本的宽度(以当前度量单位表示)。Returns or sets the width (in the current measurement units) in which Microsoft Word fits the text in the current range.

Font

返回或设置一个 Font 对象,该对象代表指定对象的字符格式。Returns or sets a Font object that represents the character formatting of the specified object.

FootnoteOptions

返回一个 FootnoteOptions 对象,表示区域中的脚注选项。Returns a FootnoteOptions object that represents the footnote options in a range.

Footnotes

返回一个 Footnotes 集合,该集合代表区域中的所有脚注。Returns a Footnotes collection that represents all the footnotes in a range.

FormattedText

返回或设置一个 Range 对象,该对象包含指定区域或选定内容中的格式化文本。Returns or sets a Range object that includes the formatted text in the specified range or selection.

FormFields

返回一个 FormFields 集合,该集合代表区域中的所有窗体域。Returns a FormFields collection that represents all the form fields in the range.

Frames

返回一个 Frames 集合,该集合代表区域中的所有图文框。Returns a Frames collection that represents all the frames in a range.

GrammarChecked

确定是否已对指定区域运行语法检查。Determines if a grammar check has been run on the specified range.

GrammaticalErrors

返回一个 ProofreadingErrors 集合,该集合代表在指定区域上进行语法检查失败的句子。Returns a ProofreadingErrors collection that represents the sentences that failed the grammar check on the specified range.

HighlightColorIndex

返回或设置指定区域的突出显示颜色。Returns or sets the highlight color for the specified range.

HorizontalInVertical

返回或设置水平垂直文本中的文本的格式。Returns or sets the formatting for horizontal text set within vertical text.

HTMLDivisions

返回一个 HTMLDivisions 对象,表示 Web 文档中的 HTML 划分。Returns a HTMLDivisions object that represents an HTML division in a Web document.

Hyperlinks

返回一个 Hyperlinks 集合,该集合代表指定区域中的所有超链接。Returns a Hyperlinks collection that represents all the hyperlinks in the specified range.

ID

返回或设置指定对象的标识标签当前文档保存为 Web 页时。Returns or sets the identifying label for the specified object when the current document is saved as a Web page.

Information[WdInformation]

返回有关指定的所选内容或区域的信息。Returns information about the specified selection or range.

InlineShapes

返回一个 InlineShapes 集合,该集合代表 InlineShape 文档、区域或选定内容中的所有对象。Returns a InlineShapes collection that represents all the InlineShape objects in a document, range, or selection.

IsEndOfRowMark

确定指定的范围是否为折叠且位于表中的行尾标记处。Determines if the specified range is collapsed and is located at the end-of-row mark in a table.

Italic

确定区域的格式是否设置为斜体。Determines if the range is formatted as italic.

ItalicBi

确定区域的格式是否设置为斜体。Determines if the range is formatted as italic.

Kana

返回或设置日文文本的指定区域是平假名还是片假名。Returns or sets whether the specified range of Japanese language text is hiragana or katakana.

LanguageDetected

返回或设置一个值,指定 Word 是否已检测到指定的文本的语言。Returns or sets a value that specifies whether Microsoft Word has detected the language of the specified text.

LanguageID

返回或设置指定对象的语言。Returns or sets the language for the specified object.

LanguageIDFarEast

返回或设置指定对象的东亚语言。Returns or sets an East Asian language for the specified object.

LanguageIDOther

返回或设置指定对象的语言。Returns or sets the language for the specified object.

ListFormat

返回一个 ListFormat 对象,表示区域的所有列表格式设置特征。Returns a ListFormat object that represents all the list formatting characteristics of a range.

ListParagraphs

返回一个 ListParagraphs 集合,该集合代表区域中的所有编号段落。Returns a ListParagraphs collection that represents all the numbered paragraphs in the range.

ListStyle

返回一个Object类型的对象,该对象代表用于设置项目符号列表或编号列表格式的样式。Returns an Object that represents the style used to format a bulleted list or numbered list. 只读。Read-only.

Locks

获取一个 CoAuthLocks 集合对象,该对象表示范围中的所有锁。Gets a CoAuthLocks collection object that represents all the locks in the range.

NextStoryRange

返回一个 Range 引用下一文章的对象,如下表所示。Returns a Range object that refers to the next story as shown in the following table.

NoProofing

确定拼写和语法检查程序是否忽略指定的文本。Determines if the spelling and grammar checker ignores the specified text.

OMaths

返回一个 OMaths 集合,该集合代表 OMath 指定区域中的对象。Returns an OMaths collection that represents the OMath objects within the specified range. 只读。Read-only.

Orientation

返回或设置范围中文字的方向,当启用了文字方向功能。Returns or sets the orientation of text in a range when the Text Direction feature is enabled.

PageSetup

返回 PageSetup 与指定区域相关联的对象。Returns a PageSetup object that's associated with the specified range.

ParagraphFormat

返回或设置一个 ParagraphFormat 对象,表示指定区域的段落设置。Returns or sets a ParagraphFormat object that represents the paragraph settings for the specified range.

Paragraphs

返回一个 Paragraphs 集合,该集合代表指定区域中的所有段落。Returns a Paragraphs collection that represents all the paragraphs in the specified range.

ParagraphStyle

返回一个对象,表示用于设置段落格式的样式。Returns an Object that represents the style used to format a paragraph. 只读。Read-only.

Parent

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

ParentContentControl

返回一个 ContentControl 对象,表示指定范围的父内容控件。Returns a ContentControl object that represents the parent content control for the specified range. 只读。Read-only.

PreviousBookmarkID

返回与指定区域位于同一位置或之前的最后一个书签的编号。Returns the number of the last bookmark that starts before or at the same place as the specified range.

ReadabilityStatistics

返回一个 ReadabilityStatistics 集合,该集合代表指定区域的可读性统计信息。Returns a ReadabilityStatistics collection that represents the readability statistics for the specified range.

Revisions

返回一个 Revisions 集合,该集合代表区域中的修订。Returns a Revisions collection that represents the tracked changes in the range.

Rows

返回一个 Rows 集合,该集合代表区域中的所有表格行。Returns a Rows collection that represents all the table rows in a range.

Scripts

返回一个 Scripts 集合,该集合代表指定对象中的 HTML 脚本的集合。Returns a Scripts collection that represents the collection of HTML scripts in the specified object.

Sections

返回一个 Sections 集合,该集合代表指定区域中的节。Returns a Sections collection that represents the sections in the specified range.

Sentences

返回一个 Sentences 集合,该集合代表区域中的所有句子。Returns a Sentences collection that represents all the sentences in the range.

Shading

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

ShapeRange

返回一个 ShapeRange 集合,该集合代表 Shape 指定区域中的所有对象。Returns a ShapeRange collection that represents all the Shape objects in the specified range.

ShowAll

确定是否显示所有非打印字符(如隐藏文本、制表符、空格标记和段落标记)。Determines if all nonprinting characters (such as hidden text, tab marks, space marks, and paragraph marks) are displayed.

SmartTags

返回一个 SmartTags 对象,表示区域中的智能标记。Returns a SmartTags object that represents a smart tag in a range.

SpellingChecked

确定是否已对指定区域中的拼写进行检查。Determines if spelling has been checked throughout the specified range.

SpellingErrors

返回一个 ProofreadingErrors 集合,该集合代表指定区域中被标识为拼写错误的单词。Returns a ProofreadingErrors collection that represents the words identified as spelling errors in the specified range.

Start

返回或设置范围的起始字符位置。Returns or sets the starting character position of a range.

StoryLength

返回包含指定的区域的文章中的字符数。Returns the number of characters in the story that contains the specified range.

StoryType

返回指定区域的文字部分类型。Returns the story type for the specified range.

Style

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

Subdocuments

返回一个 Subdocuments 集合,该集合代表指定区域中的所有子文档。Returns a Subdocuments collection that represents all the subdocuments in the specified range.

SynonymInfo

返回一个 SynonymInfo 对象,该对象包含同义词库中有关指定单词或短语的同义词、反义词或相关单词和表达的信息。Returns a SynonymInfo object that contains information from the thesaurus on synonyms, antonyms, or related words and expressions for the specified word or phrase.

Tables

返回一个 Tables 集合,该集合代表指定区域中的所有表格。Returns a Tables collection that represents all the tables in the specified range.

TableStyle

返回一个Object类型的对象,该对象代表用于设置表格格式的样式。Returns a Object that represents the style used to format a table. 只读。Read-only.

Text

返回或设置指定区域中的文本。Returns or sets the text in the specified range.

TextRetrievalMode

返回一个 TextRetrievalMode 对象,该对象控制从指定区域中检索文本的方式。Returns a TextRetrievalMode object that controls how text is retrieved from the specified range.

TextVisibleOnScreen

返回一个整数以 c # 为单位),指示指定区域中的文本是否在屏幕上可见。Returns an Integer (int in C#) that indicates whether the text in the specified range is visible on the screen. 只读。Read-only.

TopLevelTables

返回一个 Tables 集合,该集合代表当前范围最外层嵌套级别的表格。Returns a Tables collection that represents the tables at the outermost nesting level in the current range.

TwoLinesInOne

返回或设置 Microsoft Word 设置在一个两行文本并指定将文本括起来的字符,如果有的话。Returns or sets whether Microsoft Word sets two lines of text in one and specifies the characters that enclose the text, if any.

Underline

返回或设置应用于区域的下划线的类型。Returns or sets the type of underline applied to the range.

Updates

获取一个 CoAuthUpdates 集合对象,该对象表示范围中的所有可用更新。Gets a CoAuthUpdates collection object that represents all the available updates in the range.

WordOpenXML

返回一个字符串,表示包含在 Microsoft Office WORD Open xml 格式的范围内的 xml。Returns a String that represents the XML contained within the range in the Microsoft Office Word Open XML format. 只读。Read-only.

Words

返回一个 Words 集合,该集合代表区域中的所有单词。Returns a Words collection that represents all the words in a range.

XML[Boolean]

返回一个字符串,表示指定对象中的 XML 文本。Returns a String that represents the XML text in the specified object.

XMLNodes

此对象、成员或枚举已被弃用并且不适合在您的代码中使用。This object, member, or enumeration is deprecated and is not intended to be used in your code.

XMLParentNode

此对象、成员或枚举已被弃用并且不适合在您的代码中使用。This object, member, or enumeration is deprecated and is not intended to be used in your code.

方法

AutoFormat()

自动设置区域格式。Automatically formats a range.

Calculate()

计算区域中的数学表达式。Calculates a mathematical expression within a range.

CheckGrammar()

开始对指定的区域执行拼写和语法检查。Begins a spelling and grammar check for the specified range.

CheckSpelling(Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object)

开始对指定区域进行拼写检查。Begins a spelling check for the specified range.

CheckSynonyms()

显示“同义词库”对话框,为指定区域中的文字列出可替换单词或同义词。Displays the Thesaurus dialog box, which lists alternative word choices, or synonyms, for the text in the specified range.

Collapse(Object)

将区域折叠到起始位置或结束位置。Collapses a range to the starting or ending position.

ComputeStatistics(WdStatistic)

返回基于指定范围的内容的统计信息。Returns a statistic based on the contents of the specified range.

ConvertHangulAndHanja(Object, Object, Object, Object, Object)

将指定范围从朝鲜文字转换为朝鲜文汉字,反之亦然。Converts the specified range from Hangul to Hanja or vice versa.

ConvertToTable(Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object)

将区域或所选内容中的文本转换为表格。Converts text within a range or selection to a table.

ConvertToTableOld(Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object)

仅供内部使用。Reserved for internal use.

Copy()

将指定对象复制到剪贴板。Copies the specified object to the Clipboard.

CopyAsPicture()

CopyAsPicture方法的工作方式与 Copy() 方法相同。The CopyAsPicture method works the same way as the Copy() method.

CreatePublisher(Object, Object, Object, Object)

保留以供内部使用。此成员仅用于 Macintosh,不应使用。Reserved for internal use.This member is for Macintosh only and should not be used.

Cut()

将指定对象从文档中移到剪贴板上。Removes the specified object from the document and places it on the Clipboard.

Delete(Object, Object)

删除指定数量的字符或单词。Deletes the specified number of characters or words.

DetectLanguage()

分析指定文本,以确定书写文本的语言类型。Analyzes the specified text to determine the language that it is written in.

EndOf(Object, Object)

将区域或选定内容的结束字符位置移动或扩展至最近的一个指定文本单元末尾。Moves or extends the ending character position of a range or selection to the end of the nearest specified text unit.

Expand(Object)

扩展指定区域。Expands the specified range.

ExportAsFixedFormat(String, WdExportFormat, Boolean, WdExportOptimizeFor, Boolean, WdExportItem, Boolean, Boolean, WdExportCreateBookmarks, Boolean, Boolean, Boolean, Object)

将文档的一部分保存为 PDF 或 XPS 格式。Saves a portion of a document as PDF or XPS format.

ExportFragment(String, WdSaveFormat)

将所选区域导出到文档中,以便用作文档片段。Exports the selected range into a document for use as a document fragment.

GetSpellingSuggestions(Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object)

返回一个 SpellingSuggestions 集合,表示为指定区域中的第一个单词的拼写替换建议的单词。Returns a SpellingSuggestions collection that represents the words suggested as spelling replacements for the first word in the specified range.

GoTo(Object, Object, Object, Object)

返回一个 Range 对象,表示指定项(如页、书签或字段)的起始位置。Returns a Range object that represents the start position of the specified item, such as a page, bookmark, or field.

GoToEditableRange(Object)

返回一个 Range object 类型的对象,该对象代表指定用户或用户组可以修改的文档区域。Returns a Range object that represents an area of a document that can be modified by the specified user or group of users.

GoToNext(WdGoToItem)

返回一个 Range 对象,该对象引用由参数指定的下一个项目或位置的起始位置 WhatReturns a Range object that refers to the start position of the next item or location specified by the What argument.

GoToPrevious(WdGoToItem)

返回一个 Range 对象,该对象引用上一项或参数指定的位置的起始位置 WhatReturns a Range object that refers to the start position of the previous item or location specified by the What argument.

ImportFragment(String, Boolean)

将文档片段导入文档中的指定区域。Imports a document fragment into the document at the specified range.

InRange(Range)

确定应用该方法的区域是否包含在指定的范围内。Determines if the range to which the method is applied is contained in the specified range.

InsertAfter(String)

将指定文本插入范围或所选内容的末尾。Inserts the specified text at the end of a range or selection.

InsertAlignmentTab(Int32, Int32)

相对于边距或缩进插入始终位于同一点的绝对制表符。Inserts an absolute tab that is always positioned in the same spot, relative to either the margins or indents.

InsertAutoText()

尝试将指定区域中的文字或某一区域周围的文字与现有的“自动图文集”词条名称相匹配。Attempts to match the text in the specified range or the text surrounding the range with an existing AutoText entry name.

InsertBefore(String)

在指定的范围前插入指定文本。Inserts the specified text before the specified range.

InsertBreak(Object)

插入分页符、分栏符或分节符。Inserts a page, column, or section break.

InsertCaption(Object, Object, Object, Object, Object)

紧接在指定范围之前或之后插入题注。Inserts a caption immediately preceding or following the specified range.

InsertCaptionXP(Object, Object, Object, Object)

仅供内部使用。Reserved for internal use.

InsertCrossReference(Object, WdReferenceKind, Object, Object, Object, Object, Object)

插入对标题、书签、脚注、尾注或定义了题注标签的项(如公式、图表或表格)的交叉引用。Inserts a cross-reference to a heading, bookmark, footnote, or endnote, or to an item for which a caption label is defined (for example, an equation, figure, or table).

InsertCrossReference_2002(Object, WdReferenceKind, Object, Object, Object)

仅供内部使用。Reserved for internal use.

InsertDatabase(Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object)

从数据源 (例如,一个单独的 Word 文档,Microsoft Excel 工作表中或 Microsoft Access 数据库) 检索数据并将数据插入表替换指定的范围。Retrieves data from a data source (for example, a separate Microsoft Word document, a Microsoft Excel worksheet, or a Microsoft Access database) and inserts the data as a table in place of the specified range.

InsertDateTime(Object, Object, Object, Object, Object)

以文本或 TIME 域的形式插入当前日期或时间,或将两者都插入。Inserts the current date or time, or both, either as text or as a TIME field.

InsertDateTimeOld(Object, Object, Object)

仅供内部使用。Reserved for internal use.

InsertFile(String, Object, Object, Object, Object)

插入指定文件的全部或一部分。Inserts all or part of the specified file.

InsertParagraph()

用新段落替换指定范围。Replaces the specified range with a new paragraph.

InsertParagraphAfter()

在范围之后插入段落标记。Inserts a paragraph mark after a range.

InsertParagraphBefore()

在指定的范围前插入一个新段落。Inserts a new paragraph before the specified range.

InsertSymbol(Int32, Object, Object, Object)

插入一个符号,用于替换指定的范围。Inserts a symbol in place of the specified range.

InsertXML(String, Object)

将指定的 XML 文本插入到指定的区域或所选内容中。Inserts the specified XML text into the specified range or selection.

InStory(Range)

确定此方法应用于的所选内容或区域是否与参数指定的范围位于相同的文章中 RangeDetermines if the selection or range to which this method is applied is in the same story as the range specified by the Range argument.

IsEqual(Range)

确定应用此方法的范围是否等于参数指定的范围 RangeDetermines if the range to which this method is applied is equal to the range specified by the Range argument.

LookupNameProperties()

在全局通讯簿列表中查找姓名,并显示属性对话框,该对话框中包含有关指定姓名的信息。Looks up a name in the global address book list and displays the Properties dialog box, which includes information about the specified name.

ModifyEnclosure(Object, Object, Object)

添加、修改或删除指定字符周围的圈号。Adds, modifies, or removes an enclosure around the specified character or characters.

Move(Object, Object)

将指定的区域或所选内容折叠到其起始位置或结束位置,然后将折叠的对象移动指定的单位数。Collapses the specified range or selection to its start or end position and then moves the collapsed object by the specified number of units.

MoveEnd(Object, Object)

移动结束字符位置的范围。Moves the ending character position of a range.

MoveEndUntil(Object, Object)

移动指定区域或所选内容的结束位置,直到在文档中找到任何指定的字符。Moves the end position of the specified range or selection until any of the specified characters are found in the document.

MoveEndWhile(Object, Object)

在文档找到任何指定的字符时,移动某一范围的结束字符位置。Moves the ending character position of a range while any of the specified characters are found in the document.

MoveStart(Object, Object)

移动指定范围的起始位置。Moves the start position of the specified range.

MoveStartUntil(Object, Object)

移动指定区域或所选内容的起始位置,直到在文档中找到一个指定的字符。Moves the start position of the specified range or selection until one of the specified characters is found in the document.

MoveStartWhile(Object, Object)

当在文档中找到任何指定的字符时,移动指定范围的起始位置。Moves the start position of the specified range while any of the specified characters are found in the document.

MoveUntil(Object, Object)

移动指定范围,直到在文档中找到指定字符中的一个为止。Moves the specified range until one of the specified characters is found in the document.

MoveWhile(Object, Object)

当在文档中找到任何指定的字符时,移动指定范围。Moves the specified range while any of the specified characters are found in the document.

Next(Object, Object)

返回一个 Range 对象,表示相对于指定范围的指定的单位。Returns a Range object that represents the specified unit relative to the specified range.

NextSubdocument()

将范围移至下一个子文档。Moves the range to the next subdocument.

Paste()

将"剪贴板"中的内容插入指定范围。Inserts the contents of the Clipboard at the specified range.

PasteAndFormat(WdRecoveryType)

粘贴选定的表格单元格,并为其设置指定的格式。Pastes the selected table cells and formats them as specified.

PasteAppendTable()

通过在所选行之间插入粘贴的行,将粘贴的单元格合并到现有的表格中。Merges pasted cells into an existing table by inserting the pasted rows between the selected rows.

PasteAsNestedTable()

将一个或一组单元格作为嵌套表格粘贴到所选范围。Pastes a cell or group of cells as a nested table into the selected range.

PasteExcelTable(Boolean, Boolean, Boolean)

粘贴 Microsoft Excel 表格并设置其格式。Pastes and formats a Microsoft Excel table.

PasteSpecial(Object, Object, Object, Object, Object, Object, Object)

插入“剪贴板”中的内容。Inserts the contents of the Clipboard.

PhoneticGuide(String, WdPhoneticGuideAlignmentType, Int32, Int32, String)

将拼音指南添加到指定区域。Adds phonetic guides to the specified range.

Previous(Object, Object)

返回 Range 相对于指定的所选内容或区域的对象。Returns a Range object relative to the specified selection or range.

PreviousSubdocument()

将区域或所选内容移至上一个子文档。Moves the range or selection to the previous subdocument. 如果没有上一个子文档,将发生错误。If there isn't another subdocument, an error occurs.

Relocate(Int32)

在大纲视图中,将指定区域中各段移至下一个可见段落之后或上一个可见段落之前。In outline view, moves the paragraphs within the specified range after the next visible paragraph or before the previous visible paragraph.

Select()

选择指定的对象。Selects the specified object.

SetListLevel(Int16)

为编号列表中的一个或多个项目设置列表级别。Sets the list level for one or more items in a numbered list.

SetRange(Int32, Int32)

设置范围的起始字符和结束字符的位置。Sets the starting and ending character positions for the range.

Sort(Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object)

对指定范围中的段落进行排序。Sorts the paragraphs in the specified range.

SortAscending()

按字母数字升序对段落或表格行进行排序。Sorts paragraphs or table rows in ascending alphanumeric order.

SortByHeadings(Object, Object, Object, Object, Object, Object, Object, Object, Object)

对指定区域中的标题进行排序。Sorts the headings in the specified range.

SortDescending()

按字母数字降序顺序对段落或表格行进行排序。Sorts paragraphs or table rows in descending alphanumeric order.

SortOld(Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object)

仅供内部使用。Reserved for internal use.

StartOf(Object, Object)

移动或扩展至最近的指定的文字单位的开头的指定的区域或所选内容的起始位置。Moves or extends the start position of the specified range or selection to the beginning of the nearest specified text unit.

SubscribeTo(String, Object)

保留以供内部使用。此成员仅用于 Macintosh,不应使用。Reserved for internal use.This member is for Macintosh only and should not be used.

TCSCConverter(WdTCSCConverterDirection, Boolean, Boolean)

将指定区域的文本由繁体中文转换为简体中文,或进行相反转换。Converts the specified range from Traditional Chinese to Simplified Chinese or vice versa.

WholeStory()

扩展某一范围使其包含整个文章。Expands a range to include the entire story.

适用于