Interface ITextDocument

Index

Properties

Methods

Properties

public caretType: CaretType

public defaultTabStop: number

public selection: ITextSelection

public undoLimit: number

Methods

public applyDisplayUpdates(): number

Returns

number

public batchDisplayUpdates(): number

Returns

number

public beginUndoGroup()

public canCopy(): boolean

Returns

boolean

public canPaste(): boolean

Returns

boolean

public canRedo(): boolean

Returns

boolean

public canUndo(): boolean

Returns

boolean

public endUndoGroup()

public getDefaultCharacterFormat(): ITextCharacterFormat

Returns

ITextCharacterFormat

public getDefaultParagraphFormat(): ITextParagraphFormat

Returns

ITextParagraphFormat

public getRange(startPosition: number, endPosition: number): ITextRange

Parameters

  • startPosition: number
  • endPosition: number

Returns

ITextRange

public getRangeFromPoint(point: Point, options: PointOptions): ITextRange

Parameters

Returns

ITextRange

public getText(options: TextGetOptions): string

Parameters

Returns

string

public loadFromStream(options: TextSetOptions, value: IRandomAccessStream)

Parameters

public redo()

public saveToStream(options: TextGetOptions, value: IRandomAccessStream)

Parameters

public setDefaultCharacterFormat(value: ITextCharacterFormat)

Parameters

public setDefaultParagraphFormat(value: ITextParagraphFormat)

Parameters

public setText(options: TextSetOptions, value: string)

Parameters

public undo()