FormsDesign
ViewOptions.FormsDesign property
Specifies whether the document is in forms design mode.
public bool FormsDesign { get; set; }
Remarks
Currently works only for documents in WordML format.
Examples
Shows how to enable/disable forms design mode.
Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);
builder.Writeln("Hello world!");
// Set the "FormsDesign" property to "false" to keep forms design mode disabled.
// Set the "FormsDesign" property to "true" to enable forms design mode.
doc.ViewOptions.FormsDesign = useFormsDesign;
doc.Save(ArtifactsDir + "ViewOptions.FormsDesign.xml");
Assert.AreEqual(useFormsDesign,
File.ReadAllText(ArtifactsDir + "ViewOptions.FormsDesign.xml").Contains("<w:formsDesign />"));
See Also
- class ViewOptions
- namespace Aspose.Words.Settings
- assembly Aspose.Words