ResetValue() публичный абстрактный Метод

When overridden in a derived class, resets the value for this property of the component.

public abstract ResetValue ( object component ) : void
component object
Результат void
Пример #1
0
 /// <summary>
 /// Resets the property on objects</summary>
 /// <param name="owners">Objects whose property is reset</param>
 /// <param name="descriptor">Property to reset</param>
 public static void ResetProperty(IEnumerable <object> owners, PropertyDescriptor descriptor)
 {
     foreach (object owner in owners)
     {
         descriptor.ResetValue(owner);
     }
 }
 private void _ResetProperty(PropertyDescriptor pd)
 {
     if (pd.CanResetValue(this.objectContext)) {
         pd.ResetValue(this.objectContext);
         OnPropertyChanged(new PropertyChangedEventArgs(pd.Name));
     }
 }
Пример #3
0
 /// <summary>
 /// Resets the property on objects</summary>
 /// <param name="owners">Objects whose property is reset</param>
 /// <param name="descriptor">Property to reset</param>
 public static void ResetProperty(IEnumerable<object> owners, PropertyDescriptor descriptor)
 {
     foreach (object owner in owners)
         descriptor.ResetValue(owner);
 }
 private void _ResetProperty(PropertyDescriptor pd)
 {
     if (pd.CanResetValue(this.objectContext)) {
         pd.ResetValue(this.objectContext);
     }
 }
 /// <summary>
 /// Resets the property values for the current selection</summary>
 /// <param name="descriptor">Property descriptor representing property</param>
 public void ResetValue(PropertyDescriptor descriptor)
 {
     foreach (object selected in m_selection)
         descriptor.ResetValue(selected);
 }