Table of Contents

Class GeoObjectChange

Namespace
CADability.GeoObject
Assembly
CADability.dll

This class is used as a parameter in the ChangeDelegate event of IGeoObject (see WillChangeEvent).

public class GeoObjectChange : ReversibleChange
Inheritance
GeoObjectChange
Inherited Members

Constructors

GeoObjectChange(IGeoObject, ModOp)

Creates a new GeoObjectChange object that reflects a modification by the ModOp m.

public GeoObjectChange(IGeoObject objectToChange, ModOp m)

Parameters

objectToChange IGeoObject

The object which will be or was changed

m ModOp

the ModOp that changes or changed the object

GeoObjectChange(IGeoObject, string, GeoObjectList)

Creates a new GeoObjectChange with a single GeoObjectList parameter. See the according constructor of ReversibleChange for why this overload is required.

public GeoObjectChange(IGeoObject objectToChange, string methodOrPropertyName, GeoObjectList parameter)

Parameters

objectToChange IGeoObject

The object which will be or was changed

methodOrPropertyName string

the case sensitive name of the method or property

parameter GeoObjectList

the list to pass as a single parameter

GeoObjectChange(IGeoObject, string, object)

public GeoObjectChange(IGeoObject objectToChange, string methodOrPropertyName, object parameter)

Parameters

objectToChange IGeoObject
methodOrPropertyName string
parameter object

GeoObjectChange(IGeoObject, string, params object[])

Creates a new GeoObjectChange object. See the appropriate constructor of ReversibleChange for details.

public GeoObjectChange(IGeoObject objectToChange, string methodOrPropertyName, params object[] parameters)

Parameters

objectToChange IGeoObject

The object which will be or was changed

methodOrPropertyName string

the case sensitive name of the method or property

parameters object[]

The parameters needed to call this method or property

GeoObjectChange(IGeoObject, Type, string, params object[])

Creates a new GeoObjectChange object. See the appropriate constructor of ReversibleChange for details.

public GeoObjectChange(IGeoObject objectToChange, Type interfaceForMethod, string methodOrPropertyName, params object[] parameters)

Parameters

objectToChange IGeoObject

The object which will be or was changed

interfaceForMethod Type

the interface on which contains the method or property

methodOrPropertyName string

the case sensitive name of the method or property

parameters object[]

The parameters needed to call this method or property

Fields

NoUndoNecessary

Notifies that this change doesn't require an undo operation

public bool NoUndoNecessary

Field Value

bool

OnlyAttributeChanged

Notifies that only an attribute was changed in contrast to a change of the geometry.

public bool OnlyAttributeChanged

Field Value

bool