Class DocumentSettings
Represents the settings and properties of the document that is opened in Document editor component.
Inherited Members
Namespace: Syncfusion.Blazor.DocumentEditor
Assembly: Syncfusion.Blazor.DocumentEditor.dll
Syntax
public class DocumentSettings
Remarks
This property provides an option to modify the compatibility mode of the active document, when a new document is created, or an existing document is opened. You can modify it in DocumentChanged event.
Examples
The following code example demonstrates how to modify compatibility mode for the document opened in Syncfusion Word Processor (Document editor) component.
//Sets compatibility mode for the active document as Word 2010.
sfDocumentEditorContainer.DocumentSettings.CompatibilityMode = CompatibilityMode.Word2010;
Constructors
DocumentSettings()
Declaration
public DocumentSettings()
Properties
CompatibilityMode
Gets or sets the compatability mode of the document. The default value is Word2013.
Declaration
[JsonPropertyName("compatibilityMode")]
public CompatibilityMode CompatibilityMode { get; set; }
Property Value
| Type | Description |
|---|---|
| CompatibilityMode | Returns the CompatibilityMode of the document. |
Remarks
This property provides an option to modify the compatibility mode of the active document, when a new document is created, or an existing document is opened. You can modify it in DocumentChanged event.
Examples
The following code example demonstrates how to modify compatibility mode for the document opened in Syncfusion Word Processor (Document editor) component.
//Sets compatibility mode for the active document as Word 2010.
sfDocumentEditorContainer.DocumentSettings.CompatibilityMode = CompatibilityMode.Word2010;