C# 클래스 ICSharpCode.AvalonEdit.Editing.Selection

Base class for selections.
파일 보기 프로젝트 열기: kjk/kjkpub 1 사용 예제들

공개 메소드들

메소드 설명
Contains ( int offset ) : bool

Gets whether the specified offset is included in the selection.

CreateDataObject ( TextArea textArea ) : System.Windows.DataObject

Creates a data object containing the selection's text.

CreateHtmlFragment ( TextArea textArea, HtmlOptions options ) : string

Creates a HTML fragment for the selected text.

Equals ( object obj ) : bool
GetHashCode ( ) : int
GetText ( TextDocument document ) : string

Gets the selected text.

IsFindOnPageSelection ( ) : bool
IsMultiline ( TextDocument document ) : bool

Gets whether the selection is multi-line.

ReplaceSelectionWithText ( TextArea textArea, string newText ) : void

Replaces the selection with the specified text.

SetEndpoint ( int newEndOffset ) : Selection

Returns a new selection with the changed end point.

StartSelectionOrSetEndpoint ( int startOffset, int newEndOffset ) : Selection

If this selection is empty, starts a new selection from startOffset to newEndOffset, otherwise, changes the endpoint of this selection.

UpdateOnDocumentChange ( ICSharpCode.AvalonEdit.Document.DocumentChangeEventArgs e ) : Selection

Updates the selection when the document changes.

메소드 상세

Contains() 공개 메소드

Gets whether the specified offset is included in the selection.
public Contains ( int offset ) : bool
offset int
리턴 bool

CreateDataObject() 공개 메소드

Creates a data object containing the selection's text.
public CreateDataObject ( TextArea textArea ) : System.Windows.DataObject
textArea TextArea
리턴 System.Windows.DataObject

CreateHtmlFragment() 공개 메소드

Creates a HTML fragment for the selected text.
public CreateHtmlFragment ( TextArea textArea, HtmlOptions options ) : string
textArea TextArea
options ICSharpCode.AvalonEdit.Highlighting.HtmlOptions
리턴 string

Equals() 공개 추상적인 메소드

public abstract Equals ( object obj ) : bool
obj object
리턴 bool

GetHashCode() 공개 추상적인 메소드

public abstract GetHashCode ( ) : int
리턴 int

GetText() 공개 메소드

Gets the selected text.
public GetText ( TextDocument document ) : string
document ICSharpCode.AvalonEdit.Document.TextDocument
리턴 string

IsFindOnPageSelection() 공개 메소드

public IsFindOnPageSelection ( ) : bool
리턴 bool

IsMultiline() 공개 메소드

Gets whether the selection is multi-line.
public IsMultiline ( TextDocument document ) : bool
document ICSharpCode.AvalonEdit.Document.TextDocument
리턴 bool

ReplaceSelectionWithText() 공개 추상적인 메소드

Replaces the selection with the specified text.
public abstract ReplaceSelectionWithText ( TextArea textArea, string newText ) : void
textArea TextArea
newText string
리턴 void

SetEndpoint() 공개 추상적인 메소드

Returns a new selection with the changed end point.
Cannot set endpoint for empty selection
public abstract SetEndpoint ( int newEndOffset ) : Selection
newEndOffset int
리턴 Selection

StartSelectionOrSetEndpoint() 공개 메소드

If this selection is empty, starts a new selection from startOffset to newEndOffset, otherwise, changes the endpoint of this selection.
public StartSelectionOrSetEndpoint ( int startOffset, int newEndOffset ) : Selection
startOffset int
newEndOffset int
리턴 Selection

UpdateOnDocumentChange() 공개 추상적인 메소드

Updates the selection when the document changes.
public abstract UpdateOnDocumentChange ( ICSharpCode.AvalonEdit.Document.DocumentChangeEventArgs e ) : Selection
e ICSharpCode.AvalonEdit.Document.DocumentChangeEventArgs
리턴 Selection