Skip to content

TextBox.TextAlignment

property · TextBox · cAlgo.API

DesktopCLICloud

Gets or sets a value that indicates the horizontal alignment of text content.

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;}
textBox.TextAlignment: TextAlignment

Returns TextAlignment

Examples

var priceTextBox = new TextBox { Text = Symbol.Bid.ToString(), Width = 120, TextAlignment = TextAlignment.Right };
Chart.AddControl(priceTextBox);
priceTextBox = TextBox()
priceTextBox.Text = str(api.Symbol.Bid)
priceTextBox.Width = 120
priceTextBox.TextAlignment = TextAlignment.Right
api.Chart.AddControl(priceTextBox)