---
id: "T:cAlgo.API.DefaultStyles"
kind: "class"
namespace: "cAlgo.API"
url: "https://help.ctrader.com/ctrader-algo/references/Controls/Styles/DefaultStyles/"
---

> Documentation index for agents: https://help.ctrader.com/ctrader-algo/llms.txt · machine index: https://help.ctrader.com/ctrader-algo/api.json

# DefaultStyles (class)

Represent the list of default styles for the built-in controls.

Environments: Desktop supported · CLI supported · Cloud supported.

## Definition

```csharp
public static class DefaultStyles
```

## Examples

C#:

```csharp
var buyStyle = new Style(DefaultStyles.ButtonStyle);
buyStyle.Set(ControlProperty.BackgroundColor, Color.DarkGreen);
buyStyle.Set(ControlProperty.BackgroundColor, Color.Green, ControlState.Hover);
var button = new Button { Text = "Buy", Style = buyStyle };
Chart.AddControl(button);
```

Python:

```python
buyStyle = Style(DefaultStyles.ButtonStyle)
buyStyle.Set(ControlProperty.BackgroundColor, Color.DarkGreen)
buyStyle.Set(ControlProperty.BackgroundColor, Color.Green, ControlState.Hover)
button = Button()
button.Text = "Buy"
button.Style = buyStyle
api.Chart.AddControl(button)
```

## Properties

- `public static Style ButtonStyle {get;}` — Gets the Button default style. [details](https://help.ctrader.com/ctrader-algo/references/Controls/Styles/DefaultStyles/ButtonStyle/index.md)
- `public static Style CheckBoxStyle {get;}` — Gets the Checkbox default style. [details](https://help.ctrader.com/ctrader-algo/references/Controls/Styles/DefaultStyles/CheckBoxStyle/index.md)
- `public static Style ComboBoxStyle {get;}` — Gets the ComboBox default style. [details](https://help.ctrader.com/ctrader-algo/references/Controls/Styles/DefaultStyles/ComboBoxStyle/index.md)
- `public static Style MultiSelectStyle {get;}` — Gets the MultiSelect default style. [details](https://help.ctrader.com/ctrader-algo/references/Controls/Styles/DefaultStyles/MultiSelectStyle/index.md)
- `public static Style RadioButtonStyle {get;}` — Gets the Radio Button default stile. [details](https://help.ctrader.com/ctrader-algo/references/Controls/Styles/DefaultStyles/RadioButtonStyle/index.md)
- `public static Style ScrollViewerStyle {get;}` — Gets the Scroll Viewer default style. [details](https://help.ctrader.com/ctrader-algo/references/Controls/Styles/DefaultStyles/ScrollViewerStyle/index.md)
- `public static Style TabControlStyle {get;}` — Gets the Tab Control default style. [details](https://help.ctrader.com/ctrader-algo/references/Controls/Styles/DefaultStyles/TabControlStyle/index.md)
- `public static Style TabItemStyle {get;}` — Gets the Tab Item default style. [details](https://help.ctrader.com/ctrader-algo/references/Controls/Styles/DefaultStyles/TabItemStyle/index.md)
- `public static Style TextBlockStyle {get;}` — Gets the Text Block default style. [details](https://help.ctrader.com/ctrader-algo/references/Controls/Styles/DefaultStyles/TextBlockStyle/index.md)
- `public static Style TextBoxStyle {get;}` — Gets the Text Box default style. [details](https://help.ctrader.com/ctrader-algo/references/Controls/Styles/DefaultStyles/TextBoxStyle/index.md)
- `public static Style ToggleButtonStyle {get;}` — Gets the Toggle Button default style. [details](https://help.ctrader.com/ctrader-algo/references/Controls/Styles/DefaultStyles/ToggleButtonStyle/index.md)

