ChartActiveOrdersElement
The chart element representing active orders.
Inherits: ChartElement<ChartActiveOrdersElement>
Implements: IUltrachartPrimitive, IChartElementEx, IChartElement, IChartPart<IChartElement>, INotifyPropertyChanging, INotifyPropertyChanged, IAsyncPersistable, IChartActiveOrdersElement
Constructors
public ChartActiveOrdersElement()
chartActiveOrdersElement = ChartActiveOrdersElement()
Initializes a new instance of the ChartActiveOrdersElement.
Properties
public Color BuyBlinkColor { get; set; }
value = chartActiveOrdersElement.BuyBlinkColor
chartActiveOrdersElement.BuyBlinkColor = value
Color of blinking in partially filled state (Buy).
public Color BuyColor { get; set; }
value = chartActiveOrdersElement.BuyColor
chartActiveOrdersElement.BuyColor = value
Color of Buy order in active state.
public Color BuyPendingColor { get; set; }
value = chartActiveOrdersElement.BuyPendingColor
chartActiveOrdersElement.BuyPendingColor = value
Color of Buy order in non-active state.
public Color CancelButtonBackground { get; set; }
value = chartActiveOrdersElement.CancelButtonBackground
chartActiveOrdersElement.CancelButtonBackground = value
Cancel order button background color.
public Color CancelButtonColor { get; set; }
value = chartActiveOrdersElement.CancelButtonColor
chartActiveOrdersElement.CancelButtonColor = value
Cancel order button color.
public Color ForegroundColor { get; set; }
value = chartActiveOrdersElement.ForegroundColor
chartActiveOrdersElement.ForegroundColor = value
Text color.
public bool IsAnimationEnabled { get; set; }
value = chartActiveOrdersElement.IsAnimationEnabled
chartActiveOrdersElement.IsAnimationEnabled = value
Show chart element.
public Color SellBlinkColor { get; set; }
value = chartActiveOrdersElement.SellBlinkColor
chartActiveOrdersElement.SellBlinkColor = value
Color of blinking in partially filled state (Sell).
public Color SellColor { get; set; }
value = chartActiveOrdersElement.SellColor
chartActiveOrdersElement.SellColor = value
Color of Sell order in active state.
public Color SellPendingColor { get; set; }
value = chartActiveOrdersElement.SellPendingColor
chartActiveOrdersElement.SellPendingColor = value
Color of Sell order in non-active state.
Methods
public override Task LoadAsync(SettingsStorage storage, CancellationToken cancellationToken)
result = chartActiveOrdersElement.LoadAsync(storage, cancellationToken)
Asynchronously loads the state of the object from the specified SettingsStorage.
- storage
- The SettingsStorage instance from which to load the data.
- cancellationToken
- A token to monitor for cancellation requests.
Returns: A task that represents the asynchronous load operation.
protected override bool OnDraw(ChartDrawData data)
result = chartActiveOrdersElement.OnDraw(data)
Draw on root element.
- data
- Chart drawing data.
Returns: if the data was successfully drawn, otherwise, returns .
public override Task SaveAsync(SettingsStorage storage, CancellationToken cancellationToken)
result = chartActiveOrdersElement.SaveAsync(storage, cancellationToken)
Asynchronously saves the state of the object to the specified SettingsStorage.
- storage
- The SettingsStorage instance to which to save the data.
- cancellationToken
- A token to monitor for cancellation requests.
Returns: A task that represents the asynchronous save operation.