C# Class System.ComponentModel.ExtendedPropertyDescriptor

This class wraps an PropertyDescriptor with something that looks like a property. It allows you to treat extended properties the same as regular properties.

Inheritance: PropertyDescriptor
Show file Open project: gbarnett/shared-source-cli-2.0 Class Usage Examples

Public Methods

Method Description
CanResetValue ( object comp ) : bool
ExtendedPropertyDescriptor ( PropertyDescriptor extender, Attribute attributes ) : Microsoft.Win32
ExtendedPropertyDescriptor ( ReflectPropertyDescriptor extenderInfo, Type receiverType, IExtenderProvider provider, Attribute attributes ) : Microsoft.Win32
GetValue ( object comp ) : object
ResetValue ( object comp ) : void
SetValue ( object component, object value ) : void
ShouldSerializeValue ( object comp ) : bool

Method Details

CanResetValue() public method

public CanResetValue ( object comp ) : bool
comp object
return bool

ExtendedPropertyDescriptor() public method

public ExtendedPropertyDescriptor ( PropertyDescriptor extender, Attribute attributes ) : Microsoft.Win32
extender PropertyDescriptor
attributes Attribute
return Microsoft.Win32

ExtendedPropertyDescriptor() public method

public ExtendedPropertyDescriptor ( ReflectPropertyDescriptor extenderInfo, Type receiverType, IExtenderProvider provider, Attribute attributes ) : Microsoft.Win32
extenderInfo ReflectPropertyDescriptor
receiverType Type
provider IExtenderProvider
attributes Attribute
return Microsoft.Win32

GetValue() public method

public GetValue ( object comp ) : object
comp object
return object

ResetValue() public method

public ResetValue ( object comp ) : void
comp object
return void

SetValue() public method

public SetValue ( object component, object value ) : void
component object
value object
return void

ShouldSerializeValue() public method

public ShouldSerializeValue ( object comp ) : bool
comp object
return bool