VTUtility.GetEscapeSequence Method
Definition
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.
Overloads
GetEscapeSequence(ConsoleColor) |
Return the VT escape sequence for a ConsoleColor. |
GetEscapeSequence(VTUtility+VT) |
Return the VT escape sequence for a supported VT enum value. |
GetEscapeSequence(ConsoleColor)
Return the VT escape sequence for a ConsoleColor.
public static string GetEscapeSequence (ConsoleColor color);
static member GetEscapeSequence : ConsoleColor -> string
Public Shared Function GetEscapeSequence (color As ConsoleColor) As String
Parameters
- color
- ConsoleColor
The ConsoleColor to return the equivalent VT escape sequence.
Returns
The requested VT escape sequence.
Applies to
GetEscapeSequence(VTUtility+VT)
Return the VT escape sequence for a supported VT enum value.
public static string GetEscapeSequence (System.Management.Automation.VTUtility.VT vt);
static member GetEscapeSequence : System.Management.Automation.VTUtility.VT -> string
Public Shared Function GetEscapeSequence (vt As VTUtility.VT) As String
Parameters
- vt
- VTUtility.VT
The VT code to return the VT escape sequence.
Returns
The requested VT escape sequence.