Class EditOperation
edit operation details for EditableContent
class EditOperation;
Constructors
| Name | Description |
|---|---|
this
(action)
|
|
this
(action, pos, text)
|
|
this
(action, range, text)
|
|
this
(action, range, text)
|
Fields
| Name | Type | Description |
|---|---|---|
_action
|
EditAction | |
_content
|
dstring[] | new content for range (if required for this action) |
_newRange
|
TextRange | |
_oldContent
|
dstring[] | old content for range |
_oldEditMarks
|
EditStateMark[] | line edit marks for old range |
_range
|
TextRange |
Properties
| Name | Type | Description |
|---|---|---|
action[get]
|
EditAction | action performed |
content[get]
|
dstring[] | |
isInsertNewLine[get]
|
bool | return true if it's insert new line operation |
newRange[get]
|
TextRange | new range after operation applied |
newRange[set]
|
TextRange | |
oldContent[get]
|
dstring[] | |
oldContent[set]
|
dstring[] | |
oldEditMarks[get]
|
EditStateMark[] | |
oldEditMarks[set]
|
EditStateMark[] | |
range[get]
|
TextRange | source range to replace with new content |
singleChar[get]
|
dchar | if new content is single char, return it, otherwise return 0 |
Methods
| Name | Description |
|---|---|
merge
(op)
|
try to merge two operations (simple entering of characters in the same line), return true if succeded |
modified
(all)
|