New to KendoReact? Start a free 30-day trial

A text block that supports multi-line text with line wrapping and alignment. Extends TextBlock and provides functionality for rendering text across multiple lines with layout support.

Definition

Package:@progress/kendo-react-diagram

Properties

alignable

boolean

Whether the text block can be aligned within its container.

The underlying drawing group element that contains the text layout.

id

string

The unique identifier of the element.

Configuration options for the element.

Array of text elements for multi-line text support.

Methods

Gets the text content of the multi-line text block.

Returns:

string

The current text content.

Sets the text content of the multi-line text block.

Parameters:textstring

The new text content.

Returns:

string

The applied text content.

Gets the drawing container for this element.

Returns:

any

The drawing element container

Sets the fill color and opacity of the visual element.

Parameters:colorany

The fill color

opacity?any

The fill opacity (optional)

Gets the position of the element.

Returns:

Point

The current element position.

Sets the position of the element from a point.

Parameters:pointPoint

The new element position.

Sets the position of the element from coordinates.

Parameters:xnumber

The horizontal coordinate.

ynumber

The vertical coordinate.

Redraws the text block with updated options.

Parameters:optionsany

New options to apply to the text block

Gets the rotation of the element.

Returns:

Rotation

The current element rotation.

Sets the rotation of the element.

Parameters:anglenumber

The rotation angle in radians.

centerPoint

The center of rotation.

Returns:

Rotation

The applied element rotation.

Sets the stroke color, width, and opacity of the visual element.

Parameters:colorany

The stroke color

widthany

The stroke width

opacityany

The stroke opacity

Gets the visibility of the element.

Returns:

boolean

true when the element is visible; otherwise, false.

Sets the visibility of the element.

Parameters:valueboolean

Whether the element should be visible.