TextBlock.TextAlignment
property · TextBlock · cAlgo.API
DesktopCLICloud
Gets or sets the text alignment.
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 TextAlignment TextAlignment {get; set;}
textBlock.TextAlignment: TextAlignment
Returns TextAlignment
Examples
var textBlock = new TextBlock { Text = "Centered title", Width = 200, TextAlignment = TextAlignment.Center };
Chart.AddControl(textBlock);
textBlock = TextBlock()
textBlock.Text = "Centered title"
textBlock.Width = 200
textBlock.TextAlignment = TextAlignment.Center
api.Chart.AddControl(textBlock)