Class GeoObjectChange
This class is used as a parameter in the ChangeDelegate event of IGeoObject (see WillChangeEvent).
Inherited Members
Namespace: CADability.GeoObject
Assembly: CADability.dll
Syntax
public class GeoObjectChange : ReversibleChange
Constructors
| Improve this Doc View SourceGeoObjectChange(IGeoObject, ModOp)
Creates a new GeoObjectChange object that reflects a modification by the ModOp m.
Declaration
public GeoObjectChange(IGeoObject objectToChange, ModOp m)
Parameters
| Type | Name | Description |
|---|---|---|
| IGeoObject | objectToChange | The object which will be or was changed |
| ModOp | m | the ModOp that changes or changed the object |
GeoObjectChange(IGeoObject, String, Object[])
Creates a new GeoObjectChange object. See the appropriate constructor of ReversibleChange for details.
Declaration
public GeoObjectChange(IGeoObject objectToChange, string methodOrPropertyName, params object[] parameters)
Parameters
| Type | Name | Description |
|---|---|---|
| IGeoObject | objectToChange | The object which will be or was changed |
| System.String | methodOrPropertyName | the case sensitive name of the method or property |
| System.Object[] | parameters | The parameters neede to call this method or property |
GeoObjectChange(IGeoObject, Type, String, Object[])
Creates a new GeoObjectChange object. See the appropriate constructor of ReversibleChange for details.
Declaration
public GeoObjectChange(IGeoObject objectToChange, Type interfaceForMethod, string methodOrPropertyName, params object[] parameters)
Parameters
| Type | Name | Description |
|---|---|---|
| IGeoObject | objectToChange | The object which will be or was changed |
| System.Type | interfaceForMethod | the interface on which contains the method or property |
| System.String | methodOrPropertyName | the case sensitive name of the method or property |
| System.Object[] | parameters | The parameters neede to call this method or property |
Fields
| Improve this Doc View SourceNoUndoNecessary
Notifies that this change doesn't require an undo operation
Declaration
public bool NoUndoNecessary
Field Value
| Type | Description |
|---|---|
| System.Boolean |
OnlyAttributeChanged
Notifies that only an attribute was changed in contrast to a change of the geometry.
Declaration
public bool OnlyAttributeChanged
Field Value
| Type | Description |
|---|---|
| System.Boolean |