博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Word常用定义的变量
阅读量:5143 次
发布时间:2019-06-13

本文共 7489 字,大约阅读时间需要 24 分钟。

unit U_WordConst; 

 
interface 
{*******Word窗体状态************} 
const 
  wdWindowStateNormal = $00000000;   {普通状态} 
{*******域的位置状态************} 
const 
  wdCollapseStart = $00000001; 
  wdCollapseEnd = $00000000; 
{*******方向单元操作************} 
const 
  wdCharacter = $00000001; 
  wdWord = $00000002; 
  wdSentence = $00000003; 
  wdParagraph = $00000004; 
  wdLine = $00000005; 
  wdStory = $00000006; 
  wdScreen = $00000007; 
  wdSection = $00000008; 
  wdColumn = $00000009; 
  wdRow = $0000000A; 
  wdWindow = $0000000B; 
  wdCell = $0000000C; 
  wdCharacterFormatting = $0000000D; 
  wdParagraphFormatting = $0000000E; 
  wdTable = $0000000F; 
  wdItem = $00000010; 
{****************域的类型******************} 
const 
  wdFieldEmpty = $FFFFFFFF; 
  wdFieldRef = $00000003; 
  wdFieldIndexEntry = $00000004; 
  wdFieldFootnoteRef = $00000005; 
  wdFieldSet = $00000006; 
  wdFieldIf = $00000007; 
  wdFieldIndex = $00000008; 
  wdFieldTOCEntry = $00000009; 
  wdFieldStyleRef = $0000000A; 
  wdFieldRefDoc = $0000000B; 
  wdFieldSequence = $0000000C; 
  wdFieldTOC = $0000000D; 
  wdFieldInfo = $0000000E; 
  wdFieldTitle = $0000000F; 
  wdFieldSubject = $00000010; 
  wdFieldAuthor = $00000011; 
  wdFieldKeyWord = $00000012; 
  wdFieldComments = $00000013; 
  wdFieldLastSavedBy = $00000014; 
  wdFieldCreateDate = $00000015; 
  wdFieldSaveDate = $00000016; 
  wdFieldPrintDate = $00000017; 
  wdFieldRevisionNum = $00000018; 
  wdFieldEditTime = $00000019; 
  wdFieldNumPages = $0000001A; 
  wdFieldNumWords = $0000001B; 
  wdFieldNumChars = $0000001C; 
  wdFieldFileName = $0000001D; 
  wdFieldTemplate = $0000001E; 
  wdFieldDate = $0000001F; 
  wdFieldTime = $00000020; 
  wdFieldPage = $00000021; 
  wdFieldExpression = $00000022; 
  wdFieldQuote = $00000023; 
  wdFieldInclude = $00000024; 
  wdFieldPageRef = $00000025; 
  wdFieldAsk = $00000026; 
  wdFieldFillIn = $00000027; 
  wdFieldData = $00000028; 
  wdFieldNext = $00000029; 
  wdFieldNextIf = $0000002A; 
  wdFieldSkipIf = $0000002B; 
  wdFieldMergeRec = $0000002C; 
  wdFieldDDE = $0000002D; 
  wdFieldDDEAuto = $0000002E; 
  wdFieldGlossary = $0000002F; 
  wdFieldPrint = $00000030; 
  wdFieldFormula = $00000031; 
  wdFieldGoToButton = $00000032; 
  wdFieldMacroButton = $00000033; 
  wdFieldAutoNumOutline = $00000034; 
  wdFieldAutoNumLegal = $00000035; 
  wdFieldAutoNum = $00000036; 
  wdFieldImport = $00000037; 
  wdFieldLink = $00000038; 
  wdFieldSymbol = $00000039; 
  wdFieldEmbed = $0000003A; 
  wdFieldMergeField = $0000003B; 
  wdFieldUserName = $0000003C; 
  wdFieldUserInitials = $0000003D; 
  wdFieldUserAddress = $0000003E; 
  wdFieldBarCode = $0000003F; 
  wdFieldDocVariable = $00000040; 
  wdFieldSection = $00000041; 
  wdFieldSectionPages = $00000042; 
  wdFieldIncludePicture = $00000043; 
  wdFieldIncludeText = $00000044; 
  wdFieldFileSize = $00000045; 
  wdFieldFormTextInput = $00000046; 
  wdFieldFormCheckBox = $00000047; 
  wdFieldNoteRef = $00000048; 
  wdFieldTOA = $00000049; 
  wdFieldTOAEntry = $0000004A; 
  wdFieldMergeSeq = $0000004B; 
  wdFieldPrivate = $0000004D; 
  wdFieldDatabase = $0000004E; 
  wdFieldAutoText = $0000004F; 
  wdFieldCompare = $00000050; 
  wdFieldAddin = $00000051; 
  wdFieldSubscriber = $00000052; 
  wdFieldFormDropDown = $00000053; 
  wdFieldAdvance = $00000054; 
  wdFieldDocProperty = $00000055; 
  wdFieldOCX = $00000057; 
  wdFieldHyperlink = $00000058; 
  wdFieldAutoTextList = $00000059; 
  wdFieldListNum = $0000005A; 
  wdFieldHTMLActiveX = $0000005B; 
{*************取信息的参数***************} 
Const 
  wdActiveEndAdjustedPageNumber = $00000001; 
  wdActiveEndSectionNumber = $00000002; 
  wdActiveEndPageNumber = $00000003; 
  wdNumberOfPagesInDocument = $00000004; 
  wdHorizontalPositionRelativeToPage = $00000005; 
  wdVerticalPositionRelativeToPage = $00000006; 
  wdHorizontalPositionRelativeToTextBoundary = $00000007; 
  wdVerticalPositionRelativeToTextBoundary = $00000008; 
  wdFirstCharacterColumnNumber = $00000009; 
  wdFirstCharacterLineNumber = $0000000A; 
  wdFrameIsSelected = $0000000B; 
  wdWithInTable = $0000000C; 
  wdStartOfRangeRowNumber = $0000000D; 
  wdEndOfRangeRowNumber = $0000000E; 
  wdMaximumNumberOfRows = $0000000F; 
  wdStartOfRangeColumnNumber = $00000010; 
  wdEndOfRangeColumnNumber = $00000011; 
  wdMaximumNumberOfColumns = $00000012; 
  wdZoomPercentage = $00000013; 
  wdSelectionMode = $00000014; 
  wdCapsLock = $00000015; 
  wdNumLock = $00000016; 
  wdOverType = $00000017; 
  wdRevisionMarking = $00000018; 
  wdInFootnoteEndnotePane = $00000019; 
  wdInCommentPane = $0000001A; 
  wdInHeaderFooter = $0000001C; 
  wdAtEndOfRowMarker = $0000001F; 
  wdReferenceOfType = $00000020; 
  wdHeaderFooterType = $00000021; 
  wdInMasterDocument = $00000022; 
  wdInFootnote = $00000023; 
  wdInEndnote = $00000024; 
  wdInWordMail = $00000025; 
  wdInClipboard = $00000026; 
{定位指令} 
const 
  wdGoToBookmark = $FFFFFFFF; 
  wdGoToSection = $00000000; 
  wdGoToPage = $00000001; 
  wdGoToTable = $00000002; 
  wdGoToLine = $00000003; 
  wdGoToFootnote = $00000004; 
  wdGoToEndnote = $00000005; 
  wdGoToComment = $00000006; 
  wdGoToField = $00000007; 
  wdGoToGraphic = $00000008; 
  wdGoToObject = $00000009; 
  wdGoToEquation = $0000000A; 
  wdGoToHeading = $0000000B; 
  wdGoToPercent = $0000000C; 
  wdGoToSpellingError = $0000000D; 
  wdGoToGrammaticalError = $0000000E; 
  wdGoToProofreadingError = $0000000F; 
 
Const 
  wdBorderTop = $FFFFFFFF; 
  wdBorderLeft = $FFFFFFFE; 
  wdBorderBottom = $FFFFFFFD; 
  wdBorderRight = $FFFFFFFC; 
  wdBorderHorizontal = $FFFFFFFB; 
  wdBorderVertical = $FFFFFFFA; 
  wdBorderDiagonalDown = $FFFFFFF9; 
  wdBorderDiagonalUp = $FFFFFFF8; 
{对齐} 
const 
  wdAlignParagraphLeft = $00000000; 
  wdAlignParagraphCenter = $00000001; 
  wdAlignParagraphRight = $00000002; 
  wdAlignParagraphJustify = $00000003; 
  wdAlignParagraphDistribute = $00000004; 
  wdAlignParagraphJustifyMed = $00000005; 
  wdAlignParagraphJustifyHi = $00000007; 
  wdAlignParagraphJustifyLow = $00000008; 
 
  wdUndefined = $0098967F; 
  wdToggle = $0098967E; 
 
{替换类型} 
  wdReplaceNone = $00000000; 
  wdReplaceOne = $00000001; 
  wdReplaceAll = $00000002; 
 
  wdFindStop = $00000000; 
  wdFindContinue = $00000001; 
  wdFindAsk = $00000002; 
 
  wdMove = $00000000; 
  wdExtend = $00000001; 
  //以下是对线型的声明 
  wdLineStyleNone = $00000000; 
  wdLineStyleSingle = $00000001; 
  wdLineStyleDot = $00000002; 
  wdLineStyleDashSmallGap = $00000003; 
  wdLineWidth025pt = $00000002; 
  wdLineWidth050pt = $00000004; 
  wdLineWidth075pt = $00000006; 
  wdLineWidth100pt = $00000008; 
  wdLineWidth150pt = $0000000C; 
  wdLineWidth225pt = $00000012; 
  wdLineWidth300pt = $00000018; 
  wdLineWidth450pt = $00000024; 
  wdLineWidth600pt = $00000030; 
  //以下是对分页符的声明 
  wdSectionBreakNextPage = $00000002; 
  //保存的文档格式 
  wdFormatDocument = $00000000; 
{颜色设置} 
const 
  wdColorAutomatic = $FF000000; 
  wdColorBlack = $00000000; 
  wdColorBlue = $00FF0000; 
  wdColorTurquoise = $00FFFF00; 
  wdColorBrightGreen = $0000FF00; 
  wdColorPink = $00FF00FF; 
  wdColorRed = $000000FF; 
  wdColorYellow = $0000FFFF; 
  wdColorWhite = $00FFFFFF; 
  wdColorDarkBlue = $00800000; 
  wdColorTeal = $00808000; 
  wdColorGreen = $00008000; 
  wdColorViolet = $00800080; 
  wdColorDarkRed = $00000080; 
  wdColorDarkYellow = $00008080; 
  wdColorBrown = $00003399; 
  wdColorOliveGreen = $00003333; 
  wdColorDarkGreen = $00003300; 
  wdColorDarkTeal = $00663300; 
  wdColorIndigo = $00993333; 
  wdColorOrange = $000066FF; 
  wdColorBlueGray = $00996666; 
  wdColorLightOrange = $000099FF; 
  wdColorLime = $0000CC99; 
  wdColorSeaGreen = $00669933; 
  wdColorAqua = $00CCCC33; 
  wdColorLightBlue = $00FF6633; 
  wdColorGold = $0000CCFF; 
  wdColorSkyBlue = $00FFCC00; 
  wdColorPlum = $00663399; 
  wdColorRose = $00CC99FF; 
  wdColorTan = $0099CCFF; 
  wdColorLightYellow = $0099FFFF; 
  wdColorLightGreen = $00CCFFCC; 
  wdColorLightTurquoise = $00FFFFCC; 
  wdColorPaleBlue = $00FFCC99; 
  wdColorLavender = $00FF99CC; 
{视图设置} 
const 
  wdNormalView = $00000001; 
  wdOutlineView = $00000002; 
  wdPrintView = $00000003; 
  wdPrintPreview = $00000004; 
  wdMasterView = $00000005; 
  wdWebView = $00000006; 
implementation 
 
end.

转载于:https://www.cnblogs.com/jcomet/p/7561254.html

你可能感兴趣的文章
HDU - 2609 - How many
查看>>
每天CookBook之Python-003
查看>>
每天CookBook之Python-004
查看>>
Android设置Gmail邮箱
查看>>
StringBuffer的用法
查看>>
js编写时间选择框
查看>>
PHP压缩文件操作
查看>>
Java数据结构和算法(四)--链表
查看>>
JIRA
查看>>
小技巧——直接在目录中输入cmd然后就打开cmd命令窗口
查看>>
深浅拷贝(十四)
查看>>
由级别和性格特征将程序员分类 ---看看你属于哪一种
查看>>
HDU 6370(并查集)
查看>>
BZOJ 1207(dp)
查看>>
PE知识复习之PE的导入表
查看>>
HDU 2076 夹角有多大(题目已修改,注意读题)
查看>>
洛谷P3676 小清新数据结构题(动态点分治)
查看>>
九校联考-DL24凉心模拟Day2T1 锻造(forging)
查看>>
洛谷 P3237 [HNOI2014]米特运输
查看>>
Attributes.Add用途与用法
查看>>