Lezen in het Engels

Delen via


ConsoleEditor Class

Definition

Console Editor

C++
public ref class ConsoleEditor : Microsoft::PowerShell::Host::ISE::ISEEditor, IDisposable
Inheritance
ConsoleEditor
Implements

Properties

CanGoToMatch

Gets a value indicating whether the caret is at a charcter with a matching character to go to

(Inherited from ISEEditor)
CaretColumn

Gets the line column containing the caret

(Inherited from ISEEditor)
CaretLine

Gets the line number containing the caret.

(Inherited from ISEEditor)
CaretLineText

Gets the text of the line containing the caret

(Inherited from ISEEditor)
InputText

Gets or sets the console input text

LineCount

Gets the total line count.

(Inherited from ISEEditor)
SelectedText

Gets the editor's selected text

(Inherited from ISEEditor)
Text

Gets and sets the editor's text

Methods

AddCommandToContextMenu(ICommand, String)

Adds a command to the context menu

(Inherited from ISEEditor)
Clear()

Clears the text in the output editor.

Dispose()

Dispose method in IDisposeable

EnsureSpanVisible(SnapshotSpan)

Calls this.EditorViewHost.TextView.ViewScroller.EnsureSpanVisible but only after ViewportWidth is not 0 To avoid an issue trying to set the position just after the editor is loaded miscalculating because the ViewPort is 0

(Inherited from ISEEditor)
EnsureVisible(Int32)

Scrolls the editor so that the line corresponding to lineNumber is visible.

(Inherited from ISEEditor)
Finalize()

Finalizes an instance of the ConsoleEditor class

Focus()

Sets the focus to the editor.

(Inherited from ISEEditor)
GetLineLength(Int32)

Gets the line length for the line at lineNumber.

(Inherited from ISEEditor)
GetLineStartPosition(Int32)

Gets the position for the start of the line containing bufferPosition

GoToMatch()

Goes to the character matching the character in the current caret position, if there is a matching character

(Inherited from ISEEditor)
InsertText(String)

Replaces the selection with text or inserts text at the current caret position.

(Inherited from ISEEditor)
Select(Int32, Int32, Int32, Int32)

Selects the region from startLine, startColumn to endLine, endColumn.

(Inherited from ISEEditor)
SelectCaretLine()

Selects the line containing the caret

(Inherited from ISEEditor)
SetCaretPosition(Int32, Int32)

Sets the caret position at lineNumber and columnNumber.

(Inherited from ISEEditor)
ToggleOutliningExpansion()

Toggles all Outlining (region) Expansion

(Inherited from ISEEditor)

Events

PropertyChanged

Used to notify property changes.

(Inherited from ISEEditor)

Applies to

Product Versies
Windows PowerShell 5.1.0.0