Skip to content

TextBlock.TextWrapping

property · TextBlock · cAlgo.API

DesktopCLICloud

Gets or sets the way how the TextBlock should wrap the text.

Environment behaviour

CLI — not supported. Accepted without error but never displayed, so control events such as Click are never raised.

Cloud — not supported. Accepted without error but never displayed, so control events such as Click are never raised.

Definition

public TextWrapping TextWrapping {get; set;}
textBlock.TextWrapping: TextWrapping

Returns TextWrapping

Examples

var textBlock = new TextBlock { Text = "This trading note is long and wraps onto several lines", Width = 150, TextWrapping = TextWrapping.Wrap };
Chart.AddControl(textBlock);
textBlock = TextBlock()
textBlock.Text = "This trading note is long and wraps onto several lines"
textBlock.Width = 150
textBlock.TextWrapping = TextWrapping.Wrap
api.Chart.AddControl(textBlock)