Document::Mode property
The Mode property sets or returns the document's mode. This property is read/write.
Syntax
Property Mode As DocumentMode
Property value
The document's mode. This can be one of the following DocumentMode values.
DocumentMode_Author
The document is opened in Author Mode.
DocumentMode_User
The document is opened in Full-Access User Mode.
DocumentMode_User_MDI
The document is opened in Limited-Access User Mode with multiple windows.
DocumentMode_User_SDI
The document is opened in Limited-Access User Mode with a single window.
Examples
' Retrieve the document mode.
Dim docMode As MMC20.DocumentMode
docMode = objDoc.Mode
' Display a message box about the document mode.
Select Case docMode
Case DocumentMode_Author
MsgBox ("Author mode")
Case DocumentMode_User
MsgBox ("User full-access mode")
Case DocumentMode_User_MDI
MsgBox ("User MDI mode")
Case DocumentMode_User_SDI
MsgBox ("User SDI mode")
End Select
' Set the document mode.
objDoc.Mode = DocumentMode_User
Requirements
Minimum supported client |
Windows Vista |
Minimum supported server |
Windows Server 2008 |
Header |
|
IDL |
|
DLL |
|
IID |
IID_Document |