TypeProperty

References
public sealed class TypeProperty
A proxy to icon properties.

Constructors

TypeProperty

#
public TypeProperty(object target, string name, MethodInfo getter, MethodInfo setter)
Set up a new icon property.
target (object)Owner instance.
name (string)Name of property.
getter (MethodInfo)Getter method.
setter (MethodInfo)Setter method.

Properties

AttributeNumericRange

#
public UiNumber AttributeNumericRange { get; set; }
Gets or sets the numeric range. Typically this data is harvested from the property attributes, but you are allowed to override it.

Name

#
public string Name { get; }
Gets the name of this property.

Type

#
public Type Type { get; }
Gets the type of the property value.

Value

#
public object Value { get; }
Gets the current value of this property.

Methods

AttemptSetValue

#
public bool AttemptSetValue(object newValue)
Attempt to set a new value to this property.
newValue (object)New value.
True if assignment worked.