TextFormPrBase

type TextFormPrBase = object

Description

Specific text field properties.

Properties

combbooleandefault: null

Specifies if the text field should be a comb of characters with the same cell width. The maximum number of characters must be set to a positive value.

maxCharactersnumberdefault: null

The maximum number of characters in the text field.

cellWidthnumberdefault: null

The cell width for each character measured in millimeters. If this parameter is not specified or equal to 0 or less, then the width will be set automatically.

multiLinebooleandefault: null

Specifies if the current fixed size text field is multiline or not.

autoFitbooleandefault: null

Specifies if the text field content should be autofit, i.e. whether the font size adjusts to the size of the fixed size form.

Try It

var oTextFormPrBase = {"comb": true, "maxCharacters": 10, "cellWidth": 3, "multiLine": false, "autoFit": false};
var oTextForm = Api.CreateTextForm(oTextFormPrBase);

Get Help

  • If you have any questions about ONLYOFFICE Docs, try the FAQ section first.
  • You can request a feature or report a bug by posting an issue on GitHub.
  • You can also ask our developers on ONLYOFFICE forum (registration required).