Next: 3.4 Other Commands Up: 3.3 Object related Commands Previous: 3.3.5 Manipulating Objects Index

## 3.3.6 Handling Text Frames

DeleteText([``name''])
  Deletes the Text of the Textframe ``name''. If there is some Text selected, this Text will be deleted. If ``name'' is not given the currently selected Item is used.
GetAllText([``name''])
  Returns the Text of the Textframe ``name'' and of all Textframes which are linked with this Frame. If this Textframe has some Text selected, this Text is returned. If ``name'' is not given the currently selected Item is used.
GetColumnGap([``name''])
  Gets the Column Gap of the Text Frame ``name'' expressed in Points. If ``name'' is not given the currently selected Item is used.
GetColumns([``name''])
  Gets the number of Columns of the Text Frame ``name''. If ``name'' is not given the currently selected Item is used.
GetFont([``name''])
  Returns the Font for the Textframe ``name''. If this Textframe has some Text selected the Value assigned to the first Character of the Selection is returned. If ``name'' is not given the currently selected Item is used.
GetFontSize([``name''])
  Returns the Fontsize for the Textframe ``name''. If this Textframe has some Text selected the Value assigned to the first Character of the Selection is returned. If ``name'' is not given the currently selected Item is used.
GetLineSpacing([``name''])
  Gets the Linespacing of the Text Frame ``name'' expressed in Points. If ``name'' is not given the currently selected Item is used.
GetText([``name''])
  Returns the Text of the Textframe ``name''. If this Textframe has some Text selected, this Text is returned. If ``name'' is not given the currently selected Item is used.
GetTextColor([``name''])
  Returns the name of the Text Color of the Object ``name''. If this Textframe has some Text selected the Value assigned to the first Character of the Selection is returned. If ``name'' is not given the currently selected Item is used.
GetTextLength([``name''])
  Returns the Length of the Text in the Textframe ``name''. If ``name'' is not given the currently selected Item is used.
GetTextShade([``name''])
  Returns the shading Value of the Text Color of the Object ``name''. If this Textframe has some Text selected the Value assigned to the first Character of the Selection is returned. If ``name'' is not given the currently selected Item is used.
InsertText(``text'', pos, [``name''])
  Inserts the Text ``text'' at the Position ``pos'' into the Textframe The first Character has an Index of 0. ``name'' If ``name'' is not given the currently selected Item is used.
SelectText(start, count, [``name''])
  Selects ``count'' Characters Text of the Textframe ``name'' starting from the Character ``start''. Character Counting starts at 0. If ``count'' is zero, any Text Selection will be cleared. If ``name'' is not given the currently selected Item is used.
SetColumns(nr, [``name''])
  Sets the number of Columns of the Text Frame ``name'' to the Value ``nr''. If ``name'' is not given the currently selected Item is used.
SetColumnGap(size, [``name''])
  Sets the Column Gap of the Text Frame ``name'' to the Value ``size''. If ``name'' is not given the currently selected Item is used.
SetFont(''font'', [``name''])
  Sets the Font of the Text Frame ``name'' to ``font'', if there is some Text selected only the selected Text is changed. If ``name'' is not given the currently selected Item is used.
SetFontSize(size, [``name''])
  Sets the Fontsize of the Text Frame ``name'' to the Pointsize ``size'', if there is some Text selected only the selected Text is changed. ``size'' must be in the Range 1 to 512. If ``name'' is not given the currently selected Item is used.
SetLineSpacing(size, [``name''])
  Sets the Linespacing of the Text Frame ``name'' to the Pointsize ``size''. If ``name'' is not given the currently selected Item is used.
SetText(''text'', [``name''])
  Sets the Text of the Text Frame ``name'' to the Text of the String ``text''. If ``name'' is not given the currently selected Item is used.
SetTextAlignment(align, [``name''])
  Sets the Textalignment of the Text Frame ``name'' to the specified Alignment. If ``name'' is not given the currently selected Item is used. ``align'' can have the following values:

> 0 = Left Aligned
> 1 = Centered
> 2 = Right Aligned
> 3 = Forced

SetTextColor(''color'', [``name''])
  Sets the Text Color of the Object ``name'' to the Color ``color'', if there is some Text selected only the selected Text is changed. If ``name'' is not given the currently selected Item is used.
SetTextShade(shade, [``name''])
  Sets the shading of the Text Color of the Object ``name'' to ``shade'', if there is some Text selected only the selected Text is changed. ``shade'' must be an Integer Value in the range from 0 (lightest) to 100 (full Color intensity). If ``name'' is not given the currently selected Item is used.

Next: 3.4 Other Commands Up: 3.3 Object related Commands Previous: 3.3.5 Manipulating Objects Index