Compartir a través de


ScriptExtent Class

Definition

A script extent used to customize the display of error location information.

public ref class ScriptExtent sealed : System::Management::Automation::Language::IScriptExtent
public sealed class ScriptExtent : System.Management.Automation.Language.IScriptExtent
type ScriptExtent = class
    interface IScriptExtent
Public NotInheritable Class ScriptExtent
Implements IScriptExtent
Inheritance
ScriptExtent
Implements

Constructors

ScriptExtent(ScriptPosition, ScriptPosition)

Creates a new ScriptExtent class.

Properties

EndColumnNumber

The column number at the end of the extent, with the value 1 being the first column.

EndLineNumber

The line number at the end of the extent, with the value 1 being the first line.

EndOffset

The end offset (always returns 0)

EndScriptPosition

The end position of the extent. This position is actually 1 character past the end of the extent.

File

The name of the file, or if the script did not come from a file, then null.

StartColumnNumber

The column number at the beginning of the extent, with the value 1 being the first column.

StartLineNumber

The line number at the beginning of the extent, with the value 1 being the first line.

StartOffset

The start offset (always returns 0)

StartScriptPosition

The starting position of the extent.

Text

The script text that the extent includes.

Applies to