Show / Hide Table of Contents

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.

Inheritance
System.Object
IGeoObjectImpl.Changing
IGeoObjectImpl.ChangingAttribute
Implements
System.IDisposable
Inherited Members
IGeoObjectImpl.Changing.NoUndoNecessary()
IGeoObjectImpl.Changing.Dispose()
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 Source

ChangingAttribute(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
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX