ChartPart
The base class that describes the part of the chart.
Inherits: Equatable<T>
Implements: INotifyPropertyChanging, INotifyPropertyChanged, IChartPart<T>, IPersistable
Constructors
Properties
Methods
internal virtual T CopyTo(T elem)
result = chartPart.CopyTo(elem)
To fill out a copy of the element.
- elem
- Copy.
Returns: Copy.
public override int GetHashCode()
result = chartPart.GetHashCode()
Get the hash code of the object ChartElement.
Returns: A hash code.
public virtual void Load(SettingsStorage storage)
chartPart.Load(storage)
Load settings.
- storage
- Settings storage.
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, .
protected void RaisePropertyChanged(string name)
chartPart.RaisePropertyChanged(name)
To call the event PropertyChanged.
- name
- Property name.
protected void RaisePropertyChanging(string name)
chartPart.RaisePropertyChanging(name)
To call the event PropertyChanging.
- name
- Property name.
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.
public virtual void Save(SettingsStorage storage)
chartPart.Save(storage)
Save settings.
- storage
- Settings storage.
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
public event PropertyChangedEventHandler PropertyChanged
chartPart.PropertyChanged += handler
The chart element properties value change event.
public event PropertyChangingEventHandler PropertyChanging
chartPart.PropertyChanging += handler
The chart element properties value changing event.
public event Action<object, string, object> PropertyValueChanging
chartPart.PropertyValueChanging += handler
The chart element properties value change start event.