System.ComponentModel.TypeConverter.SimplePropertyDescriptor.ResetValue C# (CSharp) Method

ResetValue() public method

public ResetValue ( object component ) : void
component object
return void
            public override void ResetValue(object component) {
                DefaultValueAttribute attr = (DefaultValueAttribute)Attributes[typeof(DefaultValueAttribute)];
                if (attr != null) {
                    SetValue(component, attr.Value);
                }
            }