c#WdInformation Enumerationword 参数 页码等等.docx
- 文档编号:7836307
- 上传时间:2023-01-26
- 格式:DOCX
- 页数:16
- 大小:19.13KB
c#WdInformation Enumerationword 参数 页码等等.docx
《c#WdInformation Enumerationword 参数 页码等等.docx》由会员分享,可在线阅读,更多相关《c#WdInformation Enumerationword 参数 页码等等.docx(16页珍藏版)》请在冰豆网上搜索。
c#WdInformationEnumerationword参数页码等等
WdInformationEnumeration
1.office2003
Namespace:
Microsoft.Office.Interop.Word
Assembly:
Microsoft.Office.Interop.Word(inmicrosoft.office.interop.word.dll)
Usage
VB
复制
用法
DimwdInformation1AsWdInformation=WdInformation.wdActiveEndAdjustedPageNumber
Syntax
C#
C++
VB
复制
publicenumWdInformation
J#
复制
publicenumWdInformation
JScript
复制
publicenumWdInformation
Members
Membername
Description
wdActiveEndAdjustedPageNumber
Returnsthenumberofthepagethatcontainstheactiveendofthespecifiedselectionorrange.Ifyousetastartingpagenumberormakeothermanualadjustments,returnstheadjustedpagenumber(unlikewdActiveEndPageNumber).
wdActiveEndPageNumber
Returnsthenumberofthepagethatcontainstheactiveendofthespecifiedselectionorrange,countingfromthebeginningofthedocument.Anymanualadjustmentstopagenumberingaredisregarded(unlikewdActiveEndAdjustedPageNumber).
wdActiveEndSectionNumber
Returnsthenumberofthesectionthatcontainstheactiveendofthespecifiedselectionorrange.
wdAtEndOfRowMarker
ReturnsTrueifthespecifiedselectionorrangeisattheend-of-rowmarkinatable.
wdCapsLock
ReturnsTrueifCapsLockisineffect.
wdEndOfRangeColumnNumber
Returnsthetablecolumnnumberthatcontainstheendofthespecifiedselectionorrange.
wdEndOfRangeRowNumber
Returnsthetablerownumberthatcontainstheendofthespecifiedselectionorrange.
wdFirstCharacterColumnNumber
Returnsthecharacterpositionofthefirstcharacterinthespecifiedselectionorrange.Iftheselectionorrangeiscollapsed,thecharacternumberimmediatelytotherightoftherangeorselectionisreturned(thisisthesameasthecharactercolumnnumberdisplayedinthestatusbarafter"Col").
wdFirstCharacterLineNumber
Returnsthecharacterpositionofthefirstcharacterinthespecifiedselectionorrange.Iftheselectionorrangeiscollapsed,thecharacternumberimmediatelytotherightoftherangeorselectionisreturned(thisisthesameasthecharacterlinenumberdisplayedinthestatusbarafter"Ln").
wdFrameIsSelected
ReturnsTrueiftheselectionorrangeisanentireframeortextbox.
wdHeaderFooterType
Returnsavaluethatindicatesthetypeofheaderorfooterthatcontainsthespecifiedselectionorrange,asshowninthefollowingtable.
Value
Typeofheaderorfooter
-1
None(theselectionorrangeisn'tinaheaderorfooter)
0(zero)
Evenpageheader
1
Oddpageheader(ortheonlyheader,iftherearen'toddandevenheaders)
2
Evenpagefooter
3
Oddpagefooter(ortheonlyfooter,iftherearen'toddandevenfooters)
4
Firstpageheader
5
Firstpagefooter
wdHorizontalPositionRelativeToPage
Returnsthehorizontalpositionofthespecifiedselectionorrange;thisisthedistancefromtheleftedgeoftheselectionorrangetotheleftedgeofthepagemeasuredinpoints(1point=20twips,72points=1inch).Iftheselectionorrangeisn'twithinthescreenarea,returns–1.
wdHorizontalPositionRelativeToTextBoundary
Returnsthehorizontalpositionofthespecifiedselectionorrangerelativetotheleftedgeofthenearesttextboundaryenclosingit,inpoints(1point=20twips,72points=1inch).Iftheselectionorrangeisn'twithinthescreenarea,returns-1.
wdInClipboard
Forinformationaboutthisconstant,consultthelanguagereferenceHelpincludedwithMicrosoftOfficeMacintoshEdition.
wdInCommentPane
ReturnsTrueifthespecifiedselectionorrangeisinacommentpane.
wdInEndnote
ReturnsTrueifthespecifiedselectionorrangeisinanendnoteareainprintlayoutvieworintheendnotepaneinnormalview.
wdInFootnote
ReturnsTrueifthespecifiedselectionorrangeisinafootnoteareainprintlayoutvieworinthefootnotepaneinnormalview.
wdInFootnoteEndnotePane
ReturnsTrueifthespecifiedselectionorrangeisinthefootnoteorendnotepaneinnormalvieworinafootnoteorendnoteareainprintlayoutview.Formoreinformation,seethedescriptionsofwdInFootnoteandwdInEndnoteintheprecedingparagraphs.
wdInHeaderFooter
ReturnsTrueiftheselectionorrangeisintheheaderorfooterpaneorinaheaderorfooterinprintlayoutview.
wdInMasterDocument
ReturnsTrueiftheselectionorrangeisinamasterdocument(thatis,adocumentthatcontainsatleastonesubdocument).
wdInWordMail
ReturnsTrueiftheselectionorrangeisintheheaderorfooterpaneorinaheaderorfooterinprintlayoutview.
Value
Location
0(zero)
Theselectionorrangeisn'tinane-mailmessage.
1
Theselectionorrangeisinane-mailmessageyouaresending.
2
Theselectionorrangeisinane-mailyouarereading.
wdMaximumNumberOfColumns
Returnsthegreatestnumberoftablecolumnswithinanyrowintheselectionorrange.
wdMaximumNumberOfRows
Returnsthegreatestnumberoftablerowswithinthetableinthespecifiedselectionorrange.
wdNumberOfPagesInDocument
Returnsthenumberofpagesinthedocumentassociatedwiththeselectionorrange.
wdNumLock
ReturnsTrueifNumLockisineffect.
wdOverType
ReturnsTrueifOvertypemodeisineffect.TheOvertypepropertycanbeusedtochangethestateoftheOvertypemode.
wdReferenceOfType
Returnsavaluethatindicateswheretheselectionisinrelationtoafootnote,endnote,orcommentreference,asshowninthefollowingtable.
Value
Description
–1
Theselectionorrangeincludesbutisn'tlimitedtoafootnote,endnote,orcommentreference.
0(zero)
Theselectionorrangeisn'tbeforeafootnote,endnote,orcommentreference.
1
Theselectionorrangeisbeforeafootnotereference.
2
Theselectionorrangeisbeforeanendnotereference.
3
Theselectionorrangeisbeforeacommentreference.
wdRevisionMarking
ReturnsTrueifchangetrackingisineffect.
wdSelectionMode
Returnsavaluethatindicatesthecurrentselectionmode,asshowninthefollowingtable.
Value
Selectionmode
0(zero)
Normalselection
1
Extendedselection("EXT"appearsonthestatusbar)
2
Columnselection.("COL"appearsonthestatusbar)
wdStartOfRangeColumnNumber
Returnsthetablecolumnnumberthatcontainsthebeginningoftheselectionorrange.
wdStartOfRangeRowNumber
Returnsthetablerownumberthatcontainsthebeginningoftheselectionorrange.
wdVerticalPositionRelativeToPage
Returnstheverticalpositionoftheselectionorrange;thisisthedistancefromthetopedgeoftheselectiontothetopedgeofthepagemeasuredinpoints(1point=20twips,72points=1inch).Iftheselectionisn'tvisibleinthedocumentwindow,returns–1.
wdVerticalPositionRelativeToTextBoundary
Returnstheverticalpositionoftheselectionorrangerelativetothetopedgeofthenearesttextboundaryenclosingit,inpoints(1point=20twips,72points=1inch).Thisisusefulfordeterminingthepositionoftheinsertionpointwithinaframeortablecell.Iftheselectionisn'tvisible,returns–1.
wdWithInTable
ReturnsTrueiftheselectionisinatable.
wdZoomPercentage
ReturnsthecurrentpercentageofmagnificationassetbythePercentageproperty.
Platforms
DevelopmentPlatforms
WindowsXPHomeEdition,WindowsXPProfessional,WindowsServer2003,andWindows2000
2.office2010
Specifiesthetypeofinformationreturnedaboutaspecifiedselectionorrange.
Namespace:
Microsoft.Office.Interop.Word
Assembly:
Microsoft.Office.Interop.Word(inMicrosoft.Office.Interop.Word.dll)
Syntax
C#
VB
复制
publicenumWdInformation
Members
Membername
Description
wdActiveEndAdjustedPageNumber
Returnsthenumberofthepagethatcontainstheactiveendofthespecifiedselectionorrange.Ifyousetastartingpagenumberormakeothermanualadjustments,returnstheadjustedpagenumber(unlikewdActiveEndPageNumber).
wdActiveEndSectionNumber
Returnsthenumberofthesectionthatcontainstheactiveendofthespecifiedselectionorrange.
wdActiveEndPageNumber
Returnsthenumberofthepagethatcontainstheactiveendofthespecifiedselectionorrange,countingfromthebeginningofthedocument.Anymanualadjustmentstopagenumberingaredisregarded(unlikewdActiveEndAdjustedPageNumber).
wdNumberOfPagesInDocument
Returnsthenumberofpagesinthedocumentassociatedwiththeselectionorrange.
wdHorizontalPositionRelativeToPage
Returnsthehorizontalpositionofthespecifiedselectionorrange;thisisthedistancefromtheleftedgeoftheselectionorrangetotheleftedgeofthepagemeasuredinpoints(1point=20twips,72points=1inch).Iftheselectionorrangeisn'twithinthescreenarea,returns–1.
wdVerticalPositionRelativeToPage
Returnstheverticalpositionoftheselectionorrange;thisisthedistancefromthetopedgeoftheselectiontothetopedgeofthepagemeasuredinpoints(1point=20twips,72points=1inch).Iftheselectionisn'tvisibleinthedocumentwindow,returns–1.
wdHorizontalPositionRelativeToTextBoundary
Returnsthehorizontalpositionofthespecifiedselectionorrangerelativetotheleftedgeofthenearesttextboundaryenclosingit,inpoints(1point=20twips,72points=1inch).Iftheselectionorrangeisn'twithinthescreenarea,returns-1.
wdVerticalPositionRelativeToTextBoundary
Returnstheverticalpositionoftheselectionorrangerelativetothetopedgeofthenearesttextboundaryenclosingit,inpoints(1point=20twips,72points=1inch).Thisisusefulfordeterminingthepositionoftheinsertionpointwithinaframeortablecell.Iftheselectionisn'tvisible,returns–1.
wdFirstCharacterColumnNumber
Returnsthecharacterpositionofthefirstcharacterinthespecifiedselectionorrange.Iftheselectiono
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- c# WdInformation Enumerationword 参数 页码等等 页码 等等
![提示](https://static.bdocx.com/images/bang_tan.gif)