Gets a value indicating whether this AnnAutomation is in a state where all objects can be selected.
public virtual bool CanSelectAll {get;}Public Overridable ReadOnly Property CanSelectAll As Booleanpublic:virtual property bool CanSelectAll {bool get();}
true if all objects in this AnnAutomation can be selected; otherwise, false.
If the AnnAutomation contains one or more AnnObject objects, then this property will return true. Selecting an object in AnnAutomation is the equivalent of starting its AnnEditDesigner. Call the SelectAll method to select all of the automation objects.
For information about grouping and ungrouping, refer to Grouping and Ungrouping WPF Annotation Objects.
This example adds a few objects into an automation and then selects and deselects them.
Imports Leadtools.Windows.ControlsImports Leadtools.Windows.AnnotationsPrivate Sub AnnAutomation_CanSelectAll(ByVal automation As AnnAutomation)' first make sure no objects are in this automation containerautomation.Container.Children.Clear()MessageBox.Show(String.Format("CanSelectAll = {0}, CanSelectNone = {1}", automation.CanSelectAll, automation.CanSelectNone))' add two objects to the automationDim rectObj As AnnRectangleObject = New AnnRectangleObject()rectObj.Rect = New Rect(100, 100, 100, 100)rectObj.Stroke = Colors.BluerectObj.StrokeThickness = 1.0rectObj.Fill = Nothingautomation.Container.Children.Add(rectObj)Dim lineObj As AnnLineObject = New AnnLineObject()lineObj.Start = New Point(100, 100)lineObj.End = New Point(200, 200)lineObj.Stroke = Colors.RedlineObj.StrokeThickness = 1.0automation.Container.Children.Add(lineObj)MessageBox.Show(String.Format("CanSelectAll = {0}, CanSelectNone = {1}", automation.CanSelectAll, automation.CanSelectNone))' select all the objectsIf automation.CanSelectAll Thenautomation.SelectAll()MessageBox.Show(String.Format("CanSelectAll = {0}, CanSelectNone = {1}", automation.CanSelectAll, automation.CanSelectNone))End If' deselect all the objectsIf automation.CanSelectNone Thenautomation.SelectNone()MessageBox.Show(String.Format("CanSelectAll = {0}, CanSelectNone = {1}", automation.CanSelectAll, automation.CanSelectNone))End IfEnd Sub
using Leadtools.Windows.Controls;using Leadtools.Windows.Annotations;using Leadtools.Demos;using Leadtools.Help;private void AnnAutomation_CanSelectAll(AnnAutomation automation){// first make sure no objects are in this automation containerautomation.Container.Children.Clear();MessageBox.Show(String.Format("CanSelectAll = {0}, CanSelectNone = {1}", automation.CanSelectAll, automation.CanSelectNone));// add two objects to the automationAnnRectangleObject rectObj = new AnnRectangleObject();rectObj.Rect = new Rect(100, 100, 100, 100);rectObj.Stroke = Colors.Blue;rectObj.Fill = Colors.Transparent;rectObj.StrokeThickness = 1.0;automation.Container.Children.Add(rectObj);AnnLineObject lineObj = new AnnLineObject();lineObj.Start = new Point(100, 100);lineObj.End = new Point(200, 200);lineObj.Stroke = Colors.Red;lineObj.StrokeThickness = 1.0;automation.Container.Children.Add(lineObj);MessageBox.Show(String.Format("CanSelectAll = {0}, CanSelectNone = {1}", automation.CanSelectAll, automation.CanSelectNone));// select all the objectsif(automation.CanSelectAll){automation.SelectAll();MessageBox.Show(String.Format("CanSelectAll = {0}, CanSelectNone = {1}", automation.CanSelectAll, automation.CanSelectNone));}// deselect all the objectsif(automation.CanSelectNone){automation.SelectNone();MessageBox.Show(String.Format("CanSelectAll = {0}, CanSelectNone = {1}", automation.CanSelectAll, automation.CanSelectNone));}}
using Leadtools.Windows.Controls;using Leadtools.Windows.Annotations;using Leadtools.Examples;using Leadtools.Silverlight.Demos;private void AnnAutomation_CanSelectAll(AnnAutomation automation){// first make sure no objects are in this automation containerautomation.Container.Children.Clear();MessageBox.Show(String.Format("CanSelectAll = {0}, CanSelectNone = {1}", automation.CanSelectAll, automation.CanSelectNone));// add two objects to the automationAnnRectangleObject rectObj = new AnnRectangleObject();rectObj.Rect = new Rect(100, 100, 100, 100);rectObj.Stroke = Colors.Blue;rectObj.Fill = Colors.Transparent;rectObj.StrokeThickness = 1.0;automation.Container.Children.Add(rectObj);AnnLineObject lineObj = new AnnLineObject();lineObj.Start = new Point(100, 100);lineObj.End = new Point(200, 200);lineObj.Stroke = Colors.Red;lineObj.StrokeThickness = 1.0;automation.Container.Children.Add(lineObj);MessageBox.Show(String.Format("CanSelectAll = {0}, CanSelectNone = {1}", automation.CanSelectAll, automation.CanSelectNone));// select all the objectsif(automation.CanSelectAll){automation.SelectAll();MessageBox.Show(String.Format("CanSelectAll = {0}, CanSelectNone = {1}", automation.CanSelectAll, automation.CanSelectNone));}// deselect all the objectsif(automation.CanSelectNone){automation.SelectNone();MessageBox.Show(String.Format("CanSelectAll = {0}, CanSelectNone = {1}", automation.CanSelectAll, automation.CanSelectNone));}}
Imports Leadtools.Windows.ControlsImports Leadtools.Windows.AnnotationsImports Leadtools.Silverlight.DemosPrivate Sub AnnAutomation_CanSelectAll(ByVal automation As AnnAutomation)' first make sure no objects are in this automation containerautomation.Container.Children.Clear()MessageBox.Show(String.Format("CanSelectAll = {0}, CanSelectNone = {1}", automation.CanSelectAll, automation.CanSelectNone))' add two objects to the automationDim rectObj As AnnRectangleObject = New AnnRectangleObject()rectObj.Rect = New Rect(100, 100, 100, 100)rectObj.Stroke = Colors.BluerectObj.Fill = Colors.TransparentrectObj.StrokeThickness = 1.0automation.Container.Children.Add(rectObj)Dim lineObj As AnnLineObject = New AnnLineObject()lineObj.Start = New Point(100, 100)lineObj.End = New Point(200, 200)lineObj.Stroke = Colors.RedlineObj.StrokeThickness = 1.0automation.Container.Children.Add(lineObj)MessageBox.Show(String.Format("CanSelectAll = {0}, CanSelectNone = {1}", automation.CanSelectAll, automation.CanSelectNone))' select all the objectsIf automation.CanSelectAll Thenautomation.SelectAll()MessageBox.Show(String.Format("CanSelectAll = {0}, CanSelectNone = {1}", automation.CanSelectAll, automation.CanSelectNone))End If' deselect all the objectsIf automation.CanSelectNone Thenautomation.SelectNone()MessageBox.Show(String.Format("CanSelectAll = {0}, CanSelectNone = {1}", automation.CanSelectAll, automation.CanSelectNone))End IfEnd Sub
|
Products |
Support |
Feedback: CanSelectAll Property - Leadtools.Windows.Annotations |
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.