Skip to content

TextBlock.LineStackingStrategy

property · TextBlock · cAlgo.API

DesktopCLICloud

Gets or sets the mechanism by which a line box is determined for each line of text within the TextBlock.

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 LineStackingStrategy LineStackingStrategy {get; set;}
textBlock.LineStackingStrategy: LineStackingStrategy

Returns LineStackingStrategy

Examples

var textBlock = new TextBlock { Text = "Line 1\nLine 2", LineHeight = 20, LineStackingStrategy = LineStackingStrategy.BlockLineHeight };
Chart.AddControl(textBlock);
textBlock = TextBlock()
textBlock.Text = "Line 1\nLine 2"
textBlock.LineHeight = 20
textBlock.LineStackingStrategy = LineStackingStrategy.BlockLineHeight
api.Chart.AddControl(textBlock)