Table of Contents

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

string

HasSetter

Gets or sets a value indicating whether this record has a setter method or property.

public bool HasSetter { get; set; }

Property Value

bool

Name

Gets the name of the record.

public abstract string Name { get; }

Property Value

string

Type

Gets the type of the value represented by this record.

public abstract Type Type { get; }

Property Value

Type

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

T

The type of attribute to find.

GetValue(object)

Gets the value of this record from the specified object.

public abstract object GetValue(object obj)

Parameters

obj object

The 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)

Parameters

obj object

The object to set the value on.

value object

The new value to set.