共用方式為


PSToken Class

Definition

This is public class for representing a powershell token.

public ref class PSToken sealed
public sealed class PSToken
type PSToken = class
Public NotInheritable Class PSToken
Inheritance
PSToken

Remarks

There is already an internal class Token for representing the token.

This class wraps the internal Token class for providing limited information to syntax editor.

Properties

Content

Resulting text for the token.

EndColumn

Position of token end in end line.

EndLine

Line number of token end.

Length

Offset of token end in script buffer.

Start

Offset of token start in script buffer.

StartColumn

Position of token start in start line.

StartLine

Line number of token start.

Type

Token type.

Methods

GetPSTokenType(Token)

Map a V3 token to a V2 PSTokenType.

Applies to