属性/方法 | 意义 |
---|---|
calculate() | 计算所有表达式 |
ConvertToTable(间隔,行数,列数) | 转换到表格 |
Copy() | 复制到剪贴板 |
CopyAsPicture() | 复制为图象 |
Cut() | 剪切 |
Delete() | 删除 |
EndOf(单位,距离) | 向后扩展所选内容 |
Expand(单位) | 扩展所选内容 |
GoTo(项目,方式,距离,名称) | 光标移动 |
GoToNext(项目) | 光标移动到下一位置 |
GoToPrevious() | 光标移动到上一位置 |
InsertAfter(文本) | 插入文本 |
InsertAutoText() | 自动图文集 |
InsertBefore(文本) | 插入文本 |
InsertBreak() | 插入控制符号(分栏/分页等) |
InsertDateTime(格式,域,中文,语言,日历) | 插入日期或时间 |
InsertParagraph() | 替换成段落标记 |
InsertParagraphAfter() | 之后插入段落 |
InsertParagraphBefore() | 之前插入段落 |
IsEqual(range) | 是否与另一 Range 对象相等 |
Move(单位,数量) | 移动光标若干单位 |
MoveEnd(单位,数量) | 向后选择若干单位 |
MoveEndUntil(文本,最多) | 向后选择若干单位或遇到文本 |
MoveEndWhite(文本,最多) | 向后选择在文本中的字 |
MoveStart() | 向前选择若干单位 |
MoveStartUntil() | 向前选择若干单位或遇到文本 |
MoveStartWhite() | 向前选择在文本中的字 |
Next(n) Next(单位,数量) |
返回之后段落 返回之后指定内容 |
Paste() | 从剪贴板粘贴,复盖原内容 |
PasteSpecial(IconIndex, Link, Placement, DisplayAsIcon, DataType, IconFileName, IconLabel) | 选择性粘贴 |
Previous(n) Previous(单位,数量) |
返回之前段落 返回之前指定内容 |
Select() | 将 Range 对象区域设为选择状态 |
SetRange(Start,End) | 重新 Range 对象的区域范围 |
Sort(含标题,字段,类型,升降,...) | 排序 |
StartOf(单位,距离) | 向前扩展所选内容 |
WholeStory() | 选定整个文字部分 |
Bold | 是否粗体 |
Borders | 边框 Borders 对象 |
Cells | 单元格 Cells 对象 |
Characters | 字符 Characters 对象 |
CharacterWidth | 字宽 wdWidthFullWidth wdWidthHalfWidth |
Columns | 列 Columns 对象 |
End | 结束字符位置 |
Fields | 域集合 |
Font | 字体 Font 对象 |
FormFields | 窗体域 |
Hyperlinks | Hyperlinks 集合对象 |
IsEndOfRowMark | 是否选至表格行尾,只读 |
Italic | 是否斜体 |
NextStoryRange | 返回下一个文字部分 |
Orientation | 文字方向 wdTextOrientationDownward、 wdTextOrientationHorizontal、 wdTextOrientationHorizontalRotatedFarEast、 wdTextOrientationUpward、 wdTextOrientationVerticalFarEast |
PageSetup | 页面设置 PageSetup 对象 |
Paragraphs | 段落 Paragraphs 对象 |
ParagraphFormat | 段落格式 ParagraphFormat 对象 |
Rows | 行 Rows 对象 |
Sentences | 句子集合 |
Sections | 节集合 |
Shading | |
Start | 开始字符位置 |
StoryLength | 选定字符数 |
Style | 样式 |
Tables | 表格 Tables 对象 |
Text | 文字,默认属性 |
Underline | 是否有下划线 |
Words | 单词 Words 对象 |
Find | Find 对象,用于查找替换操作 |
InlineShapes | 嵌入式图形集合 |
wdCharacter | 字 |
wdWord | 单词 |
wdSentence | 句子 |
wdCell | 单元格 |
wdColumn | 列 |
wdRow | 行 |
wdTable | 表 |
Range.next 单位,除包含 Range.move 的单位外,还有下列这些:
wdSection | 节 |
wdStory | 文字 |
wdParagraph | 段 |
属性/方法 | 意义 |
---|---|
Borders | 边框 Borders 对象 |
Add([range]) | 在某处或光标处插入一段 |
Reset() | 恢复样式格式 |
属性/方法 | 意义 |
---|---|
LeftIndent | 左缩进,磅值 |
Alignment | 对齐方式,wdListLevelAlignCenter、 wdListLevelAlignLeft、 wdListLevelAlignRight |
RightIndent | 右缩进,磅值 |
FirstLineIndent | 首行缩进,正是缩进,负为悬挂 |
Row | 行号,只读 |
LineSpacing | 行距,磅值 |
Space1() Space15() Space2() |
设置行距为1、1.5、2倍 |
Style | 样式 Style 对象 |
Next([n]) | 返回其后的第 n 段,默认为 1 |
Previous([n]) | 返回其前的第 n 段,默认为 1 |
IndentCharWidth(n) | 设置缩进 n 字符 |
IndentFirstLineCharWidth(n) | 设置首行缩进 n 字符 |
SpaceBefore | 段前间距,磅值 |
SpaceAfter | 段后间距,磅值 |
Format | 段落格式 ParagraphFormat 对象 |
属性/方法 | 意义 |
---|---|
First | 第一个词 |
Last | 最后一个词 |
Count | 单词数 |
属性/方法 | 意义 |
---|---|
First | 第一个字 |
Last | 最后一个字 |
Count | 字数 |
属性 | 意义 |
---|---|
Alignment | 对齐方式: wdAlignParagraphLeft、 wdAlignParagraphCenter、 wdAlignParagraphDistribute、 wdAlignParagraphRight、 wdAlignParagraphJustify、 wdAlignParagraphJustifyHi、 wdAlignParagraphJustifyLow、 wdAlignParagraphJustifyMed |
AddSpaceBetweenFarEastAndAlpha | 是否在中文与英文之间加空格 |
AddSpaceBetweenFarEastAndDigit | 是否在中文与数字之间加空格 |
BaseLineAlignment | 基线字体对齐方式:wdBaselineAlignAuto、 wdBaselineAlignBaseline、 wdBaselineAlignCenter、 wdBaselineAlignFarEast50、 wdBaselineAlignTop |
Borders | Borders 对象 |
CharacterUnitFirstLineIndent | 首行缩进/悬挂字符数 |
CharacterUnitLeftIndent | 左缩进字符数 |
CharacterUnitRightIndent | 右缩进字符数 |
DisableLineHeightGrid | 指定行高不与网格对齐 |
FirstLineIndent | 首行缩进,正是缩进,负为悬挂 |
KeepTogether | 是否段落不分页 |
KeepWithNext | 是否与下段同页 |
LeftIndent | 左缩进,磅值 |
LineSpacing | 行距,磅值 |
LineSpacingRule | 行距类型: wdLineSpace1pt5、 wdLineSpaceAtLeast、 wdLineSpaceDouble、 wdLineSpaceExactly、 wdLineSpaceMultiple、 wdLineSpaceSingle |
LineUnitAfter | 段后空几格,Single 类型 |
LineUnitBefore | 段前空几格,Single 类型 |
NoLineNumber | 是否取消行号 |
OutlineLevel | 大纲级别: wdOutLineLevel1、 wdOutLineLevel2、 wdOutLineLevel3、 wdOutLineLevel4、 wdOutLineLevel5、 wdOutLineLevel6、 wdOutLineLevel7、 wdOutLineLevel8、 wdOutLineLevel9、 wdOutLineLevelBodyText |
PageBreakBefore | 段前分页 |
RightIndent | 右缩进,磅值 |
Shading | 底纹 Shading 对象 |
SpaceAfter | 段后间距,Single 类型 |
SpaceBefore | 段前间距,Single 类型 |
SpaceAfterAuto | 是否自动段后间距 |
SpaceBeforeAuto | 是否自动段前间距 |
Style | Style 属性 |
TabStops | 制表位 TabStops 集合 |
属性 | 意义 |
---|---|
BottomMargin | 底边距 |
TopMargin | 顶边距 |
LeftMargin | 左边距 |
RightMargin | 右边距 |
CharsLine | 每行字符数 |
LinesPage | 每页行数 |
LineNumbering | 行号 LineNumbering 对象 .Active 是否显示行号 .CountBy 间隔行数 .RestartMode 重新编号位置 |
MirrorMargine | 对称边距 |
Orientation | 页面方向 |
PageHeight | 页面高度 |
PageWidth | 页面宽度 |
PageSize | 页面尺寸 |
SectionStart | 分节符类型 wdSdSectionContinuous、 wdSectionEvenPage、 ectionNewCwolumn、 wdSectionNewPage、 wdSectionOddPage |
TextColumns | 分栏 TextColumns 对象 |
TwoPageOnOne | 双页合并 |
VerticalAligment | 垂直对齐方式 |
常量 | 意义 |
---|---|
wdPasteBitmap | 粘贴图形 |
wdPasteDeviceIndependentBitmap | 粘贴 |
wdPasteEnhancedMetafile | 粘贴 |
wdPasteHyperlink | 粘贴链接 |
wdPasteMetafilePicture | 粘贴 |
wdPasteOLEObject | 粘贴 OLE 对象 |
wdPasteRTF | 粘贴 RTF |
wdPasteShape | 粘贴形状 |
wdPasteText | 粘贴文本 |