Exemplo n.º 1
0
 /// <summary>
 /// When overridden in a derived class, determines a value indicating whether the value of this property needs to be persisted.
 /// </summary>
 /// <param name="component">The component with the property to be examined for persistence.</param>
 /// <returns>
 /// true if the property should be persisted; otherwise, false.
 /// </returns>
 public override bool ShouldSerializeValue(object component)
 {
     return(InnerDescriptor.ShouldSerializeValue(component));
 }
Exemplo n.º 2
0
 /// <summary>
 /// When overridden in a derived class, sets the value of the component to a different value.
 /// </summary>
 /// <param name="component">The component with the property value that is to be set.</param>
 /// <param name="value">The new value.</param>
 public override void SetValue(object component, object value)
 {
     InnerDescriptor.SetValue(component, value);
 }
Exemplo n.º 3
0
 /// <summary>
 /// When overridden in a derived class, gets the current value of the property on a component.
 /// </summary>
 /// <param name="component">The component with the property for which to retrieve the value.</param>
 /// <returns>
 /// The value of a property for a given component.
 /// </returns>
 public override object GetValue(object component)
 {
     return(InnerDescriptor.GetValue(component));
 }
Exemplo n.º 4
0
 /// <summary>
 /// When overridden in a derived class, resets the value for this property of the component to the default value.
 /// </summary>
 /// <param name="component">The component with the property value that is to be reset to the default value.</param>
 public override void ResetValue(object component)
 {
     InnerDescriptor.ResetValue(component);
 }
Exemplo n.º 5
0
 /// <summary>
 /// When overridden in a derived class, returns whether resetting an object changes its value.
 /// </summary>
 /// <param name="component">The component to test for reset capability.</param>
 /// <returns>
 /// true if resetting the component changes its value; otherwise, false.
 /// </returns>
 public override bool CanResetValue(object component)
 {
     return(InnerDescriptor.CanResetValue(component));
 }