Defines an annotation layer to logically group common annotations objects.
public class AnnLayer
Public Class AnnLayer
public sealed class AnnLayer
@interface LTAnnLayer;
public class AnnLayer
function Leadtools.Annotations.Core.AnnLayer()
AnnLayer objects can be used to logically group common annotation objects. An AnnContainer object contains a collection of AnnObjects (AnnContainer.Children) and a collection of AnnLayers (AnnContainer.Layers). The layers are organized in a parent/children tree collection, with the main container defined as the root layer. The parent/children relationship controls the z-order of the objects in the layer as well as how the various hit-test methods are performed on the container. It also controls the z-ordering used when designing or running automation.
Each AnnObject in the container is also included in a layer in the same container (by default, they are added to the root layer which is the container itself).
If required, a layer hierarchy can be created inside the container using the following steps:
After a layer hierarchy is created, you can use the following methods to easily manipulate the layers:
Any layer can be designated as the active layer in the container using AnnContainer.ActiveLayer. The active container is null by default denoting the default layer in the container. When new objects are drawn in the container using automation, they are added to the active container.
The layer hierarchy is automatically saved and loaded using AnnCodecs.
For an example, refer to the AnnotationsLayerDemo in your LEADTOOLS setup.
Products |
Support |
Feedback: AnnLayer Class - Leadtools.Annotations.Core |
Introduction |
Help Version 19.0.2017.3.22
|
Raster .NET | C API | C++ Class Library | JavaScript HTML5
Document .NET | C API | C++ Class Library | JavaScript HTML5
Medical .NET | C API | C++ Class Library | JavaScript HTML5
Medical Web Viewer .NET
Your email has been sent to support! Someone should be in touch! If your matter is urgent please come back into chat.
Chat Hours:
Monday - Friday, 8:30am to 6pm ET
Thank you for your feedback!
Please fill out the form again to start a new chat.
All agents are currently offline.
Chat Hours:
Monday - Friday
8:30AM - 6PM EST
To contact us please fill out this form and we will contact you via email.