ChartPart

StockSharp.Xaml.Charting

The base class that describes the part of the chart.

Inherits: Equatable<T>

Implements: INotifyPropertyChanging, INotifyPropertyChanged, IChartPart<T>, IPersistable

Constructors

ChartPart
protected ChartPart()
chartPart = ChartPart()

Initialize ChartPart.

Properties

Id
public Guid Id { get; internal set; }
value = chartPart.Id
chartPart.Id = value

Unique ID.

Methods

CopyTo
internal virtual T CopyTo(T elem)
result = chartPart.CopyTo(elem)

To fill out a copy of the element.

elem
Copy.

Returns: Copy.

GetHashCode
public override int GetHashCode()
result = chartPart.GetHashCode()

Get the hash code of the object ChartElement.

Returns: A hash code.

Load
public virtual void Load(SettingsStorage storage)
chartPart.Load(storage)

Load settings.

storage
Settings storage.
OnEquals
protected override bool OnEquals(T other)
result = chartPart.OnEquals(other)

Compare ChartElement on the equivalence.

other
Another value with which to compare.

Returns: , if the specified object is equal to the current object, otherwise, .

RaisePropertyChanged
protected void RaisePropertyChanged(string name)
chartPart.RaisePropertyChanged(name)

To call the event PropertyChanged.

name
Property name.
RaisePropertyChanging
protected void RaisePropertyChanging(string name)
chartPart.RaisePropertyChanging(name)

To call the event PropertyChanging.

name
Property name.
RaisePropertyValueChanging
protected void RaisePropertyValueChanging(string name, object value)
chartPart.RaisePropertyValueChanging(name, value)

To call the event PropertyValueChanging.

name
Property name.
value
New value of the property.
Save
public virtual void Save(SettingsStorage storage)
chartPart.Save(storage)

Save settings.

storage
Settings storage.
SetField``1
protected bool SetField<TField>(TField field, TField value, string name)
result = chartPart.SetField(field, value, name)

Update field value and raise PropertyChanged event.

field
Field to update.
value
New value.
name
Name of the field to update.

Returns: if the field was updated. otherwise.

Events

PropertyChanged
public event PropertyChangedEventHandler PropertyChanged
chartPart.PropertyChanged += handler

The chart element properties value change event.

PropertyChanging
public event PropertyChangingEventHandler PropertyChanging
chartPart.PropertyChanging += handler

The chart element properties value changing event.

PropertyValueChanging
public event Action<object, string, object> PropertyValueChanging
chartPart.PropertyValueChanging += handler

The chart element properties value change start event.