Table of Contents

Class ChangeEventArgs

Namespace
CADability.Attribute
Assembly
CADability.dll

Arguments of the AttributeChangeDelegate events, with which an attribute (currently only ColorDef) announces the change of one of its properties: PropertyName says which property changes and CurrentValue holds its value at the time the event is raised.

public class ChangeEventArgs : EventArgs
Inheritance
ChangeEventArgs
Inherited Members

Constructors

ChangeEventArgs()

Creates empty event arguments; PropertyName and CurrentValue have to be set afterwards.

public ChangeEventArgs()

ChangeEventArgs(string, object)

Creates the event arguments for the change of the given property.

public ChangeEventArgs(string propertyName, object currentValue)

Parameters

propertyName string

name of the property that changes, e.g. "ColorDef.Color"

currentValue object

the value of the property when the event is raised

Fields

CurrentValue

The value of the property at the time the event is raised: the old value in the "will change" event, the new value in the "did change" event.

public object CurrentValue

Field Value

object

PreviuosEvent

Intended to chain the arguments of a preceding event. It is never set by CADability and is always null.

public ChangeEventArgs PreviuosEvent

Field Value

ChangeEventArgs

PropertyName

The name of the property that is changing, qualified by the type, e.g. "ColorDef.Color" or "ColorDef.Source".

public string PropertyName

Field Value

string