C# 클래스 Mono.TextEditor.TextEditorData

상속: IDisposable
파일 보기 프로젝트 열기: LogosBible/monodevelop 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
HeightTree Mono.TextEditor.HeightTree

공개 메소드들

메소드 설명
AddTooltipProvider ( Mono.TextEditor.TooltipProvider provider ) : void
CanEdit ( int line ) : bool
CenterTo ( Mono.TextEditor.DocumentLocation p ) : void
CenterTo ( int offset ) : void
CenterTo ( int line, int column ) : void
CenterToCaret ( ) : void
ClearSelection ( ) : void
ClearTooltipProviders ( ) : void
CreateImmutable ( string input, bool suppressHighlighting = true ) : TextEditorData

Creates the a text editor data object which document can't be changed. This is useful for 'view' only documents.

The Document itself is very fast because it uses a special case buffer and line splitter implementation. Additionally highlighting is turned off as default.

DeleteSelectedText ( ) : void
DeleteSelectedText ( bool clearSelection ) : void
Dispose ( ) : void
EnsureCaretIsNotVirtual ( ) : int

Ensures the caret is not in a virtual position by adding whitespaces up to caret position. That method should always be called in an undo group.

ExtendSelectionTo ( Mono.TextEditor.DocumentLocation location ) : void
ExtendSelectionTo ( int offset ) : void
FindCurrentWordEnd ( int offset ) : int
FindCurrentWordStart ( int offset ) : int
FindNext ( bool setSelection ) : SearchResult
FindNextSubwordOffset ( int offset ) : int
FindNextWordOffset ( int offset ) : int
FindPrevSubwordOffset ( int offset ) : int
FindPrevWordOffset ( int offset ) : int
FindPrevious ( bool setSelection ) : SearchResult
FixVirtualIndentation ( ) : void

Removes the indent on the caret line, if the indent mode is set to virtual and the indent matches the current virtual indent in that line.

FixVirtualIndentation ( int lineNumber ) : void
FormatString ( Mono.TextEditor.DocumentLocation loc, string str ) : string
FormatString ( int offset, string str ) : string
GetCharAt ( Mono.TextEditor.DocumentLocation location ) : char
GetCharAt ( int offset ) : char
GetCharAt ( int line, int column ) : char
GetChunks ( Mono.TextEditor.DocumentLine line, int offset, int length ) : IEnumerable
GetIndentationString ( Mono.TextEditor.DocumentLocation loc ) : string
GetIndentationString ( int offset ) : string
GetIndentationString ( int lineNumber, int column ) : string
GetLine ( int lineNumber ) : Mono.TextEditor.DocumentLine
GetLineByOffset ( int offset ) : Mono.TextEditor.DocumentLine
GetLineHeight ( Mono.TextEditor.DocumentLine line ) : double
GetLineHeight ( int line ) : double
GetLineIndent ( Mono.TextEditor.DocumentLine segment ) : string
GetLineIndent ( int lineNumber ) : string
GetLineText ( int line ) : string
GetLineText ( int line, bool includeDelimiter ) : string
GetMarkup ( int offset, int length, bool removeIndent, bool useColors = true, bool replaceTabs = true ) : string
GetMatchAt ( int offset ) : SearchResult
GetTextAt ( DocumentRegion region ) : string
GetTextAt ( TextSegment segment ) : string
GetTextAt ( int offset, int count ) : string
GetTextBetween ( Mono.TextEditor.DocumentLocation start, Mono.TextEditor.DocumentLocation end ) : string
GetTextBetween ( int startOffset, int endOffset ) : string
GetTextBetween ( int startLine, int startColumn, int endLine, int endColumn ) : string
GetVirtualIndentationColumn ( Mono.TextEditor.DocumentLocation loc ) : int
GetVirtualIndentationColumn ( int offset ) : int
GetVirtualIndentationColumn ( int lineNumber, int column ) : int
Insert ( int offset, string value ) : int
InsertAtCaret ( string text ) : void
IsMatchAt ( int offset ) : bool
LocationToOffset ( Mono.TextEditor.DocumentLocation location ) : int
LocationToOffset ( int line, int column ) : int
LogicalToVisualLine ( int logicalLine ) : int
LogicalToVisualLocation ( Mono.TextEditor.DocumentLocation location ) : Mono.TextEditor.DocumentLocation
LogicalToVisualLocation ( int line, int column ) : Mono.TextEditor.DocumentLocation
OffsetToLineNumber ( int offset ) : int
OffsetToLocation ( int offset ) : Mono.TextEditor.DocumentLocation
OpenStream ( ) : Stream
OpenUndoGroup ( ) : IDisposable
OpenUndoGroup ( OperationType operationType ) : IDisposable
PasteText ( int offset, string text, byte copyData, IDisposable &undoGroup ) : int
RaiseUpdateAdjustmentsRequested ( ) : void
Remove ( DocumentRegion region ) : void
Remove ( TextSegment removeSegment ) : void
Remove ( int offset, int count ) : void
RemoveTooltipProvider ( Mono.TextEditor.TooltipProvider provider ) : void
Replace ( int offset, int count, string value ) : int
RequestRecenter ( ) : void
ScrollTo ( Mono.TextEditor.DocumentLocation loc ) : void
ScrollTo ( int offset ) : void
ScrollTo ( int line, int column ) : void
ScrollToCaret ( ) : void
SearchBackward ( int fromOffset ) : SearchResult
SearchForward ( int fromOffset ) : SearchResult
SearchReplace ( string withPattern, bool setSelection ) : bool
SearchReplaceAll ( string withPattern ) : int
SetCaretTo ( int line, int column ) : void
SetCaretTo ( int line, int column, bool highlight ) : void
SetCaretTo ( int line, int column, bool highlight, bool centerCaret ) : void
SetSelectLines ( int from, int to ) : void
SetSelection ( Mono.TextEditor.DocumentLocation anchor, Mono.TextEditor.DocumentLocation lead ) : void
SetSelection ( int anchorOffset, int leadOffset ) : void
SetSelection ( int anchorLine, int anchorColumn, int leadLine, int leadColumn ) : void
SetSkipChar ( int offset, char ch ) : void
TextEditorData ( ) : System
TextEditorData ( TextDocument doc ) : System
VisualToLogicalLine ( int visualLineNumber ) : int

보호된 메소드들

메소드 설명
OnSearchChanged ( EventArgs args ) : void
OnSelectionChanged ( EventArgs args ) : void
OnSelectionChanging ( EventArgs e ) : void
OnUpdateAdjustmentsRequested ( EventArgs e ) : void

비공개 메소드들

메소드 설명
CaretPositionChanged ( object sender, Mono.TextEditor.DocumentLocationEventArgs args ) : void
ConvertToPangoMarkup ( string str, bool replaceTabs = true ) : string
DeleteSelection ( Selection selection ) : void
DetachDocument ( ) : void
DocumentHandleRedone ( object sender, TextDocument e ) : void
DocumentHandleUndone ( object sender, TextDocument e ) : void
EnsureIsNotVirtual ( Mono.TextEditor.DocumentLocation loc ) : int
EnsureIsNotVirtual ( int line, int column ) : int
HandleDocLineChanged ( object sender, Mono.TextEditor.LineEventArgs e ) : void
HandleDocTextSet ( object sender, EventArgs e ) : void
HandleFoldTreeUpdated ( object sender, EventArgs e ) : void
HandleTextEditorDataDocumentFolded ( object sender, Mono.TextEditor.FoldSegmentEventArgs e ) : void
HandleTextReplaced ( object sender, Mono.TextEditor.DocumentChangeEventArgs e ) : void
OnBeginUndo ( object sender, EventArgs args ) : void
OnEndUndo ( object sender, TextDocument e ) : void

메소드 상세

AddTooltipProvider() 공개 메소드

public AddTooltipProvider ( Mono.TextEditor.TooltipProvider provider ) : void
provider Mono.TextEditor.TooltipProvider
리턴 void

CanEdit() 공개 메소드

public CanEdit ( int line ) : bool
line int
리턴 bool

CenterTo() 공개 메소드

public CenterTo ( Mono.TextEditor.DocumentLocation p ) : void
p Mono.TextEditor.DocumentLocation
리턴 void

CenterTo() 공개 메소드

public CenterTo ( int offset ) : void
offset int
리턴 void

CenterTo() 공개 메소드

public CenterTo ( int line, int column ) : void
line int
column int
리턴 void

CenterToCaret() 공개 메소드

public CenterToCaret ( ) : void
리턴 void

ClearSelection() 공개 메소드

public ClearSelection ( ) : void
리턴 void

ClearTooltipProviders() 공개 메소드

public ClearTooltipProviders ( ) : void
리턴 void

CreateImmutable() 공개 정적인 메소드

Creates the a text editor data object which document can't be changed. This is useful for 'view' only documents.
The Document itself is very fast because it uses a special case buffer and line splitter implementation. Additionally highlighting is turned off as default.
public static CreateImmutable ( string input, bool suppressHighlighting = true ) : TextEditorData
input string
suppressHighlighting bool
리턴 TextEditorData

DeleteSelectedText() 공개 메소드

public DeleteSelectedText ( ) : void
리턴 void

DeleteSelectedText() 공개 메소드

public DeleteSelectedText ( bool clearSelection ) : void
clearSelection bool
리턴 void

Dispose() 공개 메소드

public Dispose ( ) : void
리턴 void

EnsureCaretIsNotVirtual() 공개 메소드

Ensures the caret is not in a virtual position by adding whitespaces up to caret position. That method should always be called in an undo group.
public EnsureCaretIsNotVirtual ( ) : int
리턴 int

ExtendSelectionTo() 공개 메소드

public ExtendSelectionTo ( Mono.TextEditor.DocumentLocation location ) : void
location Mono.TextEditor.DocumentLocation
리턴 void

ExtendSelectionTo() 공개 메소드

public ExtendSelectionTo ( int offset ) : void
offset int
리턴 void

FindCurrentWordEnd() 공개 메소드

public FindCurrentWordEnd ( int offset ) : int
offset int
리턴 int

FindCurrentWordStart() 공개 메소드

public FindCurrentWordStart ( int offset ) : int
offset int
리턴 int

FindNext() 공개 메소드

public FindNext ( bool setSelection ) : SearchResult
setSelection bool
리턴 SearchResult

FindNextSubwordOffset() 공개 메소드

public FindNextSubwordOffset ( int offset ) : int
offset int
리턴 int

FindNextWordOffset() 공개 메소드

public FindNextWordOffset ( int offset ) : int
offset int
리턴 int

FindPrevSubwordOffset() 공개 메소드

public FindPrevSubwordOffset ( int offset ) : int
offset int
리턴 int

FindPrevWordOffset() 공개 메소드

public FindPrevWordOffset ( int offset ) : int
offset int
리턴 int

FindPrevious() 공개 메소드

public FindPrevious ( bool setSelection ) : SearchResult
setSelection bool
리턴 SearchResult

FixVirtualIndentation() 공개 메소드

Removes the indent on the caret line, if the indent mode is set to virtual and the indent matches the current virtual indent in that line.
public FixVirtualIndentation ( ) : void
리턴 void

FixVirtualIndentation() 공개 메소드

public FixVirtualIndentation ( int lineNumber ) : void
lineNumber int
리턴 void

FormatString() 공개 메소드

public FormatString ( Mono.TextEditor.DocumentLocation loc, string str ) : string
loc Mono.TextEditor.DocumentLocation
str string
리턴 string

FormatString() 공개 메소드

public FormatString ( int offset, string str ) : string
offset int
str string
리턴 string

GetCharAt() 공개 메소드

public GetCharAt ( Mono.TextEditor.DocumentLocation location ) : char
location Mono.TextEditor.DocumentLocation
리턴 char

GetCharAt() 공개 메소드

public GetCharAt ( int offset ) : char
offset int
리턴 char

GetCharAt() 공개 메소드

public GetCharAt ( int line, int column ) : char
line int
column int
리턴 char

GetChunks() 공개 메소드

public GetChunks ( Mono.TextEditor.DocumentLine line, int offset, int length ) : IEnumerable
line Mono.TextEditor.DocumentLine
offset int
length int
리턴 IEnumerable

GetIndentationString() 공개 메소드

public GetIndentationString ( Mono.TextEditor.DocumentLocation loc ) : string
loc Mono.TextEditor.DocumentLocation
리턴 string

GetIndentationString() 공개 메소드

public GetIndentationString ( int offset ) : string
offset int
리턴 string

GetIndentationString() 공개 메소드

public GetIndentationString ( int lineNumber, int column ) : string
lineNumber int
column int
리턴 string

GetLine() 공개 메소드

public GetLine ( int lineNumber ) : Mono.TextEditor.DocumentLine
lineNumber int
리턴 Mono.TextEditor.DocumentLine

GetLineByOffset() 공개 메소드

public GetLineByOffset ( int offset ) : Mono.TextEditor.DocumentLine
offset int
리턴 Mono.TextEditor.DocumentLine

GetLineHeight() 공개 메소드

public GetLineHeight ( Mono.TextEditor.DocumentLine line ) : double
line Mono.TextEditor.DocumentLine
리턴 double

GetLineHeight() 공개 메소드

public GetLineHeight ( int line ) : double
line int
리턴 double

GetLineIndent() 공개 메소드

public GetLineIndent ( Mono.TextEditor.DocumentLine segment ) : string
segment Mono.TextEditor.DocumentLine
리턴 string

GetLineIndent() 공개 메소드

public GetLineIndent ( int lineNumber ) : string
lineNumber int
리턴 string

GetLineText() 공개 메소드

public GetLineText ( int line ) : string
line int
리턴 string

GetLineText() 공개 메소드

public GetLineText ( int line, bool includeDelimiter ) : string
line int
includeDelimiter bool
리턴 string

GetMarkup() 공개 메소드

public GetMarkup ( int offset, int length, bool removeIndent, bool useColors = true, bool replaceTabs = true ) : string
offset int
length int
removeIndent bool
useColors bool
replaceTabs bool
리턴 string

GetMatchAt() 공개 메소드

public GetMatchAt ( int offset ) : SearchResult
offset int
리턴 SearchResult

GetTextAt() 공개 메소드

public GetTextAt ( DocumentRegion region ) : string
region DocumentRegion
리턴 string

GetTextAt() 공개 메소드

public GetTextAt ( TextSegment segment ) : string
segment TextSegment
리턴 string

GetTextAt() 공개 메소드

public GetTextAt ( int offset, int count ) : string
offset int
count int
리턴 string

GetTextBetween() 공개 메소드

public GetTextBetween ( Mono.TextEditor.DocumentLocation start, Mono.TextEditor.DocumentLocation end ) : string
start Mono.TextEditor.DocumentLocation
end Mono.TextEditor.DocumentLocation
리턴 string

GetTextBetween() 공개 메소드

public GetTextBetween ( int startOffset, int endOffset ) : string
startOffset int
endOffset int
리턴 string

GetTextBetween() 공개 메소드

public GetTextBetween ( int startLine, int startColumn, int endLine, int endColumn ) : string
startLine int
startColumn int
endLine int
endColumn int
리턴 string

GetVirtualIndentationColumn() 공개 메소드

public GetVirtualIndentationColumn ( Mono.TextEditor.DocumentLocation loc ) : int
loc Mono.TextEditor.DocumentLocation
리턴 int

GetVirtualIndentationColumn() 공개 메소드

public GetVirtualIndentationColumn ( int offset ) : int
offset int
리턴 int

GetVirtualIndentationColumn() 공개 메소드

public GetVirtualIndentationColumn ( int lineNumber, int column ) : int
lineNumber int
column int
리턴 int

Insert() 공개 메소드

public Insert ( int offset, string value ) : int
offset int
value string
리턴 int

InsertAtCaret() 공개 메소드

public InsertAtCaret ( string text ) : void
text string
리턴 void

IsMatchAt() 공개 메소드

public IsMatchAt ( int offset ) : bool
offset int
리턴 bool

LocationToOffset() 공개 메소드

public LocationToOffset ( Mono.TextEditor.DocumentLocation location ) : int
location Mono.TextEditor.DocumentLocation
리턴 int

LocationToOffset() 공개 메소드

public LocationToOffset ( int line, int column ) : int
line int
column int
리턴 int

LogicalToVisualLine() 공개 메소드

public LogicalToVisualLine ( int logicalLine ) : int
logicalLine int
리턴 int

LogicalToVisualLocation() 공개 메소드

public LogicalToVisualLocation ( Mono.TextEditor.DocumentLocation location ) : Mono.TextEditor.DocumentLocation
location Mono.TextEditor.DocumentLocation
리턴 Mono.TextEditor.DocumentLocation

LogicalToVisualLocation() 공개 메소드

public LogicalToVisualLocation ( int line, int column ) : Mono.TextEditor.DocumentLocation
line int
column int
리턴 Mono.TextEditor.DocumentLocation

OffsetToLineNumber() 공개 메소드

public OffsetToLineNumber ( int offset ) : int
offset int
리턴 int

OffsetToLocation() 공개 메소드

public OffsetToLocation ( int offset ) : Mono.TextEditor.DocumentLocation
offset int
리턴 Mono.TextEditor.DocumentLocation

OnSearchChanged() 보호된 메소드

protected OnSearchChanged ( EventArgs args ) : void
args System.EventArgs
리턴 void

OnSelectionChanged() 보호된 메소드

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

OnSelectionChanging() 보호된 메소드

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

OnUpdateAdjustmentsRequested() 보호된 메소드

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

OpenStream() 공개 메소드

public OpenStream ( ) : Stream
리턴 Stream

OpenUndoGroup() 공개 메소드

public OpenUndoGroup ( ) : IDisposable
리턴 IDisposable

OpenUndoGroup() 공개 메소드

public OpenUndoGroup ( OperationType operationType ) : IDisposable
operationType OperationType
리턴 IDisposable

PasteText() 공개 메소드

public PasteText ( int offset, string text, byte copyData, IDisposable &undoGroup ) : int
offset int
text string
copyData byte
undoGroup IDisposable
리턴 int

RaiseUpdateAdjustmentsRequested() 공개 메소드

public RaiseUpdateAdjustmentsRequested ( ) : void
리턴 void

Remove() 공개 메소드

public Remove ( DocumentRegion region ) : void
region DocumentRegion
리턴 void

Remove() 공개 메소드

public Remove ( TextSegment removeSegment ) : void
removeSegment TextSegment
리턴 void

Remove() 공개 메소드

public Remove ( int offset, int count ) : void
offset int
count int
리턴 void

RemoveTooltipProvider() 공개 메소드

public RemoveTooltipProvider ( Mono.TextEditor.TooltipProvider provider ) : void
provider Mono.TextEditor.TooltipProvider
리턴 void

Replace() 공개 메소드

public Replace ( int offset, int count, string value ) : int
offset int
count int
value string
리턴 int

RequestRecenter() 공개 메소드

public RequestRecenter ( ) : void
리턴 void

ScrollTo() 공개 메소드

public ScrollTo ( Mono.TextEditor.DocumentLocation loc ) : void
loc Mono.TextEditor.DocumentLocation
리턴 void

ScrollTo() 공개 메소드

public ScrollTo ( int offset ) : void
offset int
리턴 void

ScrollTo() 공개 메소드

public ScrollTo ( int line, int column ) : void
line int
column int
리턴 void

ScrollToCaret() 공개 메소드

public ScrollToCaret ( ) : void
리턴 void

SearchBackward() 공개 메소드

public SearchBackward ( int fromOffset ) : SearchResult
fromOffset int
리턴 SearchResult

SearchForward() 공개 메소드

public SearchForward ( int fromOffset ) : SearchResult
fromOffset int
리턴 SearchResult

SearchReplace() 공개 메소드

public SearchReplace ( string withPattern, bool setSelection ) : bool
withPattern string
setSelection bool
리턴 bool

SearchReplaceAll() 공개 메소드

public SearchReplaceAll ( string withPattern ) : int
withPattern string
리턴 int

SetCaretTo() 공개 메소드

public SetCaretTo ( int line, int column ) : void
line int
column int
리턴 void

SetCaretTo() 공개 메소드

public SetCaretTo ( int line, int column, bool highlight ) : void
line int
column int
highlight bool
리턴 void

SetCaretTo() 공개 메소드

public SetCaretTo ( int line, int column, bool highlight, bool centerCaret ) : void
line int
column int
highlight bool
centerCaret bool
리턴 void

SetSelectLines() 공개 메소드

public SetSelectLines ( int from, int to ) : void
from int
to int
리턴 void

SetSelection() 공개 메소드

public SetSelection ( Mono.TextEditor.DocumentLocation anchor, Mono.TextEditor.DocumentLocation lead ) : void
anchor Mono.TextEditor.DocumentLocation
lead Mono.TextEditor.DocumentLocation
리턴 void

SetSelection() 공개 메소드

public SetSelection ( int anchorOffset, int leadOffset ) : void
anchorOffset int
leadOffset int
리턴 void

SetSelection() 공개 메소드

public SetSelection ( int anchorLine, int anchorColumn, int leadLine, int leadColumn ) : void
anchorLine int
anchorColumn int
leadLine int
leadColumn int
리턴 void

SetSkipChar() 공개 메소드

public SetSkipChar ( int offset, char ch ) : void
offset int
ch char
리턴 void

TextEditorData() 공개 메소드

public TextEditorData ( ) : System
리턴 System

TextEditorData() 공개 메소드

public TextEditorData ( TextDocument doc ) : System
doc TextDocument
리턴 System

VisualToLogicalLine() 공개 메소드

public VisualToLogicalLine ( int visualLineNumber ) : int
visualLineNumber int
리턴 int

프로퍼티 상세

HeightTree 공개적으로 프로퍼티

public HeightTree,Mono.TextEditor HeightTree
리턴 Mono.TextEditor.HeightTree