Gets or sets the selection object used by this AnnContainer.
Object.defineProperty(AnnContainer.prototype, 'selectionObject',
get: function(),
set: function(value)
)
selectionObject: AnnSelectionObject;
The AnnSelectionObject used by this AnnContainer. The default value is a new AnnSelectionObject instance with its Stroke set to a dark green AnnStroke object with length of 2. This value cannot be null.
The selection object is always in the container and contains a collection (AnnSelectionObject.SelectedObjects) that holds references to the objects that are in a selected state. This object is used by the automation framework when multiple objects are selected and when drawing the selection "rectangle".
The style of this selection object can be changed from the default (dark green stroke of length 2) or you can derive your own custom object from AnnSelectionObject and use set it in this property.
The objects inside SelectionObject.SelectedObjects must be objects that already exist in the container, the automation frameworks keep this data in synch, therefore, use the AnnAutomation.SelectObject and AnnAutomation.SelectObjects methods to select and unselect objects from the container.
For more information, refer to the automation section in Programming with LEADTOOLS Annotations.
example: function SiteLibrary_DefaultPage$example() {
// Get the selection object of the container
var container = this._automation.get_container();
var selectionObject = container.get_selectionObject();
// Change its stroke
selectionObject.set_stroke(lt.Annotations.Core.AnnStroke.create("black"), lt.LeadLengthD.create(1));
alert("Use the new selection object now");
},
Products |
Support |
Feedback: selectionObject Property (AnnContainer) - Leadtools.Annotations.Core |
Introduction |
Help Version 19.0.2017.3.21
|
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.