Class Record
- Namespace
- Myra.Graphics2D.UI.Properties
- Assembly
- Myra.dll
Abstract base class representing a record for property editing in the property grid.
public abstract class Record
- Inheritance
-
Record
- Inherited Members
Properties
Category
Gets or sets the category that this record belongs to.
public string Category { get; set; }
Property Value
HasSetter
Gets or sets a value indicating whether this record has a setter method or property.
public bool HasSetter { get; set; }
Property Value
Name
Gets the name of the record.
public abstract string Name { get; }
Property Value
Type
Gets the type of the value represented by this record.
public abstract Type Type { get; }
Property Value
Methods
FindAttribute<T>()
Finds an attribute of the specified type on this record.
public abstract T FindAttribute<T>() where T : Attribute
Returns
- T
The attribute of the specified type, or null if not found.
Type Parameters
TThe type of attribute to find.
GetValue(object)
Gets the value of this record from the specified object.
public abstract object GetValue(object obj)
Parameters
objobjectThe object to get the value from.
Returns
- object
The value of the record.
SetValue(object, object)
Sets the value of this record on the specified object.
public abstract void SetValue(object obj, object value)