Class EditableRangeEnd
Represents the ending position of an EditableRange within the Word document.
Inheritance
System.Object
    
    
    
    
    
    EditableRangeEnd
  Inherited Members
      System.Object.Equals(System.Object)
    
      System.Object.Equals(System.Object, System.Object)
    
      System.Object.GetHashCode()
    
      System.Object.GetType()
    
      System.Object.MemberwiseClone()
    
      System.Object.ReferenceEquals(System.Object, System.Object)
    
      System.Object.ToString()
    
Namespace: Syncfusion.DocIO.DLS
Assembly: Syncfusion.DocIO.Base.dll
Syntax
public class EditableRangeEnd : ParagraphItem, IXDLSSerializable, IWidget, IParagraphItem, IEntity, IOfficeRunConstructors
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
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
CreateLayoutInfo()
Creates layout information for EditableRangeEnd
Declaration
protected override void CreateLayoutInfo()