C# Class Mono.TextEditor.LineSplitter

Inheritance: ILineSplitter
Exibir arquivo Open project: LogosBible/monodevelop Class Usage Examples

Public Methods

Method Description
ChangeLength ( TreeNode line, int newLength ) : void
ChangeLength ( TreeNode line, int newLength, int delimiterLength ) : void
Clear ( ) : void
Get ( int number ) : Mono.TextEditor.DocumentLine
GetLineByOffset ( int offset ) : Mono.TextEditor.DocumentLine
GetLinesBetween ( int startLine, int endLine ) : IEnumerable
GetLinesReverseStartingAt ( int startLine ) : IEnumerable
GetLinesStartingAt ( int startLine ) : IEnumerable
Initalize ( string text ) : void
LineSplitter ( ) : System
OffsetToLineNumber ( int offset ) : int
RemoveLine ( TreeNode line, int lineNumber ) : void
TextInsert ( int offset, string text ) : void
TextRemove ( int offset, int length ) : void
TextReplaced ( object sender, Mono.TextEditor.DocumentChangeEventArgs args ) : void
ToString ( ) : string

Protected Methods

Method Description
OnLineChanged ( Mono.TextEditor.LineEventArgs e ) : void
OnLineInserted ( Mono.TextEditor.LineEventArgs e ) : void
OnLineRemoved ( Mono.TextEditor.LineEventArgs e ) : void

Private Methods

Method Description
BuildTree ( System nodes, int start, int end, int subtreeHeight ) : TreeNode
GetNode ( int index ) : TreeNode
GetNodeAtOffset ( int offset ) : TreeNode
GetTreeHeight ( int size ) : int
InsertAfter ( TreeNode segment, int length, int delimiterLength ) : TreeNode
NextDelimiter ( string text, int offset ) : Delimiter

Method Details

ChangeLength() public method

public ChangeLength ( TreeNode line, int newLength ) : void
line TreeNode
newLength int
return void

ChangeLength() public method

public ChangeLength ( TreeNode line, int newLength, int delimiterLength ) : void
line TreeNode
newLength int
delimiterLength int
return void

Clear() public method

public Clear ( ) : void
return void

Get() public method

public Get ( int number ) : Mono.TextEditor.DocumentLine
number int
return Mono.TextEditor.DocumentLine

GetLineByOffset() public method

public GetLineByOffset ( int offset ) : Mono.TextEditor.DocumentLine
offset int
return Mono.TextEditor.DocumentLine

GetLinesBetween() public method

public GetLinesBetween ( int startLine, int endLine ) : IEnumerable
startLine int
endLine int
return IEnumerable

GetLinesReverseStartingAt() public method

public GetLinesReverseStartingAt ( int startLine ) : IEnumerable
startLine int
return IEnumerable

GetLinesStartingAt() public method

public GetLinesStartingAt ( int startLine ) : IEnumerable
startLine int
return IEnumerable

Initalize() public method

public Initalize ( string text ) : void
text string
return void

LineSplitter() public method

public LineSplitter ( ) : System
return System

OffsetToLineNumber() public method

public OffsetToLineNumber ( int offset ) : int
offset int
return int

OnLineChanged() protected method

protected OnLineChanged ( Mono.TextEditor.LineEventArgs e ) : void
e Mono.TextEditor.LineEventArgs
return void

OnLineInserted() protected method

protected OnLineInserted ( Mono.TextEditor.LineEventArgs e ) : void
e Mono.TextEditor.LineEventArgs
return void

OnLineRemoved() protected method

protected OnLineRemoved ( Mono.TextEditor.LineEventArgs e ) : void
e Mono.TextEditor.LineEventArgs
return void

RemoveLine() public method

public RemoveLine ( TreeNode line, int lineNumber ) : void
line TreeNode
lineNumber int
return void

TextInsert() public method

public TextInsert ( int offset, string text ) : void
offset int
text string
return void

TextRemove() public method

public TextRemove ( int offset, int length ) : void
offset int
length int
return void

TextReplaced() public method

public TextReplaced ( object sender, Mono.TextEditor.DocumentChangeEventArgs args ) : void
sender object
args Mono.TextEditor.DocumentChangeEventArgs
return void

ToString() public method

public ToString ( ) : string
return string