Class IGeoObjectImpl.ChangingAttribute
Helper class to wrap the setting of an attribute. Usually used in this way:
using (new ChangingAttribute(this,atrName,attribute))
{
// ... set the attribute here ...
}
This will call FireWillChange(GeoObjectChange) before the attribute is changed and FireDidChange(GeoObjectChange) after the attribute was changed.
Implements
System.IDisposable
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: CADability.GeoObject
Assembly: CADability.dll
Syntax
protected class ChangingAttribute : IGeoObjectImpl.Changing, IDisposable
Constructors
| Improve this Doc View SourceChangingAttribute(IGeoObjectImpl, String, Object)
Creates a ChangingAttribute
Declaration
public ChangingAttribute(IGeoObjectImpl geoObject, string propertyName, object propertyValue)
Parameters
| Type | Name | Description |
|---|---|---|
| IGeoObjectImpl | geoObject | causing GeoObject |
| System.String | propertyName | name of the property to set the attribute |
| System.Object | propertyValue | the attribute beeing set |
Implements
System.IDisposable