프로퍼티 | 타입 | 설명 | |
---|---|---|---|
FillTheHole | void | ||
GetCharCount | int | ||
GetCharCount | int | ||
OnDeletedText | void | ||
OnInsertedText | void | ||
PrivateCharPositionFromLine | int | ||
Reset | void | ||
SciGetLength | int | ||
SciGetLineCount | int | ||
SciLineFromPosition | int | ||
SciLineLength | int | ||
SciPositionFromLine | int | ||
SciPositionRelative | int | ||
SetHoleInLine | void |
메소드 | 설명 | |
---|---|---|
ByteToCharPosition ( int pos ) : int |
Converts a BYTE position to a CHAR position.
|
|
CharPositionFromLine ( int index ) : int |
Returns the CHAR position where the line begins, this is THE method of this class (since it is the only info we keep on the lines!)
|
|
CharToBytePosition ( int pos ) : int |
Converts a CHAR position to a BYTE position
|
|
DocumentLines ( ) : System |
Initializes a new instance
|
|
LineCharLength ( int index ) : int |
Returns the number of CHAR in a line.
|
|
LineFromCharPosition ( int pos ) : int |
Returns the line index containing the CHAR position.
|
|
OnScnModified ( |
When receiving a modification notification by scintilla
|
메소드 | 설명 | |
---|---|---|
FillTheHole ( ) : void |
Fixes the hole we created in a line by correcting the start char position or all the following lines (by the amount of _holeLenght) and then rests the _holeLenght
|
|
GetCharCount ( |
Gets the number of CHAR in a BYTE range
|
|
GetCharCount ( int pos, int length ) : int |
Gets the number of CHAR int a BYTE range
|
|
OnDeletedText ( |
updates the line info when deleting text
|
|
OnInsertedText ( |
Updates the line info when inserting text
|
|
PrivateCharPositionFromLine ( int index ) : int |
Returns the CHAR position where the line begins, this is THE method of this class (since it is the only info we keep on the lines!)
|
|
Reset ( ) : void |
Simulates the insertion of the whole text, use this to reset the lines info (when switching document for instance)
|
|
SciGetLength ( ) : int |
Returns the document lenght in BYTES
|
|
SciGetLineCount ( ) : int |
returns the number of lines in the document
|
|
SciLineFromPosition ( int pos ) : int |
returns the line that contains the BYTE position pos in the document
|
|
SciLineLength ( int line ) : int |
returns the length (nb of BYTE) of the line, including any line end CHARs
|
|
SciPositionFromLine ( int line ) : int |
returns the document BYTE position that corresponds with the start of the line
|
|
SciPositionRelative ( int position, int nb ) : int |
Count a number of whole characters before or after the argument position and return that position The minimum position returned is 0 and the maximum is the last position in the document
|
|
SetHoleInLine ( int line, int charLength ) : void |
Creates a hole in a given line (charLength is added to the existing _holeLenght)
|
public OnScnModified ( |
||
scn | ||
isInsertion | bool | |
리턴 | void |