Class ChartPart<T>
- Namespace
- StockSharp.Xaml.Charting
- Assembly
- StockSharp.Xaml.Charting.dll
The base class that describes the part of the chart.
public abstract class ChartPart<T> : Equatable<T>, ICloneable<T>, ICloneable, IEquatable<T>, IComparable<T>, IComparable, IChartPart<T>, INotifyPropertyChanging, INotifyPropertyChanged, IPersistable where T : ChartPart<T>
Type Parameters
TThe chart element type.
- Implements
-
ICloneable<T>IEquatable<T>IComparable<T>IChartPart<T>
- Derived
-
ChartElement<T>
- Inherited Members
- Extension Methods
Constructors
ChartPart()
Initialize ChartPart<T>.
protected ChartPart()
Properties
Id
Unique ID.
[Browsable(false)]
public Guid Id { get; }
Property Value
Methods
GetHashCode()
Get the hash code of the object ChartElement<T>.
public override int GetHashCode()
Returns
- int
A hash code.
Load(SettingsStorage)
Load settings.
public virtual void Load(SettingsStorage storage)
Parameters
storageSettingsStorageSettings storage.
OnEquals(T)
Compare ChartElement<T> on the equivalence.
protected override bool OnEquals(T other)
Parameters
otherTAnother value with which to compare.
Returns
RaisePropertyChanged(string)
To call the event PropertyChanged.
protected void RaisePropertyChanged(string name)
Parameters
namestringProperty name.
RaisePropertyChanging(string)
To call the event PropertyChanging.
protected void RaisePropertyChanging(string name)
Parameters
namestringProperty name.
RaisePropertyValueChanging(string, object)
To call the event PropertyValueChanging.
protected void RaisePropertyValueChanging(string name, object value)
Parameters
Save(SettingsStorage)
Save settings.
public virtual void Save(SettingsStorage storage)
Parameters
storageSettingsStorageSettings storage.
SetField<TField>(ref TField, TField, string)
Update field value and raise PropertyChanged event.
protected bool SetField<TField>(ref TField field, TField value, string name)
Parameters
fieldTFieldField to update.
valueTFieldNew value.
namestringName of the field to update.
Returns
Type Parameters
TFieldThe field type.
Events
PropertyChanged
The chart element properties value change event.
public event PropertyChangedEventHandler PropertyChanged
Event Type
PropertyChanging
The chart element properties value changing event.
public event PropertyChangingEventHandler PropertyChanging
Event Type
PropertyValueChanging
The chart element properties value change start event.
public event Action<object, string, object> PropertyValueChanging