Class EditOperation

edit operation details for EditableContent

class EditOperation;

Constructors

NameDescription
this (action)
this (action, pos, text)
this (action, range, text)
this (action, range, text)

Fields

NameTypeDescription
_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

NameTypeDescription
action[get] EditActionaction performed
content[get] dstring[]
isInsertNewLine[get] boolreturn true if it's insert new line operation
newRange[get] TextRangenew range after operation applied
newRange[set] TextRange
oldContent[get] dstring[]
oldContent[set] dstring[]
oldEditMarks[get] EditStateMark[]
oldEditMarks[set] EditStateMark[]
range[get] TextRangesource range to replace with new content
singleChar[get] dcharif new content is single char, return it, otherwise return 0

Methods

NameDescription
merge (op) try to merge two operations (simple entering of characters in the same line), return true if succeded
modified (all)