public class EditableRange
extends java.lang.Object
To learn more, visit the Aspose.Words Document Object Model (DOM) documentation article.
EditableRange is a "facade" object that encapsulates two nodes getEditableRangeStart() and getEditableRangeEnd() in a document tree and allows to work with an editable range as a single object.
| Modifier and Type | Method and Description |
|---|---|
EditableRangeEnd |
getEditableRangeEnd()
Gets the node that represents the end of the editable range.
|
EditableRangeStart |
getEditableRangeStart()
Gets the node that represents the start of the editable range.
|
int |
getEditorGroup()
Gets an alias (or editing group) which shall be used to determine if the current user shall be allowed to edit this editable range.
|
int |
getId()
Gets the editable range identifier.
|
java.lang.String |
getSingleUser()
Gets the single user for editable range.
|
void |
remove()
Removes the editable range from the document.
|
void |
setEditorGroup(int value)
Sets an alias (or editing group) which shall be used to determine if the current user shall be allowed to edit this editable range.
|
void |
setSingleUser(java.lang.String value)
Sets the single user for editable range.
|
public void remove()
throws java.lang.Exception
java.lang.Exceptionpublic int getId()
The region must be demarcated using the getEditableRangeStart() and getEditableRangeEnd()
Editable range identifiers are supposed to be unique across a document and Aspose.Words automatically maintains editable range identifiers when loading, saving and combining documents.
public java.lang.String getSingleUser()
This editor can be stored in one of the following forms:
DOMAIN\Username - for users whose access shall be authenticated using the current user's domain credentials.
user@domain.com - for users whose access shall be authenticated using the user's e-mail address as credentials.
user - for users whose access shall be authenticated using the current user's machine credentials.
Single user and editor group cannot be set simultaneously for the specific editable range, if the one is set, the other will be clear.
public void setSingleUser(java.lang.String value)
This editor can be stored in one of the following forms:
DOMAIN\Username - for users whose access shall be authenticated using the current user's domain credentials.
user@domain.com - for users whose access shall be authenticated using the user's e-mail address as credentials.
user - for users whose access shall be authenticated using the current user's machine credentials.
Single user and editor group cannot be set simultaneously for the specific editable range, if the one is set, the other will be clear.
value - The single user for editable range.public int getEditorGroup()
Single user and editor group cannot be set simultaneously for the specific editable range, if the one is set, the other will be clear.
EditorType constants.public void setEditorGroup(int value)
Single user and editor group cannot be set simultaneously for the specific editable range, if the one is set, the other will be clear.
value - An alias (or editing group) which shall be used to determine if the current user shall be allowed to edit this editable range. The value must be one of EditorType constants.public EditableRangeStart getEditableRangeStart()
public EditableRangeEnd getEditableRangeEnd() throws java.lang.Exception
java.lang.Exception