374 lines
18 KiB
C#
374 lines
18 KiB
C#
using System;
|
|
using System.Collections;
|
|
using System.Runtime.InteropServices;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace System.ComponentModel
|
|
{
|
|
/// <summary>Provides an abstraction of a property on a class.</summary>
|
|
// Token: 0x02000175 RID: 373
|
|
[Token(Token = "0x2000175")]
|
|
[ComVisible(true)]
|
|
public abstract class PropertyDescriptor : MemberDescriptor
|
|
{
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.ComponentModel.PropertyDescriptor" /> class with the specified name and attributes.</summary>
|
|
/// <param name="name">The name of the property.</param>
|
|
/// <param name="attrs">An array of type <see cref="T:System.Attribute" /> that contains the property attributes.</param>
|
|
// Token: 0x0600095F RID: 2399 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x600095F")]
|
|
[Address(RVA = "0xC56DE0", Offset = "0xC55DE0", VA = "0x180C56DE0")]
|
|
protected PropertyDescriptor(string name, Attribute[] attrs)
|
|
{
|
|
}
|
|
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.ComponentModel.PropertyDescriptor" /> class with the name and attributes in the specified <see cref="T:System.ComponentModel.MemberDescriptor" />.</summary>
|
|
/// <param name="descr">A <see cref="T:System.ComponentModel.MemberDescriptor" /> that contains the name of the property and its attributes.</param>
|
|
// Token: 0x06000960 RID: 2400 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x6000960")]
|
|
[Address(RVA = "0xC56DF0", Offset = "0xC55DF0", VA = "0x180C56DF0")]
|
|
protected PropertyDescriptor(MemberDescriptor descr)
|
|
{
|
|
}
|
|
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.ComponentModel.PropertyDescriptor" /> class with the name in the specified <see cref="T:System.ComponentModel.MemberDescriptor" /> and the attributes in both the <see cref="T:System.ComponentModel.MemberDescriptor" /> and the <see cref="T:System.Attribute" /> array.</summary>
|
|
/// <param name="descr">A <see cref="T:System.ComponentModel.MemberDescriptor" /> containing the name of the member and its attributes.</param>
|
|
/// <param name="attrs">An <see cref="T:System.Attribute" /> array containing the attributes you want to associate with the property.</param>
|
|
// Token: 0x06000961 RID: 2401 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x6000961")]
|
|
[Address(RVA = "0xC56E00", Offset = "0xC55E00", VA = "0x180C56E00")]
|
|
protected PropertyDescriptor(MemberDescriptor descr, Attribute[] attrs)
|
|
{
|
|
}
|
|
|
|
/// <summary>When overridden in a derived class, gets the type of the component this property is bound to.</summary>
|
|
/// <returns>A <see cref="T:System.Type" /> that represents the type of component this property is bound to. When the <see cref="M:System.ComponentModel.PropertyDescriptor.GetValue(System.Object)" /> or <see cref="M:System.ComponentModel.PropertyDescriptor.SetValue(System.Object,System.Object)" /> methods are invoked, the object specified might be an instance of this type.</returns>
|
|
// Token: 0x170001D2 RID: 466
|
|
// (get) Token: 0x06000962 RID: 2402
|
|
[Token(Token = "0x170001D2")]
|
|
public abstract Type ComponentType
|
|
{
|
|
[Token(Token = "0x6000962")]
|
|
[Address(Slot = "17")]
|
|
get;
|
|
}
|
|
|
|
/// <summary>Gets the type converter for this property.</summary>
|
|
/// <returns>A <see cref="T:System.ComponentModel.TypeConverter" /> that is used to convert the <see cref="T:System.Type" /> of this property.</returns>
|
|
// Token: 0x170001D3 RID: 467
|
|
// (get) Token: 0x06000963 RID: 2403 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x170001D3")]
|
|
public virtual TypeConverter Converter
|
|
{
|
|
[Token(Token = "0x6000963")]
|
|
[Address(RVA = "0xC69030", Offset = "0xC68030", VA = "0x180C69030", Slot = "18")]
|
|
get
|
|
{
|
|
return null;
|
|
}
|
|
}
|
|
|
|
/// <summary>Gets a value indicating whether this property should be localized, as specified in the <see cref="T:System.ComponentModel.LocalizableAttribute" />.</summary>
|
|
/// <returns>
|
|
/// <see langword="true" /> if the member is marked with the <see cref="T:System.ComponentModel.LocalizableAttribute" /> set to <see langword="true" />; otherwise, <see langword="false" />.</returns>
|
|
// Token: 0x170001D4 RID: 468
|
|
// (get) Token: 0x06000964 RID: 2404 RVA: 0x00005CD0 File Offset: 0x00003ED0
|
|
[Token(Token = "0x170001D4")]
|
|
public virtual bool IsLocalizable
|
|
{
|
|
[Token(Token = "0x6000964")]
|
|
[Address(RVA = "0xC69230", Offset = "0xC68230", VA = "0x180C69230", Slot = "19")]
|
|
get
|
|
{
|
|
return default(bool);
|
|
}
|
|
}
|
|
|
|
/// <summary>When overridden in a derived class, gets a value indicating whether this property is read-only.</summary>
|
|
/// <returns>
|
|
/// <see langword="true" /> if the property is read-only; otherwise, <see langword="false" />.</returns>
|
|
// Token: 0x170001D5 RID: 469
|
|
// (get) Token: 0x06000965 RID: 2405
|
|
[Token(Token = "0x170001D5")]
|
|
public abstract bool IsReadOnly
|
|
{
|
|
[Token(Token = "0x6000965")]
|
|
[Address(Slot = "20")]
|
|
get;
|
|
}
|
|
|
|
/// <summary>Gets a value indicating whether this property should be serialized, as specified in the <see cref="T:System.ComponentModel.DesignerSerializationVisibilityAttribute" />.</summary>
|
|
/// <returns>One of the <see cref="T:System.ComponentModel.DesignerSerializationVisibility" /> enumeration values that specifies whether this property should be serialized.</returns>
|
|
// Token: 0x170001D6 RID: 470
|
|
// (get) Token: 0x06000966 RID: 2406 RVA: 0x00005CE8 File Offset: 0x00003EE8
|
|
[Token(Token = "0x170001D6")]
|
|
public DesignerSerializationVisibility SerializationVisibility
|
|
{
|
|
[Token(Token = "0x6000966")]
|
|
[Address(RVA = "0xC69330", Offset = "0xC68330", VA = "0x180C69330")]
|
|
get
|
|
{
|
|
return DesignerSerializationVisibility.Hidden;
|
|
}
|
|
}
|
|
|
|
/// <summary>When overridden in a derived class, gets the type of the property.</summary>
|
|
/// <returns>A <see cref="T:System.Type" /> that represents the type of the property.</returns>
|
|
// Token: 0x170001D7 RID: 471
|
|
// (get) Token: 0x06000967 RID: 2407
|
|
[Token(Token = "0x170001D7")]
|
|
public abstract Type PropertyType
|
|
{
|
|
[Token(Token = "0x6000967")]
|
|
[Address(Slot = "21")]
|
|
get;
|
|
}
|
|
|
|
/// <summary>Enables other objects to be notified when this property changes.</summary>
|
|
/// <param name="component">The component to add the handler for.</param>
|
|
/// <param name="handler">The delegate to add as a listener.</param>
|
|
/// <exception cref="T:System.ArgumentNullException">
|
|
/// <paramref name="component" /> or <paramref name="handler" /> is <see langword="null" />.</exception>
|
|
// Token: 0x06000968 RID: 2408 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x6000968")]
|
|
[Address(RVA = "0xC67DD0", Offset = "0xC66DD0", VA = "0x180C67DD0", Slot = "22")]
|
|
public virtual void AddValueChanged(object component, EventHandler handler)
|
|
{
|
|
}
|
|
|
|
/// <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>
|
|
/// <see langword="true" /> if resetting the component changes its value; otherwise, <see langword="false" />.</returns>
|
|
// Token: 0x06000969 RID: 2409
|
|
[Token(Token = "0x6000969")]
|
|
[Address(Slot = "23")]
|
|
public abstract bool CanResetValue(object component);
|
|
|
|
/// <summary>Compares this to another object to see if they are equivalent.</summary>
|
|
/// <param name="obj">The object to compare to this <see cref="T:System.ComponentModel.PropertyDescriptor" />.</param>
|
|
/// <returns>
|
|
/// <see langword="true" /> if the values are equivalent; otherwise, <see langword="false" />.</returns>
|
|
// Token: 0x0600096A RID: 2410 RVA: 0x00005D00 File Offset: 0x00003F00
|
|
[Token(Token = "0x600096A")]
|
|
[Address(RVA = "0xC68140", Offset = "0xC67140", VA = "0x180C68140", Slot = "0")]
|
|
public override bool Equals(object obj)
|
|
{
|
|
return default(bool);
|
|
}
|
|
|
|
/// <summary>Creates an instance of the specified type.</summary>
|
|
/// <param name="type">A <see cref="T:System.Type" /> that represents the type to create.</param>
|
|
/// <returns>A new instance of the type.</returns>
|
|
// Token: 0x0600096B RID: 2411 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x600096B")]
|
|
[Address(RVA = "0xC67F30", Offset = "0xC66F30", VA = "0x180C67F30")]
|
|
protected object CreateInstance(Type type)
|
|
{
|
|
return null;
|
|
}
|
|
|
|
/// <summary>Adds the attributes of the <see cref="T:System.ComponentModel.PropertyDescriptor" /> to the specified list of attributes in the parent class.</summary>
|
|
/// <param name="attributeList">An <see cref="T:System.Collections.IList" /> that lists the attributes in the parent class. Initially, this is empty.</param>
|
|
// Token: 0x0600096C RID: 2412 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x600096C")]
|
|
[Address(RVA = "0xC682E0", Offset = "0xC672E0", VA = "0x180C682E0", Slot = "15")]
|
|
protected override void FillAttributes(IList attributeList)
|
|
{
|
|
}
|
|
|
|
/// <summary>Returns the default <see cref="T:System.ComponentModel.PropertyDescriptorCollection" />.</summary>
|
|
/// <returns>A collection of property descriptor.</returns>
|
|
// Token: 0x0600096D RID: 2413 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x600096D")]
|
|
[Address(RVA = "0xC68440", Offset = "0xC67440", VA = "0x180C68440")]
|
|
public PropertyDescriptorCollection GetChildProperties()
|
|
{
|
|
return null;
|
|
}
|
|
|
|
/// <summary>Returns a <see cref="T:System.ComponentModel.PropertyDescriptorCollection" /> using a specified array of attributes as a filter.</summary>
|
|
/// <param name="filter">An array of type <see cref="T:System.Attribute" /> to use as a filter.</param>
|
|
/// <returns>A <see cref="T:System.ComponentModel.PropertyDescriptorCollection" /> with the properties that match the specified attributes.</returns>
|
|
// Token: 0x0600096E RID: 2414 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x600096E")]
|
|
[Address(RVA = "0xC68420", Offset = "0xC67420", VA = "0x180C68420")]
|
|
public PropertyDescriptorCollection GetChildProperties(Attribute[] filter)
|
|
{
|
|
return null;
|
|
}
|
|
|
|
/// <summary>Returns a <see cref="T:System.ComponentModel.PropertyDescriptorCollection" /> for a given object.</summary>
|
|
/// <param name="instance">A component to get the properties for.</param>
|
|
/// <returns>A <see cref="T:System.ComponentModel.PropertyDescriptorCollection" /> with the properties for the specified component.</returns>
|
|
// Token: 0x0600096F RID: 2415 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x600096F")]
|
|
[Address(RVA = "0xC68530", Offset = "0xC67530", VA = "0x180C68530")]
|
|
public PropertyDescriptorCollection GetChildProperties(object instance)
|
|
{
|
|
return null;
|
|
}
|
|
|
|
/// <summary>Returns a <see cref="T:System.ComponentModel.PropertyDescriptorCollection" /> for a given object using a specified array of attributes as a filter.</summary>
|
|
/// <param name="instance">A component to get the properties for.</param>
|
|
/// <param name="filter">An array of type <see cref="T:System.Attribute" /> to use as a filter.</param>
|
|
/// <returns>A <see cref="T:System.ComponentModel.PropertyDescriptorCollection" /> with the properties that match the specified attributes for the specified component.</returns>
|
|
// Token: 0x06000970 RID: 2416 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6000970")]
|
|
[Address(RVA = "0xC68460", Offset = "0xC67460", VA = "0x180C68460", Slot = "24")]
|
|
public virtual PropertyDescriptorCollection GetChildProperties(object instance, Attribute[] filter)
|
|
{
|
|
return null;
|
|
}
|
|
|
|
/// <summary>Gets an editor of the specified type.</summary>
|
|
/// <param name="editorBaseType">The base type of editor, which is used to differentiate between multiple editors that a property supports.</param>
|
|
/// <returns>An instance of the requested editor type, or <see langword="null" /> if an editor cannot be found.</returns>
|
|
// Token: 0x06000971 RID: 2417 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6000971")]
|
|
[Address(RVA = "0xC68550", Offset = "0xC67550", VA = "0x180C68550", Slot = "25")]
|
|
public virtual object GetEditor(Type editorBaseType)
|
|
{
|
|
return null;
|
|
}
|
|
|
|
/// <summary>Returns the hash code for this object.</summary>
|
|
/// <returns>The hash code for this object.</returns>
|
|
// Token: 0x06000972 RID: 2418 RVA: 0x00005D18 File Offset: 0x00003F18
|
|
[Token(Token = "0x6000972")]
|
|
[Address(RVA = "0xC68920", Offset = "0xC67920", VA = "0x180C68920", Slot = "2")]
|
|
public override int GetHashCode()
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
/// <summary>This method returns the object that should be used during invocation of members.</summary>
|
|
/// <param name="type">The <see cref="T:System.Type" /> of the invocation target.</param>
|
|
/// <param name="instance">The potential invocation target.</param>
|
|
/// <returns>The <see cref="T:System.Object" /> that should be used during invocation of members.</returns>
|
|
// Token: 0x06000973 RID: 2419 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6000973")]
|
|
[Address(RVA = "0xC68980", Offset = "0xC67980", VA = "0x180C68980", Slot = "16")]
|
|
protected override object GetInvocationTarget(Type type, object instance)
|
|
{
|
|
return null;
|
|
}
|
|
|
|
/// <summary>Returns a type using its name.</summary>
|
|
/// <param name="typeName">The assembly-qualified name of the type to retrieve.</param>
|
|
/// <returns>A <see cref="T:System.Type" /> that matches the given type name, or <see langword="null" /> if a match cannot be found.</returns>
|
|
// Token: 0x06000974 RID: 2420 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6000974")]
|
|
[Address(RVA = "0xC68B40", Offset = "0xC67B40", VA = "0x180C68B40")]
|
|
protected Type GetTypeFromName(string typeName)
|
|
{
|
|
return null;
|
|
}
|
|
|
|
/// <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>
|
|
// Token: 0x06000975 RID: 2421
|
|
[Token(Token = "0x6000975")]
|
|
[Address(Slot = "26")]
|
|
public abstract object GetValue(object component);
|
|
|
|
/// <summary>Raises the <c>ValueChanged</c> event that you implemented.</summary>
|
|
/// <param name="component">The object that raises the event.</param>
|
|
/// <param name="e">An <see cref="T:System.EventArgs" /> that contains the event data.</param>
|
|
// Token: 0x06000976 RID: 2422 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x6000976")]
|
|
[Address(RVA = "0xC68E10", Offset = "0xC67E10", VA = "0x180C68E10", Slot = "27")]
|
|
protected virtual void OnValueChanged(object component, EventArgs e)
|
|
{
|
|
}
|
|
|
|
/// <summary>Enables other objects to be notified when this property changes.</summary>
|
|
/// <param name="component">The component to remove the handler for.</param>
|
|
/// <param name="handler">The delegate to remove as a listener.</param>
|
|
/// <exception cref="T:System.ArgumentNullException">
|
|
/// <paramref name="component" /> or <paramref name="handler" /> is <see langword="null" />.</exception>
|
|
// Token: 0x06000977 RID: 2423 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x6000977")]
|
|
[Address(RVA = "0xC68EB0", Offset = "0xC67EB0", VA = "0x180C68EB0", Slot = "28")]
|
|
public virtual void RemoveValueChanged(object component, EventHandler handler)
|
|
{
|
|
}
|
|
|
|
/// <summary>Retrieves the current set of <c>ValueChanged</c> event handlers for a specific component</summary>
|
|
/// <param name="component">The component for which to retrieve event handlers.</param>
|
|
/// <returns>A combined multicast event handler, or <see langword="null" /> if no event handlers are currently assigned to <paramref name="component" />.</returns>
|
|
// Token: 0x06000978 RID: 2424 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6000978")]
|
|
[Address(RVA = "0xC68D90", Offset = "0xC67D90", VA = "0x180C68D90")]
|
|
protected internal EventHandler GetValueChangedHandler(object component)
|
|
{
|
|
return null;
|
|
}
|
|
|
|
/// <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>
|
|
// Token: 0x06000979 RID: 2425
|
|
[Token(Token = "0x6000979")]
|
|
[Address(Slot = "29")]
|
|
public abstract void ResetValue(object component);
|
|
|
|
/// <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>
|
|
// Token: 0x0600097A RID: 2426
|
|
[Token(Token = "0x600097A")]
|
|
[Address(Slot = "30")]
|
|
public abstract void SetValue(object component, object value);
|
|
|
|
/// <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>
|
|
/// <see langword="true" /> if the property should be persisted; otherwise, <see langword="false" />.</returns>
|
|
// Token: 0x0600097B RID: 2427
|
|
[Token(Token = "0x600097B")]
|
|
[Address(Slot = "31")]
|
|
public abstract bool ShouldSerializeValue(object component);
|
|
|
|
/// <summary>Gets a value indicating whether value change notifications for this property may originate from outside the property descriptor.</summary>
|
|
/// <returns>
|
|
/// <see langword="true" /> if value change notifications may originate from outside the property descriptor; otherwise, <see langword="false" />.</returns>
|
|
// Token: 0x170001D8 RID: 472
|
|
// (get) Token: 0x0600097C RID: 2428 RVA: 0x00005D30 File Offset: 0x00003F30
|
|
[Token(Token = "0x170001D8")]
|
|
public virtual bool SupportsChangeEvents
|
|
{
|
|
[Token(Token = "0x600097C")]
|
|
[Address(RVA = "0x424690", Offset = "0x423690", VA = "0x180424690", Slot = "32")]
|
|
get
|
|
{
|
|
return default(bool);
|
|
}
|
|
}
|
|
|
|
// Token: 0x04000583 RID: 1411
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x60")]
|
|
[Token(Token = "0x4000583")]
|
|
private TypeConverter converter;
|
|
|
|
// Token: 0x04000584 RID: 1412
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x68")]
|
|
[Token(Token = "0x4000584")]
|
|
private Hashtable valueChangedHandlers;
|
|
|
|
// Token: 0x04000585 RID: 1413
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x70")]
|
|
[Token(Token = "0x4000585")]
|
|
private object[] editors;
|
|
|
|
// Token: 0x04000586 RID: 1414
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x78")]
|
|
[Token(Token = "0x4000586")]
|
|
private Type[] editorTypes;
|
|
|
|
// Token: 0x04000587 RID: 1415
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x80")]
|
|
[Token(Token = "0x4000587")]
|
|
private int editorCount;
|
|
}
|
|
}
|