menu

Document Processing

EditableRangeEnd Class - C# Word Library API Reference | Syncfusion

    Show / Hide Table of Contents

    EditableRangeEnd Class

    Represents the ending position of an EditableRange within the Word document.

    Inheritance
    System.Object
    OwnerHolder
    Syncfusion.DocIO.DLS.XML.XDLSSerializableBase
    Entity
    WidgetBase
    ParagraphItem
    EditableRangeEnd
    Implements
    IParagraphItem
    IEntity
    IOfficeRun
    Inherited Members
    Entity.Clone()
    Entity.IsComposite
    Entity.NextSibling
    Entity.Owner
    Entity.PreviousSibling
    OwnerHolder.Document
    OwnerHolder.m_doc
    ParagraphItem.ApplyStyle(String)
    ParagraphItem.CloneRun()
    ParagraphItem.Dispose()
    ParagraphItem.IsDeleteRevision
    ParagraphItem.IsInsertRevision
    ParagraphItem.m_charFormat
    ParagraphItem.OwnerMathRunElement
    ParagraphItem.OwnerParagraph
    Namespace: Syncfusion.DocIO.DLS
    Assembly: Syncfusion.DocIO.Base.dll
    Syntax
    public class EditableRangeEnd : ParagraphItem, IXDLSSerializable, IWidget, IParagraphItem, IEntity, IOfficeRun

    Constructors

    EditableRangeEnd(IWordDocument, EditableRangeStart)

    Initializes a new instance of the EditableRangeEnd class with the specified IWordDocument instance. with the specified EditableRangeStart instance.

    Declaration
    public EditableRangeEnd(IWordDocument document, EditableRangeStart editableRangeStart = null)
    Parameters
    Type Name Description
    IWordDocument document

    The IWordDocument instance used to initialize the editable range end.

    EditableRangeStart editableRangeStart
    Examples

    The following example illustrates how to add an editable range to a paragraph:

     
    // Create a new WordDocument instance and ensure it has minimal content. 
    IWordDocument document = new WordDocument(); 
    document.EnsureMinimal(); 
    document.LastParagraph.AppendText(@"Adventure Works Cycles, the fictitious company on which the AdventureWorks "); 
    // Add an editable range to the paragraph. 
    EditableRangeStart rangeStart = new EditableRangeStart(document);
    document.LastParagraph.ChildEntities.Add(rangeStart); 
    document.LastParagraph.AppendText(@"sample databases are based, is a large, multinational manufacturing company."); 
    EditableRangeEnd rangeEnd = new EditableRangeEnd(document);
    document.LastParagraph.ChildEntities.Add(rangeEnd); 
    // Sets the protection with password and allows only reading. 
    document.Protect(ProtectionType.AllowOnlyReading, "password"); 
    // Save and close the document. 
    document.Save("EditableRange.docx", FormatType.Docx); 
    document.Close(); 
    ' Create a new WordDocument instance and ensure it has minimal content.
    Dim document As IWordDocument = New WordDocument()
    document.EnsureMinimal()
    document.LastParagraph.AppendText("Adventure Works Cycles, the fictitious company on which the AdventureWorks ")
    ' Add an editable range to the paragraph.
    Dim rangeStart As New EditableRangeStart(document)
    document.LastParagraph.ChildEntities.Add(rangeStart)
    document.LastParagraph.AppendText("sample databases are based, is a large, multinational manufacturing company.")
    Dim rangeEnd As New EditableRangeEnd(document)
    document.LastParagraph.ChildEntities.Add(rangeEnd)
    ' Sets the protection with password and allows only reading.
    document.Protect(ProtectionType.AllowOnlyReading, "password")
    ' Save and close the document.
    document.Save("EditableRange.docx", FormatType.Docx)
    document.Close()

    Properties

    EntityType

    Gets the type of the entity.

    Declaration
    public override EntityType EntityType { get; }
    Property Value
    Type Description
    EntityType

    The EntityType of the current item.

    Overrides
    Entity.EntityType

    Id

    Gets the editable range id.

    Declaration
    public string Id { get; }
    Property Value
    Type Description
    System.String

    The string that represents the editable range end id in the document.

    Methods

    CloneImpl()

    Creates a duplicate copy of the entity.

    Declaration
    protected override object CloneImpl()
    Returns
    Type Description
    System.Object

    An object that is newly created.

    Overrides
    ParagraphItem.CloneImpl()

    CreateLayoutInfo()

    Creates layout information for EditableRangeEnd

    Declaration
    protected override void CreateLayoutInfo()
    Overrides
    WidgetBase.CreateLayoutInfo()

    Implements

    IParagraphItem
    IEntity
    IOfficeRun

    See Also

    EditableRange
    EditableRangeCollection
    EditableRangeStart
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved