evCreate API 5.7 Help

EvTextAttributes Interface

The EvTextAttributes TS interface specifies a blueprint of a JS object that defines the text content and formatting of a given text item.

Properties

An EvTextAttributes object has the following properties:

alignment: EvTextAlignment;

An EvTextAlignment object, the horizontal and vertical alignment of the contained text between the bounding box margins of the given text item.

font: EvFontStyle;

An EvFontStyle object, the font, color, and formatting of the text contained in the given text item.

text: string;

A string, a text contained in the given text item.

Examples

TS

{ alignment: { horizontal: EvHTextAlignment.Full, vertical: EvVTextAlignment.Center }, font: { bold: false, color: { data: { color: "#B3282E" }, id: 42, type: EvFillType.Color }, italic: true, name: "roboto", shadow: false, size: 24, strikethrough: false, underline: true }, text: "Hello, World!" }

JS

{ alignment: { horizontal: "full", vertical: "center" }, font: { bold: false, color: { data: { color: "#B3282E" }, id: 42, type: "color" }, italic: true, name: "roboto", shadow: false, size: 24, strikethrough: false, underline: true }, text: "Hello, World!" }
15 April 2025