Visual Basic (Declaration) | |
---|---|
Public Overridable Property ObjectsDirty As Boolean |
Visual Basic (Usage) | Copy Code |
---|---|
|
C# | |
---|---|
public virtual bool ObjectsDirty {get; set;} |
Managed Extensions for C++ | |
---|---|
public: __property virtual bool get_ObjectsDirty(); public: __property virtual void set_ObjectsDirty( bool value ); |
Return Value
true if one or more objects in this AnnAutomation have been changed; otherwise false.Visual Basic | Copy Code |
---|---|
Public Sub AnnAutomation_ObjectsDirty(ByVal automation As AnnAutomation) |
C# | Copy Code |
---|---|
public void AnnAutomation_ObjectsDirty(AnnAutomation automation) |
The objects in the automation can change in multiple ways: calling most of the methods of this AnnAutomation will usually change the objects. For example, calling the Flip or Delete methods will change this value. Adding new objects to this AnnAutomation will also set the value of this property to true as will deleting objects.
You should check the value of this property in your application and save the objects back to the annotation file if the value of this property is true. You should set the value of this property to false after you do so to indicate that the objects are up to date.
The BeforeObjectChanged event is fired before any object is about to change.
The AfterObjectChanged event is fired after any object has been changed. Internally, when the AnnAutomation sets the value of the ObjectsDirty property to true the AfterObjectChanged event fires.
The value of this property gets updated only when the objects are changed by calling one of the AnnAutomation methods or by the user interface. If you add or edit or delete objects manually through code (for example, by adding objects manually to the Container), the value of this property will not be updated. You need to set the value of the ObjectsDirty property to true manually as well in this case.
Target Platforms: Microsoft .NET Framework 2.0, Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family