New to Telerik UI for WinFormsStart a free 30-day trial

Represents a property descriptor for MultiObjectCollection properties.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.UI.dll

Syntax:

C#
public class MultiObjectPropertyDescriptor : PropertyDescriptor

Inheritance: objectMemberDescriptorPropertyDescriptorMultiObjectPropertyDescriptor

Inherited Members PropertyDescriptor.AddValueChanged(object, EventHandler)PropertyDescriptor.Equals(object)PropertyDescriptor.CreateInstance(Type)PropertyDescriptor.FillAttributes(IList)PropertyDescriptor.GetChildProperties()PropertyDescriptor.GetChildProperties(Attribute[])PropertyDescriptor.GetChildProperties(object)PropertyDescriptor.GetChildProperties(object, Attribute[])PropertyDescriptor.GetEditor(Type)PropertyDescriptor.GetHashCode()PropertyDescriptor.GetInvocationTarget(Type, object)PropertyDescriptor.GetTypeFromName(string)PropertyDescriptor.OnValueChanged(object, EventArgs)PropertyDescriptor.RemoveValueChanged(object, EventHandler)PropertyDescriptor.GetValueChangedHandler(object)PropertyDescriptor.ConverterPropertyDescriptor.IsLocalizablePropertyDescriptor.SerializationVisibilityPropertyDescriptor.SupportsChangeEventsMemberDescriptor.CreateAttributeCollection()MemberDescriptor.FindMethod(Type, string, Type[], Type)MemberDescriptor.FindMethod(Type, string, Type[], Type, bool)MemberDescriptor.GetSite(object)MemberDescriptor.GetInvokee(Type, object)MemberDescriptor.AttributeArrayMemberDescriptor.AttributesMemberDescriptor.CategoryMemberDescriptor.DescriptionMemberDescriptor.IsBrowsableMemberDescriptor.NameMemberDescriptor.NameHashCodeMemberDescriptor.DesignTimeOnlyMemberDescriptor.DisplayName...

Constructors

Creates a new instance of the MultiObjectPropertyDescriptor class.

C#
public MultiObjectPropertyDescriptor(MultiObjectCollection objects, Dictionary<Type, PropertyDescriptor> originalProperties)
Parameters:objectsMultiObjectCollection

The collection of objects whose properties will be exposed.

originalPropertiesDictionary<Type, PropertyDescriptor>

The original property descriptors for the objects.

Properties

Returns the type of component this property descriptor is for.

C#
public override Type ComponentType { get; }

Overrides: PropertyDescriptor.ComponentType

Gets a value indicating whether this property is read only. Always returns false.

C#
public override bool IsReadOnly { get; }

Overrides: PropertyDescriptor.IsReadOnly

Returns the type of the property.

C#
public override Type PropertyType { get; }

Overrides: PropertyDescriptor.PropertyType

Methods

Gets a value indicating whether a property can be reset.

C#
public override bool CanResetValue(object component)
Parameters:componentobjectReturns:

bool

Always returns true.

Overrides: PropertyDescriptor.CanResetValue(object)

Gets a common value of all objects or returns null if object's values differ.

C#
public override object GetValue(object component)
Parameters:componentobjectReturns:

object

Returns a common value or null

Overrides: PropertyDescriptor.GetValue(object)

Resets the values of all objects for this property.

C#
public override void ResetValue(object component)
Parameters:componentobject

Overrides: PropertyDescriptor.ResetValue(object)

Sets a value to all objects.

The value to set.
C#
public override void SetValue(object component, object value)
Parameters:componentobjectvalueobject

Overrides: PropertyDescriptor.SetValue(object, object)

Gets a value indicating whether value should be serialized.

C#
public override bool ShouldSerializeValue(object component)
Parameters:componentobjectReturns:

bool

Always returns true.

Overrides: PropertyDescriptor.ShouldSerializeValue(object)