ITextEditor
Interfaces
IListConfiguration
A structure defining layout settings and format of lists in text elements.
Properties
bulletChar
bulletChar: string;
The bulleted list marker that will be used when creating lists through the Top toolbar. The default value is "•" (0x8226).
firstLineIndent
firstLineIndent: number;
The distance between the bullet and text in the first line of a list item, in points. The default value is -20.
levelIndent
levelIndent: number;
The offset of each next level of the list relative to the previous level, in points. The default value is 30.
listIndent
listIndent: number;
The distance between the left edge of the text element and the leftmost line of list items in this text element, in points. The default value is 30.
maxLevel
maxLevel: number;
The maximum number of levels in multilevel lists. The default value is 3.
numberingFormat
numberingFormat: NumberingFormatType;
The numbered list marker format, one of "none", "number", "lowerLetter", "upperLetter", "lowerRoman", or "upperRoman". If "none", then list items will represent paragraphs without numbers. This marker format will be used when creating lists through the Top toolbar. The default value is "number".
tabOffset
tabOffset: number;
The offset that will appear before text on the first line if this text may overlap the bullet, in points. If this value is not enough to create an indent, it will be added again. The default value is 30.
ITextEditor
Executes a command of the specified type.
Extends
Properties
canRedo
canRedo: boolean;
Indicates if the action can be redone.
canUndo
canUndo: boolean;
Indicates if the action can be undone.
disableDrawBaseline
disableDrawBaseline: boolean;
editorInitialized
editorInitialized: EventObject<void>;
Editor initialization event.
frameChanged
frameChanged: EventObject<RectangleF>;
Text frame change event.
Remarks
Reports the currently text frame.
highlightInEditingModeEnabled
highlightInEditingModeEnabled: boolean;
Indicates if the editor has to be highlighted when in editing mode.
invalidCharEntered
invalidCharEntered: EventObject<void>;
Invalid character input event.
isActive
isActive: boolean;
Indicates if the editor is in editing mode.
isReady
isReady: boolean;
Indicates if the editor is initialized and ready to work.
redrawActiveTextInEditMode
redrawActiveTextInEditMode: boolean;
Indicates if the editor needs to redraw ActiveText when it is edited.
styleChanged
styleChanged: EventObject<void>;
Character or paragraph style change event.
textLimits
textLimits: ITextLimits;
Get current text limits.
textLimitsViolationEvent
textLimitsViolationEvent: EventObject<ILimitsViolationEventData>;
textMetrics
textMetrics: ITextMetrics;
Get current text data: characters count, paragraphs count, current paragraph characters count.
textMetricsChangedEvent
textMetricsChangedEvent: EventObject<ITextMetrics>;
Methods
dispose()
dispose(): void;
Disposes text editor when its no longer needed.
Returns
void
enterEditMode()
enterEditMode(point): void;
Enters the editing mode.
Parameters
| Parameter | Type | Description |
|---|---|---|
point | IPoint | cursor point. |
Returns
void
executeCommand()
Call Signature
executeCommand(type): void;
Parameters
| Parameter | Type |
|---|---|
type | undo |
Returns
void
Inherited from
Call Signature
executeCommand(type): void;
Parameters
| Parameter | Type |
|---|---|
type | redo |
Returns
void
Inherited from
Call Signature
executeCommand(type, data): void;
Parameters
| Parameter | Type |
|---|---|
type | setCursor |
data | SetCursorCmdData |
Returns
void
Inherited from
Call Signature
executeCommand(type, data): void;
Parameters
| Parameter | Type |
|---|---|
type | moveCursor |
data | MoveCursorCmdData |
Returns
void
Inherited from
Call Signature
executeCommand(type, data): void;
Parameters
| Parameter | Type |
|---|---|
type | setSelection |
data | SetSelectionCmdData |
Returns
void
Inherited from
Call Signature
executeCommand(type, data): void;
Parameters
| Parameter | Type |
|---|---|
type | selectWord |
data | SelectWordCmdData |
Returns
void
Inherited from
Call Signature
executeCommand(type, data): void;
Parameters
| Parameter | Type |
|---|---|
type | selectParagraph |
data | SelectParagraphCmdData |
Returns
void
Inherited from
Call Signature
executeCommand(type): void;
Parameters
| Parameter | Type |
|---|---|
type | selectAllText |
Returns
void
Inherited from
Call Signature
executeCommand(type, data): void;
Parameters
| Parameter | Type |
|---|---|
type | insertNewLine |
data | InsertNewLineCmdData |
Returns
void
Inherited from
Call Signature
executeCommand(type, data): void;
Parameters
| Parameter | Type |
|---|---|
type | insertLineBrake |
data | InsertLineBrakeCmdData |
Returns
void
Inherited from
Call Signature
executeCommand(type): void;
Parameters
| Parameter | Type |
|---|---|
type | insertTab |
Returns
void
Inherited from
Call Signature
executeCommand(type, data): void;
Parameters
| Parameter | Type |
|---|---|
type | insertText |
data | InsertTextCmdData |
Returns
void
Inherited from
Call Signature
executeCommand(type, data): void;
Parameters
| Parameter | Type |
|---|---|
type | deleteText |
data | DeleteTextCmdData |
Returns
void
Inherited from
Call Signature
executeCommand(type): void;
Parameters
| Parameter | Type |
|---|---|
type | copyToClipboard |
Returns
void
Inherited from
Call Signature
executeCommand(type): void;
Parameters
| Parameter | Type |
|---|---|
type | clearFormatting |
Returns
void
Inherited from
Call Signature
executeCommand(type, data): void;
Parameters
| Parameter | Type |
|---|---|
type | setCharStyle |
data | SetCharStyleCmdData |
Returns
void
Inherited from
Call Signature
executeCommand(type, data): void;
Parameters
| Parameter | Type |
|---|---|
type | setParagraphStyle |
data | SetParagraphStyleCmdData |
Returns
void
Inherited from
Call Signature
executeCommand(type): void;
Parameters
| Parameter | Type |
|---|---|
type | setCapitalLetters |
Returns
void
Inherited from
Call Signature
executeCommand(type): void;
Parameters
| Parameter | Type |
|---|---|
type | setFontBold |
Returns
void
Inherited from
Call Signature
executeCommand(type): void;