Visual Basic (Declaration) | |
---|---|
Public Shared UserObjectId As Integer |
Visual Basic (Usage) | Copy Code |
---|---|
|
C# | |
---|---|
public static int UserObjectId |
C++/CLI | |
---|---|
public: static int UserObjectId |
(Read only) This field is used when automating user-defined AnnObjectBase 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. For more information and an example, refer to the Implement User Defined Objects with LEADTOOLS WPF Annotations.
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.
Target Platforms: Microsoft .NET Framework 3.0, Windows XP, Windows Vista, and Windows Server 2003 family