ConsoleEditor Class
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Console Editor
public ref class ConsoleEditor : Microsoft::PowerShell::Host::ISE::ISEEditor, IDisposable
public class ConsoleEditor : Microsoft.PowerShell.Host.ISE.ISEEditor, IDisposable
type ConsoleEditor = class
inherit ISEEditor
interface IDisposable
Public Class ConsoleEditor
Inherits ISEEditor
Implements IDisposable
- Inheritance
- Implements
Can |
Gets a value indicating whether the caret is at a charcter with a matching character to go to (Inherited from ISEEditor) |
Caret |
Gets the line column containing the caret (Inherited from ISEEditor) |
Caret |
Gets the line number containing the caret. (Inherited from ISEEditor) |
Caret |
Gets the text of the line containing the caret (Inherited from ISEEditor) |
Input |
Gets or sets the console input text |
Line |
Gets the total line count. (Inherited from ISEEditor) |
Selected |
Gets the editor's selected text (Inherited from ISEEditor) |
Text |
Gets and sets the editor's text |
Add |
Adds a command to the context menu (Inherited from ISEEditor) |
Clear() |
Clears the text in the output editor. |
Dispose() |
Dispose method in IDisposeable |
Ensure |
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) |
Ensure |
Scrolls the editor so that the line corresponding to |
Finalize() |
Finalizes an instance of the ConsoleEditor class |
Focus() |
Sets the focus to the editor. (Inherited from ISEEditor) |
Get |
Gets the line length for the line at |
Get |
Gets the position for the start of the line containing |
Go |
Goes to the character matching the character in the current caret position, if there is a matching character (Inherited from ISEEditor) |
Insert |
Replaces the selection with |
Select(Int32, Int32, Int32, Int32) |
Selects the region from |
Select |
Selects the line containing the caret (Inherited from ISEEditor) |
Set |
Sets the caret position at |
Toggle |
Toggles all Outlining (region) Expansion (Inherited from ISEEditor) |
Property |
Used to notify property changes. (Inherited from ISEEditor) |
Product | Versies |
---|---|
Windows PowerShell | 5.1.0.0 |