Hi there,
Thanks for your inquiry. EditableRangeStart class represents a start of an editable range in a Word document. EditableRangeEnd class represents an end of an editable range in a Word document.
A complete editable range in a Word document consists of a EditableRangeStart and a matching EditableRangeEnd with the same Id. EditableRangeStart and EditableRangeEnd are just markers inside a document that specify where the editable range starts and ends.
Please note that currently editable ranges are supported only at the inline-level, that is inside Paragraph, but editable range start and editable range end can be in different paragraphs. Badly formed editable range will be ignored when the document is saved.
Please check following code example. This code example sets the editable range for second paragraph of document.
Hope this helps you. Please let us know if you have any more queries.
Document doc = new Document(MyDir + "in.docx");
doc.Protect(ProtectionType.ReadOnly);
DocumentBuilder builder = new DocumentBuilder(doc);
builder.MoveToParagraph(1, 0);
builder.StartEditableRange();
builder.MoveToParagraph(1, -1);
builder.EndEditableRange();
doc.Save(MyDir + "Out.docx");