TextBlock.LineHeight
property · TextBlock · cAlgo.API
DesktopCLICloud
Gets or sets the height of the line.
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 double LineHeight {get; set;}
textBlock.LineHeight: float
Returns double
Examples
var textBlock = new TextBlock { Text = "Line 1\nLine 2\nLine 3", LineHeight = 24 };
Chart.AddControl(textBlock);
Print("Line height: {0}", textBlock.LineHeight);
textBlock = TextBlock()
textBlock.Text = "Line 1\nLine 2\nLine 3"
textBlock.LineHeight = 24
api.Chart.AddControl(textBlock)
api.Print(f"Line height: {textBlock.LineHeight}")