Interface ITextRange

Hierarchy

Index

Properties

Methods

Properties

public character: string

public characterFormat: ITextCharacterFormat

public endPosition: number

public formattedText: ITextRange

public gravity: RangeGravity

public length: number

public link: string

public paragraphFormat: ITextParagraphFormat

public startPosition: number

public storyLength: number

public text: string

Methods

public canPaste(format: number): boolean

Parameters

  • format: number

Returns

boolean

public changeCase(value: LetterCase)

Parameters

public collapse(value: boolean)

Parameters

  • value: boolean

public copy()

public cut()

public delete_(unit: TextRangeUnit, count: number): number

Parameters

Returns

number

public endOf(unit: TextRangeUnit, extend: boolean): number

Parameters

Returns

number

public expand(unit: TextRangeUnit): number

Parameters

Returns

number

public findText(value: string, scanLength: number, options: FindOptions): number

Parameters

  • value: string
  • scanLength: number
  • options: FindOptions

Returns

number

public getCharacterUtf32(offset: number): number

Parameters

  • offset: number

Returns

number

public getClone(): ITextRange

Returns

ITextRange

public getIndex(unit: TextRangeUnit): number

Parameters

Returns

number

public getPoint(horizontalAlign: HorizontalCharacterAlignment, verticalAlign: VerticalCharacterAlignment, options: PointOptions): Point

Parameters

Returns

Point

public getRect(options: PointOptions): { rect: Windows.Foundation.Rect; hit: number; }

Parameters

Returns

{ rect: Windows.Foundation.Rect; hit: number; }

public getText(options: TextGetOptions): string

Parameters

Returns

string

public getTextViaStream(options: TextGetOptions, value: IRandomAccessStream)

Parameters

public inRange(range: ITextRange): boolean

Parameters

Returns

boolean

public inStory(range: ITextRange): boolean

Parameters

Returns

boolean

public insertImage(width: number, height: number, ascent: number, verticalAlign: VerticalCharacterAlignment, alternateText: string, value: IRandomAccessStream)

Parameters

public isEqual(range: ITextRange): boolean

Parameters

Returns

boolean

public matchSelection()

public move(unit: TextRangeUnit, count: number): number

Parameters

Returns

number

public moveEnd(unit: TextRangeUnit, count: number): number

Parameters

Returns

number

public moveStart(unit: TextRangeUnit, count: number): number

Parameters

Returns

number

public paste(format: number)

Parameters

  • format: number

public scrollIntoView(value: PointOptions)

Parameters

public setIndex(unit: TextRangeUnit, index: number, extend: boolean)

Parameters

public setPoint(point: Point, options: PointOptions, extend: boolean)

Parameters

public setRange(startPosition: number, endPosition: number)

Parameters

  • startPosition: number
  • endPosition: number

public setText(options: TextSetOptions, value: string)

Parameters

public setTextViaStream(options: TextSetOptions, value: IRandomAccessStream)

Parameters

public startOf(unit: TextRangeUnit, extend: boolean): number

Parameters

Returns

number