LEADTOOLS WinRT (Leadtools.Annotations.Core)
LEAD Technologies, Inc

AnnObject Property (AnnSerializeObjectEventArgs)


Gets or sets the annotation object being loaded or saved. WinRT support
Syntax
public AnnObject AnnObject {get; set;}
 get_AnnObject();
set_AnnObject(value);

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: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

AnnSerializeObjectEventArgs Class
AnnSerializeObjectEventArgs Members

 

 


Products | Support | Contact Us | Copyright Notices

© 2006-2012 All Rights Reserved. LEAD Technologies, Inc.