(Leadtools.Annotations.Core)

AnnObject Property (AnnSerializeObjectEventArgs)

Show in webframe





Gets or sets the annotation object being loaded or saved.
Syntax
public AnnObject AnnObject {get; set;}
Public Property AnnObject As AnnObject
public AnnObject AnnObject {get; set;}
@property (nonatomic) LTAnnObject* annObject;
public AnnObject getAnnObject()
public void setAnnObject(AnnObject object)
            
 
get_AnnObject();
set_AnnObject(value);
Object.defineProperty('AnnObject');

Property Value

The annotation object being loaded or saved.
Remarks

If this object is triggered with the AnnDeserializeOptions.DeserializeObject event, then the value of this property contains null and the object type name being saved is in TypeName. You have the following course of action:

If this object is trigged with the AnnDeserializeOptions.DeserializeObjectError event, then the value of this property is null and means AnnCodecs could not create the instance of an object of type TypeName. If it is possible to create AnnObject yourself in this situation, then set its instance into AnnObject to allow the codecs object to continue loading its properties. Another option is to set SkipObject to true to instruct AnnCodecs to ignore the error, skip loading this object and continue to the next.

If this object is trigged with the AnnSerializeOptions.SerializeObject event, then the value of this property is null and is not used.

Example

For an example, refer to AnnSerializeOptions and AnnDeserializeOptions.

Requirements

Target Platforms

See Also

Reference

AnnSerializeObjectEventArgs Class
AnnSerializeObjectEventArgs Members

 

 


Products | Support | Contact Us | Copyright Notices
© 2006-2014 All Rights Reserved. LEAD Technologies, Inc.