Expand Minimize

Document.FormsDesign Property

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

Namespace:  Microsoft.Office.Tools.Word
Assemblies:   Microsoft.Office.Tools.Word.v4.0.Utilities (in Microsoft.Office.Tools.Word.v4.0.Utilities.dll)
  Microsoft.Office.Tools.Word (in Microsoft.Office.Tools.Word.dll)

bool FormsDesign { get; }

Property Value

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

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.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
© 2015 Microsoft