Search Results for

    Show / Hide Table of Contents

    Class TextRange

    TextRange defines a region within a row / column based text file. All instances of this class are immutable. Indecies are one-based.

    Inheritance
    System.Object
    TextRange
    Namespace: ABB.Robotics.Controllers.RapidDomain
    Assembly: ABB.Robotics.Controllers.PC.dll
    Syntax
    public class TextRange

    Constructors

    TextRange(Location, Location)

    Creates a new instance of the TextRange class.

    Declaration
    public TextRange(Location begin, Location end)
    Parameters
    Type Name Description
    Location begin

    Beginning of range.

    Location end

    End of range.

    TextRange(Int32)

    Creates a new instance of the TextRange class for a single row.

    Declaration
    public TextRange(int row)
    Parameters
    Type Name Description
    System.Int32 row

    TextRange(Int32, Int32)

    Creates a new instance of the TextRange class for a number of rows.

    Declaration
    public TextRange(int startRow, int endRow)
    Parameters
    Type Name Description
    System.Int32 startRow

    Start row.

    System.Int32 endRow

    End row.

    TextRange(Int32, Int32, Int32, Int32)

    Creates a new instance of the TextRange class.

    Declaration
    public TextRange(int startRow, int startColumn, int endRow, int endColumn)
    Parameters
    Type Name Description
    System.Int32 startRow

    Start row.

    System.Int32 startColumn

    Start column.

    System.Int32 endRow

    End row.

    System.Int32 endColumn

    End column.

    Properties

    Begin

    Gets the Location for the beginning of the range.

    Declaration
    public Location Begin { get; }
    Property Value
    Type Description
    Location

    Empty

    Empty pattern TextRange object.

    Declaration
    public static TextRange Empty { get; }
    Property Value
    Type Description
    TextRange

    End

    Gets the Location for the end of the range.

    Declaration
    public Location End { get; }
    Property Value
    Type Description
    Location

    EndOfLine

    Gets the end of line index.

    Declaration
    public static int EndOfLine { get; }
    Property Value
    Type Description
    System.Int32

    StartIndex

    Gets the start index.

    Declaration
    public static int StartIndex { get; }
    Property Value
    Type Description
    System.Int32
    In This Article
    Back to top Copyright © 2025 ABB