Interface IRangeStatic

Index

Construct signatures

Methods

Construct signatures

constructor(point1: IPoint, point2: IPoint): IRange

Parameters

Returns

IRange

constructor(point1: Array<number>, point2: IPoint): IRange

Parameters

  • point1: Array<number>
  • point2: IPoint

Returns

IRange

constructor(point1: { row: number; column: number; }, point2: IPoint): IRange

Parameters

  • point1: { row: number; column: number; }
  • point2: IPoint

Returns

IRange

constructor(point1: IPoint, point2: Array<number>): IRange

Parameters

  • point1: IPoint
  • point2: Array<number>

Returns

IRange

constructor(point1: Array<number>, point2: Array<number>): IRange

Parameters

  • point1: Array<number>
  • point2: Array<number>

Returns

IRange

constructor(point1: { row: number; column: number; }, point2: Array<number>): IRange

Parameters

  • point1: { row: number; column: number; }
  • point2: Array<number>

Returns

IRange

constructor(point1: IPoint, point2: { row: number; column: number; }): IRange

Parameters

  • point1: IPoint
  • point2: { row: number; column: number; }

Returns

IRange

constructor(point1: Array<number>, point2: { row: number; column: number; }): IRange

Parameters

  • point1: Array<number>
  • point2: { row: number; column: number; }

Returns

IRange

constructor(point1: { row: number; column: number; }, point2: { row: number; column: number; }): IRange

Parameters

  • point1: { row: number; column: number; }
  • point2: { row: number; column: number; }

Returns

IRange

Methods

public deserialize(array: IPoint[]): IRange

Parameters

Returns

IRange

public fromObject(object: IPoint[]): IRange

Parameters

Returns

IRange

public fromObject(object: IRange, copy?: boolean): IRange

Parameters

  • object: IRange
  • copy?: boolean optional

Returns

IRange

public fromObject(object: { start: TextBuffer.IPoint; end: TextBuffer.IPoint; }): IRange

Parameters

  • object: { start: TextBuffer.IPoint; end: TextBuffer.IPoint; }

Returns

IRange

public fromObject(object: { start: number[]; end: TextBuffer.IPoint; }): IRange

Parameters

  • object: { start: number[]; end: TextBuffer.IPoint; }

Returns

IRange

public fromObject(object: { start: { row: number; column: number; }; end: TextBuffer.IPoint; }): IRange

Parameters

  • object: { start: { row: number; column: number; }; end: TextBuffer.IPoint; }

Returns

IRange

public fromObject(object: { start: TextBuffer.IPoint; end: number[]; }): IRange

Parameters

  • object: { start: TextBuffer.IPoint; end: number[]; }

Returns

IRange

public fromObject(object: { start: number[]; end: number[]; }): IRange

Parameters

  • object: { start: number[]; end: number[]; }

Returns

IRange

public fromObject(object: { start: { row: number; column: number; }; end: number[]; }): IRange

Parameters

  • object: { start: { row: number; column: number; }; end: number[]; }

Returns

IRange

public fromObject(object: { start: TextBuffer.IPoint; end: { row: number; column: number; }; }): IRange

Parameters

  • object: { start: TextBuffer.IPoint; end: { row: number; column: number; }; }

Returns

IRange

public fromObject(object: { start: number[]; end: { row: number; column: number; }; }): IRange

Parameters

  • object: { start: number[]; end: { row: number; column: number; }; }

Returns

IRange

public fromObject(object: { start: { row: number; column: number; }; end: { row: number; column: number; }; }): IRange

Parameters

  • object: { start: { row: number; column: number; }; end: { row: number; column: number; }; }

Returns

IRange

public fromPointWithDelta(startPoint: IPoint, rowDelta: number, columnDelta: number): IRange

Parameters

  • startPoint: IPoint
  • rowDelta: number
  • columnDelta: number

Returns

IRange

public fromPointWithDelta(startPoint: Array<number>, rowDelta: number, columnDelta: number): IRange

Parameters

  • startPoint: Array<number>
  • rowDelta: number
  • columnDelta: number

Returns

IRange

public fromPointWithDelta(startPoint: { row: number; column: number; }, rowDelta: number, columnDelta: number): IRange

Parameters

  • startPoint: { row: number; column: number; }
  • rowDelta: number
  • columnDelta: number

Returns

IRange

public fromText(point: IPoint, text: string): IRange

Parameters

Returns

IRange

public fromText(point: Array<number>, text: string): IRange

Parameters

  • point: Array<number>
  • text: string

Returns

IRange

public fromText(point: { row: number; column: number; }, text: string): IRange

Parameters

  • point: { row: number; column: number; }
  • text: string

Returns

IRange

public fromText(text: string): IRange

Parameters

  • text: string

Returns

IRange