com.aspose.words
Class EditableRange

java.lang.Object
    extended by com.aspose.words.EditableRange

public class EditableRange 
extends java.lang.Object

Represents a single editable range.

EditableRange is a "facade" object that encapsulates two nodes EditableRangeStart and EditableRangeEnd in a document tree and allows to work with an editable range as a single object.


Property Getters/Setters Summary
EditableRangeEndgetEditableRangeEnd()
           Gets the node that represents the end of the editable range.
EditableRangeStartgetEditableRangeStart()
           Gets the node that represents the start of the editable range.
intgetEditorGroup()
voidsetEditorGroup(int value)
           Returns or sets 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 of the property is EditorType integer constant.
intgetId()
           Gets the editable range identifier.
java.lang.StringgetSingleUser()
voidsetSingleUser(java.lang.String value)
           Returns or sets the single user for editable range.
 
Method Summary
voidremove()
           Removes the editable range from the document. Does not remove content inside the editable range.
 

Property Getters/Setters Detail

getEditableRangeEnd

public EditableRangeEnd getEditableRangeEnd()
Gets the node that represents the end of the editable range.

getEditableRangeStart

public EditableRangeStart getEditableRangeStart()
Gets the node that represents the start of the editable range.

getEditorGroup/setEditorGroup

public int getEditorGroup() / public void setEditorGroup(int value)
Returns or sets 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 of the property is EditorType integer constant.

Single user and editor group cannot be set simultaneously for the specific editable range, if the one is set, the other will be clear.


getId

public int getId()
Gets the editable range identifier.

The region must be demarcated using the EditableRangeStart and EditableRangeEnd

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.


getSingleUser/setSingleUser

public java.lang.String getSingleUser() / public void setSingleUser(java.lang.String value)
Returns or sets the single user for editable range.

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.


Method Detail

remove

public void remove()
           throws java.lang.Exception
Removes the editable range from the document. Does not remove content inside the editable range.

See Also:
          Aspose.Words Documentation - the home page for the Aspose.Words Product Documentation.
          Aspose.Words Support Forum - our preferred method of support.