|
// To select current bookmark
container.GetDocumentEditor().GetSelection().SelectBookmark("BookmarkName");
// To select current paragraph
container.GetDocumentEditor().GetSelection().SelectParagraph();
//When the document is protected allows to edit the selected content. “Everyone” is allowed to edit.
container.GetDocumentEditor().GetEditor().InsertEditingRegion();
// You can use the currentUser property to authorize the current document user by name, email, or user group name.
container.GetDocumentEditor().CurrentUser = "[email protected]";
// Enforce document protection have to specify password, whether to limit formatting or not, whether isReadOnly or not
container. GetDocumentEditor().GetEditor().EnforceProtection("123", ProtectionType.NoProtection);
//stop the document protection
container.GetDocumentEditor().GetEditor().StopProtection("123");
To navigate within edit region, make use of below API
container. GetDocumentEditor().GetSelection().ShowAllEditingRegion();
container. GetDocumentEditor().GetSelection().NavigateToNextEditingRegion();
|
|
container.DocumentEditor.Editor.DeleteBookmark("<<BookmarkName>>"); |