MultiLineTextBlock
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-angular-diagrams
Methods
Gets or sets the text content of the multi-line text block.
The text content to set, or undefined to get current content
Returns:any
The current text content when called as getter
Gets the drawing container for this element.
any
The drawing element container
Sets the fill color and opacity of the visual element.
The fill color
opacity?anyThe fill opacity (optional)
Gets or sets the position of the element.
The x coordinate or Point object, or undefined to get current position
y?anyThe y coordinate when x is a number
Returns:The current position as a Point when called as getter
Redraws the text block with updated options.
New options to apply to the text block
Gets or sets the rotation of the element.
The rotation angle in radians, or undefined to get current rotation
centeranyThe center point for rotation
Returns:Rotation
The current rotation when called as getter
Sets the stroke color, width, and opacity of the visual element.
The stroke color
widthanyThe stroke width
opacityanyThe stroke opacity
Gets or sets the visibility of the element.
The visibility value to set, or undefined to get current visibility
Returns:any
The current visibility state when called as getter
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.
options
any
Configuration options for the element.
textElements
Text[]
Array of text elements for multi-line text support.