Gets a value that indicates whether this AnnAutomation can bring the currently selected object(s) up in the Z-order.
public virtual bool CanBringToFront {get;}Public Overridable ReadOnly Property CanBringToFront As Booleanpublic:virtual property bool CanBringToFront {bool get();}
true if this AnnAutomation can bring the currently selected object(s) up in the Z-order; otherwise, false.
Call the BringToFront method to bring the object up in the Z-order.
Imports Leadtools.Windows.ControlsImports Leadtools.Windows.AnnotationsPrivate Sub AnnAutomation_CanBringToFront(ByVal automation As AnnAutomation)' first make sure no objects are in this automation containerautomation.Container.Children.Clear()' add three objects to the automationDim brush() As Color = {Colors.Red, Colors.Green, Colors.Blue}Dim rectObj As AnnRectangleObject() = New AnnRectangleObject(2) {}Dim x As Integer = 100Dim y As Integer = 100For i As Integer = 0 To 2rectObj(i) = New AnnRectangleObject()rectObj(i).Rect = New Rect(x, y, 100, 100)rectObj(i).Stroke = Colors.BluerectObj(i).StrokeThickness = 2.0rectObj(i).Fill = brush(i)rectObj(i).Header = String.Format("Rectangle {0}", i + 1)rectObj(i).IsHeaderVisible = Trueautomation.Container.Children.Add(rectObj(i))x += 25y += 25Next iMessageBox.Show("Rectangle1 -> Rectangle2 -> Rectangle3. Now will select Rectangle1 and move it up")' select rectangle 1 then move it one up in the Z-orderautomation.StartEditing(rectObj(0), False)If automation.CanBringToFront Thenautomation.BringToFront(False)End IfMessageBox.Show("Rectangle2 -> Rectangle1 -> Rectangle3. Now will select Rectangle3 and move it down")' select rectangle 3 then move it down in the Z-orderautomation.StartEditing(rectObj(2), False)If automation.CanSendToBack Thenautomation.SendToBack(False)End IfMessageBox.Show("Rectangle2 -> Rectangle3 -> Rectangle1. Now will select Rectangle2 and move to top")' select rectangle 2 then move it to first of Z-orderautomation.StartEditing(rectObj(1), False)If automation.CanBringToFirst Thenautomation.BringToFront(True)End IfMessageBox.Show("Rectangle3 -> Rectangle1 -> Rectangle2. Now will select Rectangle2 and move to the bottom")' select rectangle 2 then move it to bottom of Z-orderautomation.StartEditing(rectObj(1), False)If automation.CanSendToLast Thenautomation.SendToBack(True)End IfEnd Sub
using Leadtools.Windows.Controls;using Leadtools.Windows.Annotations;using Leadtools.Demos;using Leadtools.Help;private void AnnAutomation_CanBringToFront(AnnAutomation automation){// first make sure no objects are in this automation containerautomation.Container.Children.Clear();// add three objects to the automationColor[] brush = { Colors.Red, Colors.Green, Colors.Blue };AnnRectangleObject[] rectObj = new AnnRectangleObject[3];int x = 100;int y = 100;for(int i = 0; i < 3; i++){rectObj[i] = new AnnRectangleObject();rectObj[i].Rect = new Rect(x, y, 100, 100);rectObj[i].Stroke = Colors.Blue;rectObj[i].Fill = brush[i];rectObj[i].StrokeThickness = 2.0;rectObj[i].Header = String.Format("Rectangle {0}", i + 1);rectObj[i].IsHeaderVisible = true;automation.Container.Children.Add(rectObj[i]);x += 25;y += 25;}MessageBox.Show("Rectangle1 -> Rectangle2 -> Rectangle3. Now will select Rectangle1 and move it up");// select rectangle 1 then move it one up in the Z-orderautomation.StartEditing(rectObj[0], false);if(automation.CanBringToFront)automation.BringToFront(false);MessageBox.Show("Rectangle2 -> Rectangle1 -> Rectangle3. Now will select Rectangle3 and move it down");// select rectangle 3 then move it down in the Z-orderautomation.StartEditing(rectObj[2], false);if(automation.CanSendToBack)automation.SendToBack(false);MessageBox.Show("Rectangle2 -> Rectangle3 -> Rectangle1. Now will select Rectangle2 and move to top");// select rectangle 2 then move it to first of Z-orderautomation.StartEditing(rectObj[1], false);if(automation.CanBringToFirst)automation.BringToFront(true);MessageBox.Show("Rectangle3 -> Rectangle1 -> Rectangle2. Now will select Rectangle2 and move to the bottom");// select rectangle 2 then move it to bottom of Z-orderautomation.StartEditing(rectObj[1], false);if(automation.CanSendToLast)automation.SendToBack(true);}
using Leadtools.Windows.Controls;using Leadtools.Windows.Annotations;using Leadtools.Examples;using Leadtools.Silverlight.Demos;private void AnnAutomation_CanBringToFront(AnnAutomation automation){// first make sure no objects are in this automation containerautomation.Container.Children.Clear();// add three objects to the automationColor[] brush = { Colors.Red, Colors.Green, Colors.Blue };AnnRectangleObject[] rectObj = new AnnRectangleObject[3];int x = 100;int y = 100;for(int i = 0; i < 3; i++){rectObj[i] = new AnnRectangleObject();rectObj[i].Rect = new Rect(x, y, 100, 100);rectObj[i].Stroke = Colors.Blue;rectObj[i].Fill = brush[i];rectObj[i].StrokeThickness = 2.0;rectObj[i].Header = String.Format("Rectangle {0}", i + 1);rectObj[i].IsHeaderVisible = true;automation.Container.Children.Add(rectObj[i]);x += 25;y += 25;}MessageBox.Show("Rectangle1 -> Rectangle2 -> Rectangle3. Now will select Rectangle1 and move it up");// select rectangle 1 then move it one up in the Z-orderautomation.StartEditing(rectObj[0], false);if(automation.CanBringToFront)automation.BringToFront(false);MessageBox.Show("Rectangle2 -> Rectangle1 -> Rectangle3. Now will select Rectangle3 and move it down");// select rectangle 3 then move it down in the Z-orderautomation.StartEditing(rectObj[2], false);if(automation.CanSendToBack)automation.SendToBack(false);MessageBox.Show("Rectangle2 -> Rectangle3 -> Rectangle1. Now will select Rectangle2 and move to top");// select rectangle 2 then move it to first of Z-orderautomation.StartEditing(rectObj[1], false);if(automation.CanBringToFirst)automation.BringToFront(true);MessageBox.Show("Rectangle3 -> Rectangle1 -> Rectangle2. Now will select Rectangle2 and move to the bottom");// select rectangle 2 then move it to bottom of Z-orderautomation.StartEditing(rectObj[1], false);if(automation.CanSendToLast)automation.SendToBack(true);}
Imports Leadtools.Windows.ControlsImports Leadtools.Windows.AnnotationsImports Leadtools.Silverlight.DemosPrivate Sub AnnAutomation_CanBringToFront(ByVal automation As AnnAutomation)' first make sure no objects are in this automation containerautomation.Container.Children.Clear()' add three objects to the automationDim brush As Color() = { Colors.Red, Colors.Green, Colors.Blue }Dim rectObj As AnnRectangleObject() = New AnnRectangleObject(2){}Dim x As Integer = 100Dim y As Integer = 100For i As Integer = 0 To 2rectObj(i) = New AnnRectangleObject()rectObj(i).Rect = New Rect(x, y, 100, 100)rectObj(i).Stroke = Colors.BluerectObj(i).Fill = brush(i)rectObj(i).StrokeThickness = 2.0rectObj(i).Header = String.Format("Rectangle {0}", i + 1)rectObj(i).IsHeaderVisible = Trueautomation.Container.Children.Add(rectObj(i))x += 25y += 25Next iMessageBox.Show("Rectangle1 -> Rectangle2 -> Rectangle3. Now will select Rectangle1 and move it up")' select rectangle 1 then move it one up in the Z-orderautomation.StartEditing(rectObj(0), False)If automation.CanBringToFront Thenautomation.BringToFront(False)End IfMessageBox.Show("Rectangle2 -> Rectangle1 -> Rectangle3. Now will select Rectangle3 and move it down")' select rectangle 3 then move it down in the Z-orderautomation.StartEditing(rectObj(2), False)If automation.CanSendToBack Thenautomation.SendToBack(False)End IfMessageBox.Show("Rectangle2 -> Rectangle3 -> Rectangle1. Now will select Rectangle2 and move to top")' select rectangle 2 then move it to first of Z-orderautomation.StartEditing(rectObj(1), False)If automation.CanBringToFirst Thenautomation.BringToFront(True)End IfMessageBox.Show("Rectangle3 -> Rectangle1 -> Rectangle2. Now will select Rectangle2 and move to the bottom")' select rectangle 2 then move it to bottom of Z-orderautomation.StartEditing(rectObj(1), False)If automation.CanSendToLast Thenautomation.SendToBack(True)End IfEnd Sub
|
Products |
Support |
Feedback: CanBringToFront 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.