static LAnnotation * LAnnotation::CreateAnnObject(hAnnObject)
Creates an annotation class object of the specified type. You can use this static function to get a proper annotation class object that is compatible and of the same type as the passed annotation handle.
Handle of the annotation object.
A pointer to the created annotation class object.
The passed annotation handle will be associated with the created annotation class object. You can get the type of the returned object by calling LAnnotation::GetType. Then you can cast the returned pointer to the correct type.
You are responsible for deleting the created object.
For an example, refer to LAnnotation::CutToClipboard.
Medical Web Viewer .NET
.NET, Java, Android, and iOS/macOS Assemblies
C API/C++ Class Libraries