TextBox.SelectionOpacity
property · TextBox · cAlgo.API
DesktopCLICloud
Gets or sets the opacity of the selected 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 double SelectionOpacity {get; set;}
textBox.SelectionOpacity: float
Returns double
Examples
var textBox = new TextBox { Text = "Highlighted selection", SelectionOpacity = 0.8 };
Chart.AddControl(textBox);
Print("Selection opacity: {0}", textBox.SelectionOpacity);
textBox = TextBox()
textBox.Text = "Highlighted selection"
textBox.SelectionOpacity = 0.8
api.Chart.AddControl(textBox)
api.Print(f"Selection opacity: {textBox.SelectionOpacity}")