Skip to content

DefaultStyles.ButtonStyle

property · DefaultStyles · cAlgo.API

DesktopCLICloud

Gets the Button default style.

Definition

public static Style ButtonStyle {get;}
DefaultStyles.ButtonStyle: Style

Returns Style

Examples

var style = new Style(DefaultStyles.ButtonStyle);
style.Set(ControlProperty.BackgroundColor, Color.DarkRed);
Chart.AddControl(new Button { Text = "Sell", Style = style });
style = Style(DefaultStyles.ButtonStyle)
style.Set(ControlProperty.BackgroundColor, Color.DarkRed)
button = Button()
button.Text = "Sell"
button.Style = style
api.Chart.AddControl(button)