Udostępnij za pośrednictwem


Document.FormsDesign Property (2007 System)

Gets a value that indicates whether the document is in form design mode.

Namespace:  Microsoft.Office.Tools.Word
Assembly:  Microsoft.Office.Tools.Word.v9.0 (in Microsoft.Office.Tools.Word.v9.0.dll)

Syntax

'Declaration
<BrowsableAttribute(False)> _
Public ReadOnly Property FormsDesign As Boolean
'Usage
Dim instance As Document 
Dim value As Boolean 

value = instance.FormsDesign
[BrowsableAttribute(false)]
public bool FormsDesign { get; }
[BrowsableAttribute(false)]
public:
property bool FormsDesign {
    bool get ();
}
public function get FormsDesign () : boolean

Property Value

Type: System.Boolean
true if the document is in form design mode; otherwise, false.

Remarks

This property always returns false if it is used in code run from Microsoft Office Word, but it returns the correct value if it is run through automation. For example, if you run the example from Microsoft Office Excel, it returns true if you are in design mode.

.NET Framework Security

See Also

Reference

Document Class

Document Members

Microsoft.Office.Tools.Word Namespace