Documentation Docs
Documentation Docs

IDrawTextOptions

An object that configures rendering a piece of text.

Inherited from the following class(es):

fontSize property

Font size in points.

Default value: 14

Type:
number readonly
Implemented in:
IDrawTextOptions
horizontalAlign property

Horizontal alignment within the rectangle that limits the drawing area.

Possible values:

  • "center" (default)
  • "left"
  • "right"
Type:
HorizontalAlign readonly
Implemented in:
IDrawRectOptions
isBold property

Enable this property to render the text string bold.

Default value: false

Type:
boolean readonly
Implemented in:
IDrawTextOptions
margins property

The distance between the content and the borders of the rectangle. This property applies only if the content is aligned to the left/right or top/bottom.

Type:
IMargin readonly
Implemented in:
IDrawRectOptions
rect property

An object with coordinates of the rectangle.

Type:
IRect readonly
Implemented in:
IDrawRectOptions
text property

A text string to be drawn.

Type:
string readonly
Implemented in:
IDrawTextOptions
verticalAlign property

Vertical alignment within the rectangle that limits the drawing area.

Possible values:

  • "middle" (default)
  • "top"
  • "bottom"
Type:
VerticalAlign readonly
Implemented in:
IDrawRectOptions

Copyright © 2024 Devsoft Baltic OÜ. All rights reserved.

Your cookie settings

We use cookies on our site to make your browsing experience more convenient and personal. In some cases, they are essential to making the site work properly. By clicking "Accept All", you consent to the use of all cookies in accordance with our Terms of Use & Privacy Statement. However, you may visit "Cookie settings" to provide a controlled consent.

Your renewal subscription expires soon.

Since the license is perpetual, you will still have permanent access to the product versions released within the first 12 month of the original purchase date.

If you wish to continue receiving technical support from our Help Desk specialists and maintain access to the latest product updates, make sure to renew your subscription by clicking the "Renew" button below.

Your renewal subscription has expired.

Since the license is perpetual, you will still have permanent access to the product versions released within the first 12 month of the original purchase date.

If you wish to continue receiving technical support from our Help Desk specialists and maintain access to the latest product updates, make sure to renew your subscription by clicking the "Renew" button below.