C# 클래스 dnSpy.Text.Operations.EditorOperations

상속: IEditorOperations3
파일 보기 프로젝트 열기: 0xd4d/dnSpy 1 사용 예제들

Private Properties

프로퍼티 타입 설명
CopyToClipboard bool
CutDeleteFullLine bool
CutOrCopySelection bool
DeleteOrBackspace bool
GetAnchorPositionOrCaretIfNoSelection VirtualSnapshotPoint
GetBottomFullyVisibleLine ITextViewLine
GetDefaultHorizontalWhitespaceSpan Span
GetFirstWhitespaceIndexForIndentReplace int
GetHorizontalWhiteSpaceSpans IEnumerable
GetLengthOfLineWithTabsConvertedToSpaces int
GetLengthOfLineWithTabsConvertedToSpaces int
GetLineBreak string
GetNextIndentedVisualColumn int
GetNextNonVirtualCaretPosition SnapshotPoint
GetPointOfRightWord SnapshotPoint
GetSelectionOrCaretIfNoSelection VirtualSnapshotSpan
GetSpanOfLeftWord SnapshotSpan
GetTopFullyVisibleLine ITextViewLine
GetWhitespaceForVirtualSpace string
GetWords IEnumerable
GetZoomableView IWpfTextView
Indent bool
IndentLine bool
IndentLine bool
IndentMultipleLines bool
IndentMultipleLines bool
InsertText bool
InsertText bool
IsSelected bool
IsWhitespace bool
OpenLine bool
SkipWhitespace SnapshotPoint
SkipWhitespaceEOL SnapshotPoint
ToVisualColumn int
TryCreateHtmlText string
TryCreateHtmlText string
TryGetIndexOfFirstNonWhitespace int
TryGetPreviousSignificantWord TextExtent
UpperLower bool
UseGlobalZoomLevelOption bool

공개 메소드들

메소드 설명
AddAfterTextBufferChangePrimitive ( ) : void
AddBeforeTextBufferChangePrimitive ( ) : void
Backspace ( ) : bool
Capitalize ( ) : bool
ConvertSpacesToTabs ( ) : bool
ConvertTabsToSpaces ( ) : bool
CopySelection ( ) : bool
CutFullLine ( ) : bool
CutSelection ( ) : bool
DecreaseLineIndent ( ) : bool
Delete ( ) : bool
DeleteBlankLines ( ) : bool
DeleteFullLine ( ) : bool
DeleteHorizontalWhiteSpace ( ) : bool
DeleteSelection ( ) : void
DeleteToBeginningOfLine ( ) : bool
DeleteToEndOfLine ( ) : bool
DeleteWordToLeft ( ) : bool
DeleteWordToRight ( ) : bool
EditorOperations ( ITextView textView, ITextStructureNavigatorSelectorService textStructureNavigatorSelectorService, ISmartIndentationService smartIndentationService, IHtmlBuilderService htmlBuilderService ) : System
ExtendSelection ( int newEnd ) : void
GetSelectionOrCaretIfNoSelection ( VirtualSnapshotPoint &anchorPoint, VirtualSnapshotPoint &activePoint ) : void
GetWhitespaceForVirtualSpace ( VirtualSnapshotPoint point ) : string
GotoLine ( int lineNumber ) : void
IncreaseLineIndent ( ) : bool
Indent ( ) : bool
InsertFile ( string filePath ) : bool
InsertFinalNewLine ( ) : bool
InsertNewLine ( ) : bool
InsertProvisionalText ( string text ) : bool
InsertText ( string text ) : bool
InsertTextAsBox ( string text, VirtualSnapshotPoint &boxStart, VirtualSnapshotPoint &boxEnd ) : bool
MakeLowercase ( ) : bool
MakeUppercase ( ) : bool
MoveCaret ( ITextViewLine textLine, double horizontalOffset, bool extendSelection ) : void
MoveCurrentLineToBottom ( ) : void
MoveCurrentLineToTop ( ) : void
MoveLineDown ( bool extendSelection ) : void
MoveLineUp ( bool extendSelection ) : void
MoveSelectedLinesDown ( ) : bool
MoveSelectedLinesUp ( ) : bool
MoveToBottomOfView ( bool extendSelection ) : void
MoveToEndOfDocument ( bool extendSelection ) : void
MoveToEndOfLine ( bool extendSelection ) : void
MoveToHome ( bool extendSelection ) : void
MoveToLastNonWhiteSpaceCharacter ( bool extendSelection ) : void
MoveToNextCharacter ( bool extendSelection ) : void
MoveToNextWord ( bool extendSelection ) : void
MoveToPreviousCharacter ( bool extendSelection ) : void
MoveToPreviousWord ( bool extendSelection ) : void
MoveToStartOfDocument ( bool extendSelection ) : void
MoveToStartOfLine ( bool extendSelection ) : void
MoveToStartOfLineAfterWhiteSpace ( ITextViewLine line, bool extendSelection ) : void
MoveToStartOfLineAfterWhiteSpace ( bool extendSelection ) : void
MoveToStartOfNextLineAfterWhiteSpace ( bool extendSelection ) : void
MoveToStartOfPreviousLineAfterWhiteSpace ( bool extendSelection ) : void
MoveToTopOfView ( bool extendSelection ) : void
NormalizeLineEndings ( string replacement ) : bool
OnContentTypeChanged ( object sender, TextDataModelContentTypeChangedEventArgs e ) : void
OpenLineAbove ( ) : bool
OpenLineBelow ( ) : bool
PageDown ( bool extendSelection ) : void
PageUp ( bool extendSelection ) : void
Paste ( ) : bool
ReplaceAllMatches ( string searchText, string replaceText, bool matchCase, bool matchWholeWord, bool useRegularExpressions ) : int
ReplaceSelection ( string text ) : bool
ReplaceText ( Span replaceSpan, string text ) : bool
ResetSelection ( ) : void
ScrollAndMoveCaretIfNecessary ( ScrollDirection scrollDirection ) : void
ScrollColumnLeft ( ) : void
ScrollColumnRight ( ) : void
ScrollDownAndMoveCaretIfNecessary ( ) : void
ScrollLineBottom ( ) : void
ScrollLineCenter ( ) : void
ScrollLineTop ( ) : void
ScrollPageDown ( ) : void
ScrollPageUp ( ) : void
ScrollUpAndMoveCaretIfNecessary ( ) : void
SelectAll ( ) : void
SelectAndMove ( SnapshotSpan span ) : void
SelectAndMoveCaret ( VirtualSnapshotPoint anchorPoint, VirtualSnapshotPoint activePoint ) : void
SelectAndMoveCaret ( VirtualSnapshotPoint anchorPoint, VirtualSnapshotPoint activePoint, TextSelectionMode selectionMode ) : void
SelectAndMoveCaret ( VirtualSnapshotPoint anchorPoint, VirtualSnapshotPoint activePoint, TextSelectionMode selectionMode, EnsureSpanVisibleOptions scrollOptions ) : void
SelectCurrentWord ( ) : void
SelectEnclosing ( ) : void
SelectFirstChild ( ) : void
SelectLine ( ITextViewLine viewLine, bool extendSelection ) : void
SelectNextSibling ( bool extendSelection ) : void
SelectPreviousSibling ( bool extendSelection ) : void
SetZoom ( IWpfTextView wpfTextView, double newZoom ) : void
SwapCaretAndAnchor ( ) : void
Tabify ( ) : bool
TextView_Closed ( object sender, EventArgs e ) : void
ToggleCase ( ) : bool
TransposeCharacter ( ) : bool
TransposeLine ( ) : bool
TransposeWord ( ) : bool
TrimTrailingWhiteSpace ( ) : bool
Unindent ( ) : bool
Untabify ( ) : bool
ZoomIn ( ) : void
ZoomOut ( ) : void
ZoomTo ( double zoomLevel ) : void

비공개 메소드들

메소드 설명
CopyToClipboard ( string text, string htmlText, bool isFullLineData, bool isBoxData ) : bool
CutDeleteFullLine ( bool cut ) : bool
CutOrCopySelection ( bool cut ) : bool
DeleteOrBackspace ( bool isBackspace ) : bool
GetAnchorPositionOrCaretIfNoSelection ( ) : VirtualSnapshotPoint
GetBottomFullyVisibleLine ( ) : ITextViewLine
GetDefaultHorizontalWhitespaceSpan ( SnapshotPoint point ) : Span
GetFirstWhitespaceIndexForIndentReplace ( string s, int index ) : int
GetHorizontalWhiteSpaceSpans ( ITextSnapshot snapshot, Span span ) : IEnumerable
GetLengthOfLineWithTabsConvertedToSpaces ( string line ) : int
GetLengthOfLineWithTabsConvertedToSpaces ( string line, int length ) : int
GetLineBreak ( SnapshotPoint pos ) : string
GetNextIndentedVisualColumn ( int visualColumn ) : int
GetNextNonVirtualCaretPosition ( ) : SnapshotPoint
GetPointOfRightWord ( VirtualSnapshotPoint point ) : SnapshotPoint
GetSelectionOrCaretIfNoSelection ( ) : VirtualSnapshotSpan
GetSpanOfLeftWord ( VirtualSnapshotPoint point ) : SnapshotSpan
GetTopFullyVisibleLine ( ) : ITextViewLine
GetWhitespaceForVirtualSpace ( int lineLengthNoTabs, int virtualSpaces ) : string
GetWords ( SnapshotSpan span ) : IEnumerable
GetZoomableView ( ) : IWpfTextView
Indent ( VirtualSnapshotPoint vpos ) : bool
IndentLine ( ITextEdit ed, ITextSnapshotLine line, string lineString, VirtualSnapshotPoint vpos, bool onlyAddIndentSize, bool isOverwrite ) : bool
IndentLine ( ITextEdit ed, VirtualSnapshotPoint vpos, bool isOverwrite ) : bool
IndentMultipleLines ( ) : bool
IndentMultipleLines ( ITextEdit ed, VirtualSnapshotSpan vspan ) : bool
InsertText ( string text, bool isProvisional ) : bool
InsertText ( string text, bool isProvisional, bool overwriteMode ) : bool
IsSelected ( SnapshotSpan span ) : bool
IsWhitespace ( char c ) : bool
OpenLine ( SnapshotPoint linebreakPos, SnapshotPoint insertPos, bool forward ) : bool
SkipWhitespace ( ITextViewLine line ) : SnapshotPoint
SkipWhitespaceEOL ( ITextViewLine line ) : SnapshotPoint
ToVisualColumn ( string line, int virtualIndex ) : int
TryCreateHtmlText ( NormalizedSnapshotSpanCollection spans ) : string
TryCreateHtmlText ( SnapshotSpan span ) : string
TryGetIndexOfFirstNonWhitespace ( string s ) : int
TryGetPreviousSignificantWord ( TextExtent info ) : TextExtent
UpperLower ( bool upper ) : bool
UseGlobalZoomLevelOption ( ITextView textView ) : bool

메소드 상세

AddAfterTextBufferChangePrimitive() 공개 메소드

public AddAfterTextBufferChangePrimitive ( ) : void
리턴 void

AddBeforeTextBufferChangePrimitive() 공개 메소드

public AddBeforeTextBufferChangePrimitive ( ) : void
리턴 void

Backspace() 공개 메소드

public Backspace ( ) : bool
리턴 bool

Capitalize() 공개 메소드

public Capitalize ( ) : bool
리턴 bool

ConvertSpacesToTabs() 공개 메소드

public ConvertSpacesToTabs ( ) : bool
리턴 bool

ConvertTabsToSpaces() 공개 메소드

public ConvertTabsToSpaces ( ) : bool
리턴 bool

CopySelection() 공개 메소드

public CopySelection ( ) : bool
리턴 bool

CutFullLine() 공개 메소드

public CutFullLine ( ) : bool
리턴 bool

CutSelection() 공개 메소드

public CutSelection ( ) : bool
리턴 bool

DecreaseLineIndent() 공개 메소드

public DecreaseLineIndent ( ) : bool
리턴 bool

Delete() 공개 메소드

public Delete ( ) : bool
리턴 bool

DeleteBlankLines() 공개 메소드

public DeleteBlankLines ( ) : bool
리턴 bool

DeleteFullLine() 공개 메소드

public DeleteFullLine ( ) : bool
리턴 bool

DeleteHorizontalWhiteSpace() 공개 메소드

public DeleteHorizontalWhiteSpace ( ) : bool
리턴 bool

DeleteSelection() 공개 메소드

public DeleteSelection ( ) : void
리턴 void

DeleteToBeginningOfLine() 공개 메소드

public DeleteToBeginningOfLine ( ) : bool
리턴 bool

DeleteToEndOfLine() 공개 메소드

public DeleteToEndOfLine ( ) : bool
리턴 bool

DeleteWordToLeft() 공개 메소드

public DeleteWordToLeft ( ) : bool
리턴 bool

DeleteWordToRight() 공개 메소드

public DeleteWordToRight ( ) : bool
리턴 bool

EditorOperations() 공개 메소드

public EditorOperations ( ITextView textView, ITextStructureNavigatorSelectorService textStructureNavigatorSelectorService, ISmartIndentationService smartIndentationService, IHtmlBuilderService htmlBuilderService ) : System
textView ITextView
textStructureNavigatorSelectorService ITextStructureNavigatorSelectorService
smartIndentationService ISmartIndentationService
htmlBuilderService IHtmlBuilderService
리턴 System

ExtendSelection() 공개 메소드

public ExtendSelection ( int newEnd ) : void
newEnd int
리턴 void

GetSelectionOrCaretIfNoSelection() 공개 메소드

public GetSelectionOrCaretIfNoSelection ( VirtualSnapshotPoint &anchorPoint, VirtualSnapshotPoint &activePoint ) : void
anchorPoint VirtualSnapshotPoint
activePoint VirtualSnapshotPoint
리턴 void

GetWhitespaceForVirtualSpace() 공개 메소드

public GetWhitespaceForVirtualSpace ( VirtualSnapshotPoint point ) : string
point VirtualSnapshotPoint
리턴 string

GotoLine() 공개 메소드

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

IncreaseLineIndent() 공개 메소드

public IncreaseLineIndent ( ) : bool
리턴 bool

Indent() 공개 메소드

public Indent ( ) : bool
리턴 bool

InsertFile() 공개 메소드

public InsertFile ( string filePath ) : bool
filePath string
리턴 bool

InsertFinalNewLine() 공개 메소드

public InsertFinalNewLine ( ) : bool
리턴 bool

InsertNewLine() 공개 메소드

public InsertNewLine ( ) : bool
리턴 bool

InsertProvisionalText() 공개 메소드

public InsertProvisionalText ( string text ) : bool
text string
리턴 bool

InsertText() 공개 메소드

public InsertText ( string text ) : bool
text string
리턴 bool

InsertTextAsBox() 공개 메소드

public InsertTextAsBox ( string text, VirtualSnapshotPoint &boxStart, VirtualSnapshotPoint &boxEnd ) : bool
text string
boxStart VirtualSnapshotPoint
boxEnd VirtualSnapshotPoint
리턴 bool

MakeLowercase() 공개 메소드

public MakeLowercase ( ) : bool
리턴 bool

MakeUppercase() 공개 메소드

public MakeUppercase ( ) : bool
리턴 bool

MoveCaret() 공개 메소드

public MoveCaret ( ITextViewLine textLine, double horizontalOffset, bool extendSelection ) : void
textLine ITextViewLine
horizontalOffset double
extendSelection bool
리턴 void

MoveCurrentLineToBottom() 공개 메소드

public MoveCurrentLineToBottom ( ) : void
리턴 void

MoveCurrentLineToTop() 공개 메소드

public MoveCurrentLineToTop ( ) : void
리턴 void

MoveLineDown() 공개 메소드

public MoveLineDown ( bool extendSelection ) : void
extendSelection bool
리턴 void

MoveLineUp() 공개 메소드

public MoveLineUp ( bool extendSelection ) : void
extendSelection bool
리턴 void

MoveSelectedLinesDown() 공개 메소드

public MoveSelectedLinesDown ( ) : bool
리턴 bool

MoveSelectedLinesUp() 공개 메소드

public MoveSelectedLinesUp ( ) : bool
리턴 bool

MoveToBottomOfView() 공개 메소드

public MoveToBottomOfView ( bool extendSelection ) : void
extendSelection bool
리턴 void

MoveToEndOfDocument() 공개 메소드

public MoveToEndOfDocument ( bool extendSelection ) : void
extendSelection bool
리턴 void

MoveToEndOfLine() 공개 메소드

public MoveToEndOfLine ( bool extendSelection ) : void
extendSelection bool
리턴 void

MoveToHome() 공개 메소드

public MoveToHome ( bool extendSelection ) : void
extendSelection bool
리턴 void

MoveToLastNonWhiteSpaceCharacter() 공개 메소드

public MoveToLastNonWhiteSpaceCharacter ( bool extendSelection ) : void
extendSelection bool
리턴 void

MoveToNextCharacter() 공개 메소드

public MoveToNextCharacter ( bool extendSelection ) : void
extendSelection bool
리턴 void

MoveToNextWord() 공개 메소드

public MoveToNextWord ( bool extendSelection ) : void
extendSelection bool
리턴 void

MoveToPreviousCharacter() 공개 메소드

public MoveToPreviousCharacter ( bool extendSelection ) : void
extendSelection bool
리턴 void

MoveToPreviousWord() 공개 메소드

public MoveToPreviousWord ( bool extendSelection ) : void
extendSelection bool
리턴 void

MoveToStartOfDocument() 공개 메소드

public MoveToStartOfDocument ( bool extendSelection ) : void
extendSelection bool
리턴 void

MoveToStartOfLine() 공개 메소드

public MoveToStartOfLine ( bool extendSelection ) : void
extendSelection bool
리턴 void

MoveToStartOfLineAfterWhiteSpace() 공개 메소드

public MoveToStartOfLineAfterWhiteSpace ( ITextViewLine line, bool extendSelection ) : void
line ITextViewLine
extendSelection bool
리턴 void

MoveToStartOfLineAfterWhiteSpace() 공개 메소드

public MoveToStartOfLineAfterWhiteSpace ( bool extendSelection ) : void
extendSelection bool
리턴 void

MoveToStartOfNextLineAfterWhiteSpace() 공개 메소드

public MoveToStartOfNextLineAfterWhiteSpace ( bool extendSelection ) : void
extendSelection bool
리턴 void

MoveToStartOfPreviousLineAfterWhiteSpace() 공개 메소드

public MoveToStartOfPreviousLineAfterWhiteSpace ( bool extendSelection ) : void
extendSelection bool
리턴 void

MoveToTopOfView() 공개 메소드

public MoveToTopOfView ( bool extendSelection ) : void
extendSelection bool
리턴 void

NormalizeLineEndings() 공개 메소드

public NormalizeLineEndings ( string replacement ) : bool
replacement string
리턴 bool

OnContentTypeChanged() 공개 메소드

public OnContentTypeChanged ( object sender, TextDataModelContentTypeChangedEventArgs e ) : void
sender object
e TextDataModelContentTypeChangedEventArgs
리턴 void

OpenLineAbove() 공개 메소드

public OpenLineAbove ( ) : bool
리턴 bool

OpenLineBelow() 공개 메소드

public OpenLineBelow ( ) : bool
리턴 bool

PageDown() 공개 메소드

public PageDown ( bool extendSelection ) : void
extendSelection bool
리턴 void

PageUp() 공개 메소드

public PageUp ( bool extendSelection ) : void
extendSelection bool
리턴 void

Paste() 공개 메소드

public Paste ( ) : bool
리턴 bool

ReplaceAllMatches() 공개 메소드

public ReplaceAllMatches ( string searchText, string replaceText, bool matchCase, bool matchWholeWord, bool useRegularExpressions ) : int
searchText string
replaceText string
matchCase bool
matchWholeWord bool
useRegularExpressions bool
리턴 int

ReplaceSelection() 공개 메소드

public ReplaceSelection ( string text ) : bool
text string
리턴 bool

ReplaceText() 공개 메소드

public ReplaceText ( Span replaceSpan, string text ) : bool
replaceSpan Span
text string
리턴 bool

ResetSelection() 공개 메소드

public ResetSelection ( ) : void
리턴 void

ScrollAndMoveCaretIfNecessary() 공개 메소드

public ScrollAndMoveCaretIfNecessary ( ScrollDirection scrollDirection ) : void
scrollDirection ScrollDirection
리턴 void

ScrollColumnLeft() 공개 메소드

public ScrollColumnLeft ( ) : void
리턴 void

ScrollColumnRight() 공개 메소드

public ScrollColumnRight ( ) : void
리턴 void

ScrollDownAndMoveCaretIfNecessary() 공개 메소드

public ScrollDownAndMoveCaretIfNecessary ( ) : void
리턴 void

ScrollLineBottom() 공개 메소드

public ScrollLineBottom ( ) : void
리턴 void

ScrollLineCenter() 공개 메소드

public ScrollLineCenter ( ) : void
리턴 void

ScrollLineTop() 공개 메소드

public ScrollLineTop ( ) : void
리턴 void

ScrollPageDown() 공개 메소드

public ScrollPageDown ( ) : void
리턴 void

ScrollPageUp() 공개 메소드

public ScrollPageUp ( ) : void
리턴 void

ScrollUpAndMoveCaretIfNecessary() 공개 메소드

public ScrollUpAndMoveCaretIfNecessary ( ) : void
리턴 void

SelectAll() 공개 메소드

public SelectAll ( ) : void
리턴 void

SelectAndMove() 공개 메소드

public SelectAndMove ( SnapshotSpan span ) : void
span SnapshotSpan
리턴 void

SelectAndMoveCaret() 공개 메소드

public SelectAndMoveCaret ( VirtualSnapshotPoint anchorPoint, VirtualSnapshotPoint activePoint ) : void
anchorPoint VirtualSnapshotPoint
activePoint VirtualSnapshotPoint
리턴 void

SelectAndMoveCaret() 공개 메소드

public SelectAndMoveCaret ( VirtualSnapshotPoint anchorPoint, VirtualSnapshotPoint activePoint, TextSelectionMode selectionMode ) : void
anchorPoint VirtualSnapshotPoint
activePoint VirtualSnapshotPoint
selectionMode TextSelectionMode
리턴 void

SelectAndMoveCaret() 공개 메소드

public SelectAndMoveCaret ( VirtualSnapshotPoint anchorPoint, VirtualSnapshotPoint activePoint, TextSelectionMode selectionMode, EnsureSpanVisibleOptions scrollOptions ) : void
anchorPoint VirtualSnapshotPoint
activePoint VirtualSnapshotPoint
selectionMode TextSelectionMode
scrollOptions EnsureSpanVisibleOptions
리턴 void

SelectCurrentWord() 공개 메소드

public SelectCurrentWord ( ) : void
리턴 void

SelectEnclosing() 공개 메소드

public SelectEnclosing ( ) : void
리턴 void

SelectFirstChild() 공개 메소드

public SelectFirstChild ( ) : void
리턴 void

SelectLine() 공개 메소드

public SelectLine ( ITextViewLine viewLine, bool extendSelection ) : void
viewLine ITextViewLine
extendSelection bool
리턴 void

SelectNextSibling() 공개 메소드

public SelectNextSibling ( bool extendSelection ) : void
extendSelection bool
리턴 void

SelectPreviousSibling() 공개 메소드

public SelectPreviousSibling ( bool extendSelection ) : void
extendSelection bool
리턴 void

SetZoom() 공개 메소드

public SetZoom ( IWpfTextView wpfTextView, double newZoom ) : void
wpfTextView IWpfTextView
newZoom double
리턴 void

SwapCaretAndAnchor() 공개 메소드

public SwapCaretAndAnchor ( ) : void
리턴 void

Tabify() 공개 메소드

public Tabify ( ) : bool
리턴 bool

TextView_Closed() 공개 메소드

public TextView_Closed ( object sender, EventArgs e ) : void
sender object
e EventArgs
리턴 void

ToggleCase() 공개 메소드

public ToggleCase ( ) : bool
리턴 bool

TransposeCharacter() 공개 메소드

public TransposeCharacter ( ) : bool
리턴 bool

TransposeLine() 공개 메소드

public TransposeLine ( ) : bool
리턴 bool

TransposeWord() 공개 메소드

public TransposeWord ( ) : bool
리턴 bool

TrimTrailingWhiteSpace() 공개 메소드

public TrimTrailingWhiteSpace ( ) : bool
리턴 bool

Unindent() 공개 메소드

public Unindent ( ) : bool
리턴 bool

Untabify() 공개 메소드

public Untabify ( ) : bool
리턴 bool

ZoomIn() 공개 메소드

public ZoomIn ( ) : void
리턴 void

ZoomOut() 공개 메소드

public ZoomOut ( ) : void
리턴 void

ZoomTo() 공개 메소드

public ZoomTo ( double zoomLevel ) : void
zoomLevel double
리턴 void