C# 클래스 ICSharpCode.TextEditor.Document.SelectionManager

This class manages the selections in a document.
상속: IDisposable
파일 보기 프로젝트 열기: jumpinjackie/fdotoolbox 1 사용 예제들

공개 메소드들

메소드 설명
ClearSelection ( ) : void Clears the selection.
Dispose ( ) : void
ExtendSelection ( Point oldPosition, Point newPosition ) : void
FireSelectionChanged ( ) : void
GetSelectionAt ( int offset ) : ISelection Returns a ISelection object giving the selection in which the offset points to.
GetSelectionAtLine ( int lineNumber ) : ICSharpCode.TextEditor.Document.ColumnRange
GreaterEqPos ( Point p1, Point p2 ) : bool
IsSelected ( int offset ) : bool Returns true if the given offset points to a section which is selected.
NextValidPosition ( int line ) : Point
RemoveSelectedText ( ) : void Removes the selected text from the buffer and clears the selection.
SelectionManager ( IDocument document ) : System

Creates a new instance of SelectionManager

SelectionManager ( IDocument document, TextArea textArea ) : System

Creates a new instance of SelectionManager

SetSelection ( ISelection selection ) : void Clears the selection and sets a new selection using the given ISelection object.
SetSelection ( Point startPosition, Point endPosition ) : void

보호된 메소드들

메소드 설명
OnSelectionChanged ( EventArgs e ) : void

비공개 메소드들

메소드 설명
ClearWithoutUpdate ( ) : void
DocumentChanged ( object sender, ICSharpCode.TextEditor.Document.DocumentEventArgs e ) : void
Insert ( int offset, string text ) : void Used internally, do not call.
Remove ( int offset, int length ) : void Used internally, do not call.
Replace ( int offset, int length, string text ) : void Used internally, do not call.
SelectionsOverlap ( ISelection s1, ISelection s2 ) : bool

메소드 상세

ClearSelection() 공개 메소드

Clears the selection.
public ClearSelection ( ) : void
리턴 void

Dispose() 공개 메소드

public Dispose ( ) : void
리턴 void

ExtendSelection() 공개 메소드

public ExtendSelection ( Point oldPosition, Point newPosition ) : void
oldPosition Point
newPosition Point
리턴 void

FireSelectionChanged() 공개 메소드

public FireSelectionChanged ( ) : void
리턴 void

GetSelectionAt() 공개 메소드

Returns a ISelection object giving the selection in which the offset points to.
public GetSelectionAt ( int offset ) : ISelection
offset int
리턴 ISelection

GetSelectionAtLine() 공개 메소드

public GetSelectionAtLine ( int lineNumber ) : ICSharpCode.TextEditor.Document.ColumnRange
lineNumber int
리턴 ICSharpCode.TextEditor.Document.ColumnRange

GreaterEqPos() 공개 메소드

public GreaterEqPos ( Point p1, Point p2 ) : bool
p1 Point
p2 Point
리턴 bool

IsSelected() 공개 메소드

Returns true if the given offset points to a section which is selected.
public IsSelected ( int offset ) : bool
offset int
리턴 bool

NextValidPosition() 공개 메소드

public NextValidPosition ( int line ) : Point
line int
리턴 Point

OnSelectionChanged() 보호된 메소드

protected OnSelectionChanged ( EventArgs e ) : void
e System.EventArgs
리턴 void

RemoveSelectedText() 공개 메소드

Removes the selected text from the buffer and clears the selection.
public RemoveSelectedText ( ) : void
리턴 void

SelectionManager() 공개 메소드

Creates a new instance of SelectionManager
public SelectionManager ( IDocument document ) : System
document IDocument
리턴 System

SelectionManager() 공개 메소드

Creates a new instance of SelectionManager
public SelectionManager ( IDocument document, TextArea textArea ) : System
document IDocument
textArea TextArea
리턴 System

SetSelection() 공개 메소드

Clears the selection and sets a new selection using the given ISelection object.
public SetSelection ( ISelection selection ) : void
selection ISelection
리턴 void

SetSelection() 공개 메소드

public SetSelection ( Point startPosition, Point endPosition ) : void
startPosition Point
endPosition Point
리턴 void