LEADTOOLS Annotations for WPF and Silverlight (Leadtools.Windows.Annotations assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.31
UserObjectId Field
See Also 
Leadtools.Windows.Annotations Namespace > AnnAutomationManager Class : UserObjectId Field



The automation ID for user-defined AnnObject derived classes. Supported in Silverlight, Windows Phone 7

Syntax

Visual Basic (Declaration) 
Public Const UserObjectId As Integer
Visual Basic (Usage)Copy Code
Dim value As Integer
 
value = AnnAutomationManager.UserObjectId
C# 
public const int UserObjectId
C++/CLI 
public:
const int UserObjectId

Remarks

(Read only) This field is used when automating user-defined AnnObject derived classes. Assign this value as the AnnAutomationObject.Id property when creating the AnnAutomationObject for the first user-defined object you have. Assign UserObjectId + 1 to the second, UserObjectId + 2 to the third and so on. .

Each automation object must have an object ID that is a unique integer value. The AnnAutomationManager class defines the object IDs for the default annotation objects such as LineObjectId and RectangleObjectId. For user-defined objects, use the UserObjectId first and then add 1 to this value for each new user object.

Requirements

Target Platforms: Silverlight 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7, MAC OS/X (Intel Only)

See Also

UserObjectId requires a Document/Medical product license and unlock key. For more information, refer to: Imaging Pro/Document/Medical Features and Unlocking Special LEAD Features.