alexa
menu

Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Search Results for

    Show / Hide Table of Contents

    Class DocumentSettings

    Represents the settings and properties of the document that is opened in Document editor component.

    Inheritance
    object
    DocumentSettings
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    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;
    In this article
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved