Visual Basic (Declaration) | |
---|---|
Public Overridable Property ObjectsDirty As Boolean |
Visual Basic (Usage) | Copy Code |
---|---|
|
C# | |
---|---|
public virtual bool ObjectsDirty {get; set;} |
XAML Attributes Usage | |
---|---|
<object ObjectsDirty=bool .../> |
XAML Attributes Usage | |
---|---|
<object ObjectsDirty=bool .../> |
Return Value
true if one or more objects in this AnnAutomation have been changed; otherwise false.
Visual Basic | Copy Code |
---|---|
Private Sub AnnAutomation_ObjectsDirty(ByVal automation As AnnAutomation) |
C# | Copy Code |
---|---|
private 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 AnnAutomation.Flip or AnnAutomation.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 AnnAutomation.BeforeObjectChanged event is fired before any object is about to change.
The AnnAutomation.AfterObjectChanged event is fired after any object has been changed. Internally, when the AnnAutomation sets the value of the ObjectsDirty property to true the AnnAutomation.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 3.0, Windows XP, Windows Vista, and Windows Server 2003 family