IEditorOperations2 接口

定义

除了定义的操作外,还定义与编辑器相关的操作 IEditorOperations

public interface class IEditorOperations2 : Microsoft::VisualStudio::Text::Operations::IEditorOperations
public interface class IEditorOperations2 : Microsoft::VisualStudio::Text::Operations::IEditorOperations
__interface IEditorOperations2 : Microsoft::VisualStudio::Text::Operations::IEditorOperations
public interface IEditorOperations2 : Microsoft.VisualStudio.Text.Operations.IEditorOperations
type IEditorOperations2 = interface
    interface IEditorOperations
Public Interface IEditorOperations2
Implements IEditorOperations
派生
实现

属性

CanCut

确定是否可以进行剪切操作。

(继承自 IEditorOperations)
CanDelete

确定是否可以删除操作。

(继承自 IEditorOperations)
CanPaste

确定是否可以进行粘贴操作。

(继承自 IEditorOperations)
Options

获取特定于此视图的选项。

(继承自 IEditorOperations)
ProvisionalCompositionSpan

如果没有临时组合) ,则获取当前临时组合的范围 (null。

(继承自 IEditorOperations)
SelectedText

获取选定的文本。

(继承自 IEditorOperations)
TextView

获取用于处理这些操作的文本视图。

(继承自 IEditorOperations)

方法

AddAfterTextBufferChangePrimitive()

如果为,则将添加 ITextUndoPrimitive 到将在重 ITextUndoHistory 做时将所选内容还原到当前状态的缓冲区。

(继承自 IEditorOperations)
AddBeforeTextBufferChangePrimitive()

如果为,则将添加 ITextUndoPrimitiveITextUndoHistory 将在撤消时将选定内容还原到当前状态的缓冲区。

(继承自 IEditorOperations)
Backspace()

删除当前插入符号左侧的一个字符。

(继承自 IEditorOperations)
Capitalize()

将所选内容中的所有字符转换为小写,然后将所选内容中每个单词的第一个字符转换为大写。 如果选择为空,则将下一个字符变为大写。

(继承自 IEditorOperations)
ConvertSpacesToTabs()

如果所选内容为空,则将选定内容中的空格转换为制表符,或将插入符号所在的行。

(继承自 IEditorOperations)
ConvertTabsToSpaces()

如果所选内容为空,则将选项卡转换为选定内容中的空格,或在插入符号所在的行上。

(继承自 IEditorOperations)
CopySelection()

将选择的文本复制到剪贴板。

(继承自 IEditorOperations)
CutFullLine()

如果有选择,将删除所选内容所涉及的所有行(包括换行符),并将文本复制到剪贴板。 否则,删除插入符号所在的行,包括换行符,然后将文本复制到剪贴板。

(继承自 IEditorOperations)
CutSelection()

剪切所选文本。

(继承自 IEditorOperations)
DecreaseLineIndent()

如果选择了多行,则将从选定内容中的每行删除缩进,否则从插入符号所在的行中删除缩进。

(继承自 IEditorOperations)
Delete()

删除所选内容(如果有),或缓冲区中的下一个字符(如果存在)。

(继承自 IEditorOperations)
DeleteBlankLines()

删除所选内容中仅包含空格的所有空行或行。

(继承自 IEditorOperations)
DeleteFullLine()

如果有选择,将删除所选内容所涉及的所有行(包括换行符)。 否则,删除插入符号所在的行,包括换行符。

(继承自 IEditorOperations)
DeleteHorizontalWhiteSpace()

删除所选行的开头和结尾的所有空格,并剪裁内部空格。

(继承自 IEditorOperations)
DeleteToBeginningOfLine()

删除插入符号所在的行,直到上一个换行符和选择(如果存在)。

(继承自 IEditorOperations)
DeleteToEndOfLine()

删除插入符号所在的行,直到换行字符和选择(如果存在)。

(继承自 IEditorOperations)
DeleteWordToLeft()

删除当前插入符号位置左侧的单词。

(继承自 IEditorOperations)
DeleteWordToRight()

删除当前插入符号位置右侧的单词。

(继承自 IEditorOperations)
ExtendSelection(Int32)

将当前选择范围扩展到新的选定内容末尾。

(继承自 IEditorOperations)
GetWhitespaceForVirtualSpace(VirtualSnapshotPoint)

获取由空格字符组成的字符串,这些空格字符将被插入,以填充给定的 VirtualSnapshotPoint 和最接近相同行的之间的间距 SnapshotPoint

(继承自 IEditorOperations)
GotoLine(Int32)

将插入符号移动到指定行的开始处。

(继承自 IEditorOperations)
IncreaseLineIndent()

如果选择了多行,则将缩进添加到选定内容中的每一行,否则会将缩进添加到插入符号所在的行。

(继承自 IEditorOperations)
Indent()

如果有多行选择缩进所选内容,则在插入符号位置插入一个制表符。

(继承自 IEditorOperations)
InsertFile(String)

将磁盘上的文件插入文本缓冲区。

(继承自 IEditorOperations)
InsertNewLine()

在当前插入符号位置插入新行。

(继承自 IEditorOperations)
InsertProvisionalText(String)

在当前插入符号位置作为临时文本插入给定文本。

(继承自 IEditorOperations)
InsertText(String)

在当前插入符号位置插入给定文本。

(继承自 IEditorOperations)
InsertTextAsBox(String, VirtualSnapshotPoint, VirtualSnapshotPoint)

在当前插入符号位置作为框插入给定文本。

(继承自 IEditorOperations)
MakeLowercase()

将所选内容中的大写字母转换为小写字母。 如果选择为空,则将下一个字符变为小写。

(继承自 IEditorOperations)
MakeUppercase()

在选定内容中将小写字母转换为大写。 如果选择为空,则将下一个字符变为大写。

(继承自 IEditorOperations)
MoveCaret(ITextViewLine, Double, Boolean)

将插入符号移动到给定的中给定的 textLine horizontalOffset

(继承自 IEditorOperations)
MoveCurrentLineToBottom()

将当前行移动到视图的底部。

(继承自 IEditorOperations)
MoveCurrentLineToTop()

将当前行移到视图顶部。

(继承自 IEditorOperations)
MoveLineDown(Boolean)

将插入符号下移一行。

(继承自 IEditorOperations)
MoveLineUp(Boolean)

将插入符号上移一行。

(继承自 IEditorOperations)
MoveSelectedLinesDown()

将所选行在底部边上选定行的下方。 从文件底部向下移动会返回 true,但不会进行任何更改。 要移动并移动的折叠区域将保持折叠状态。 涉及 readonly 区域的移动将导致不进行任何更改。

MoveSelectedLinesUp()

将所选行向上移动边上上的选定内容。 从文件顶部向上移动将返回 true,但不会进行任何更改。 要移动并移动的折叠区域将保持折叠状态。 涉及 readonly 区域的移动将导致不进行任何更改。

MoveToBottomOfView(Boolean)

将插入符号移动到视图的最后一个完全可见的行。

(继承自 IEditorOperations)
MoveToEndOfDocument(Boolean)

将插入符号移动到文档末尾。

(继承自 IEditorOperations)
MoveToEndOfLine(Boolean)

将插入符号移动到行的末尾。

(继承自 IEditorOperations)
MoveToHome(Boolean)

将插入符号移动到行的第一个文本列;如果插入符号已经位于第一个文本列或没有文本,则将插入符号移动到行的第一列。

(继承自 IEditorOperations)
MoveToLastNonWhiteSpaceCharacter(Boolean)

将插入符号移动到行中最后一个非空白字符的紧前面。

(继承自 IEditorOperations)
MoveToNextCharacter(Boolean)

将插入符号移动到下一个字符。

(继承自 IEditorOperations)
MoveToNextWord(Boolean)

将插入符号移动到下一个单词。

(继承自 IEditorOperations)
MoveToPreviousCharacter(Boolean)

将插入符号移动到前一个字符。

(继承自 IEditorOperations)
MoveToPreviousWord(Boolean)

将插入符号移动到上一词。

(继承自 IEditorOperations)
MoveToStartOfDocument(Boolean)

将插入符号移动到文档开头。

(继承自 IEditorOperations)
MoveToStartOfLine(Boolean)

将插入符号移动到当前行中的第一列。

(继承自 IEditorOperations)
MoveToStartOfLineAfterWhiteSpace(Boolean)

将插入符号移动到所有空白后面的行的开头。

(继承自 IEditorOperations)
MoveToStartOfNextLineAfterWhiteSpace(Boolean)

将插入符号移动到所有空格后面的下一行的开头。

(继承自 IEditorOperations)
MoveToStartOfPreviousLineAfterWhiteSpace(Boolean)

将插入符号移动到所有空白之后的上一行的开头。

(继承自 IEditorOperations)
MoveToTopOfView(Boolean)

将插入符号移动到视图的第一个完全可见的行。

(继承自 IEditorOperations)
NormalizeLineEndings(String)

替换与不匹配的所有行尾 replacement replacement

(继承自 IEditorOperations)
OpenLineAbove()

在插入符号所在的行的开头插入新行。

(继承自 IEditorOperations)
OpenLineBelow()

在插入符号所在的行的末尾插入新行。

(继承自 IEditorOperations)
PageDown(Boolean)

将插入符号下移一页。

(继承自 IEditorOperations)
PageUp(Boolean)

将插入符号上移一页。

(继承自 IEditorOperations)
Paste()

将剪贴板中的文本粘贴到文本缓冲区。

(继承自 IEditorOperations)
ReplaceAllMatches(String, String, Boolean, Boolean, Boolean)

替换给定字符串的所有匹配匹配项。

(继承自 IEditorOperations)
ReplaceSelection(String)

将所选文本替换为新文本。

(继承自 IEditorOperations)
ReplaceText(Span, String)

将给定范围中的文本替换为新文本。

(继承自 IEditorOperations)
ResetSelection()

重置文本中的任何选定内容。

(继承自 IEditorOperations)
ScrollColumnLeft()

将视图向左滚动一列。

(继承自 IEditorOperations)
ScrollColumnRight()

将视图向右滚动一列。

(继承自 IEditorOperations)
ScrollDownAndMoveCaretIfNecessary()

将视图向下滚动一行,并将脱字号重定位到视图中第一个完全可见的行(如果它滚动到页面上)。

(继承自 IEditorOperations)
ScrollLineBottom()

滚动插入符号所在的行,使其成为视图中的最后一个完全可见的行。

(继承自 IEditorOperations)
ScrollLineCenter()

滚动插入符号所在的行,使其在视图中居中。

(继承自 IEditorOperations)
ScrollLineTop()

在插入符号所在的 s 行滚动,使其成为视图中的第一个完全可见的行。

(继承自 IEditorOperations)
ScrollPageDown()

将视图向下滚动页面而不移动插入符号。

(继承自 IEditorOperations)
ScrollPageUp()

将视图向上滚动一页而不移动插入符号。

(继承自 IEditorOperations)
ScrollUpAndMoveCaretIfNecessary()

将视图向上滚动一行,并将脱字号重新定位到视图中的最后一个完全可见的行(如果它滚动到页面上)。

(继承自 IEditorOperations)
SelectAll()

选择所有文本。

(继承自 IEditorOperations)
SelectAndMoveCaret(VirtualSnapshotPoint, VirtualSnapshotPoint)

从给定的定位点选择到活动点,将插入符号移动到选定内容的新活动点。 选定范围将变为可见。

(继承自 IEditorOperations)
SelectAndMoveCaret(VirtualSnapshotPoint, VirtualSnapshotPoint, TextSelectionMode)

从给定的定位点选择到活动点,将插入符号移动到选定内容的新活动点。 此外,请确保选择处于给定的选择模式,并使所选范围可见。

(继承自 IEditorOperations)
SelectAndMoveCaret(VirtualSnapshotPoint, VirtualSnapshotPoint, TextSelectionMode, Nullable<EnsureSpanVisibleOptions>)

从给定的定位点选择到活动点,将插入符号移动到选定内容的新活动点。 此外,请确保选择处于给定的选择模式,并使所选范围可见。

(继承自 IEditorOperations)
SelectCurrentWord()

选择当前单词。

(继承自 IEditorOperations)
SelectEnclosing()

选择封闭父项。

(继承自 IEditorOperations)
SelectFirstChild()

选择第一个子级。

(继承自 IEditorOperations)
SelectLine(ITextViewLine, Boolean)

选择给定行。

(继承自 IEditorOperations)
SelectNextSibling(Boolean)

选择下一个同级。

(继承自 IEditorOperations)
SelectPreviousSibling(Boolean)

选择上一个同级。

(继承自 IEditorOperations)
SwapCaretAndAnchor()

将插入符号从其当前位置调换到选定内容的另一端。

(继承自 IEditorOperations)
Tabify()

将所选内容和插入符号触及的所有行的前导空格转换为制表符。

(继承自 IEditorOperations)
ToggleCase()

切换所选内容中每个字符的大小写。 如果选择为空,则更改下一个字符的大小写。

(继承自 IEditorOperations)
TransposeCharacter()

转置光标处的字符和下一个字符。 当光标位于行的开头时,转置前两个字符。 如果光标位于行尾,则调换最后两个字符。

(继承自 IEditorOperations)
TransposeLine()

将包含光标的行转到下一行。 当光标位于最后一行时,转置最后两行。

(继承自 IEditorOperations)
TransposeWord()

将当前单词转到下一个单词。 空格和标点符号不被视为单词。

(继承自 IEditorOperations)
Unindent()

如果有多行选择,缩进选择。 如果选择了单个行,则从选定内容的开始位置开始,最多可删除选项卡上的可用空间。 如果未选择任何内容,则从插入符号位置之前最多删除一个选项卡上的可用空间。

(继承自 IEditorOperations)
Untabify()

将所选内容和插入符号所涉及的所有行的前导空格转换为空格。

(继承自 IEditorOperations)
ZoomIn()

按10% 的比例因子放大文本视图

(继承自 IEditorOperations)
ZoomOut()

按10% 的比例因子缩小文本视图

(继承自 IEditorOperations)
ZoomTo(Double)

将给定的 zoomLevel 应用到文本视图

(继承自 IEditorOperations)

适用于