Flips the objects that are currently being edited (selected) in this AnnAutomation.
public virtual void Flip(bool horizontal)
Public Overridable Sub Flip( _ByVal horizontal As Boolean _)
public:virtual void Flip(bool horizontal)
horizontal
true to flip the object horizontally (reverse); false to flip the object vertically.
AnnAutomation can flip one or more AnnObject if they are currently in edit mode (selected) and these objects are not locked.
If objects are grouped together, the group is flipped as a unit.
Call the CanFlip property to determine whether you can call this method.
using Leadtools.Windows.Controls;using Leadtools.Windows.Annotations;using Leadtools.Demos;using Leadtools.Help;private void AnnAutomation_Flip(AnnAutomation automation){// make sure no objects are selectedautomation.SelectNone();// see if we can flip? (should say no)if (!automation.CanFlip)MessageBox.Show("Cannot flip objects because no objects are selected");// add a text object and select itAnnTextObject text = new AnnTextObject();text.Text = "Flip Me!";text.FontFamilyName = "Arial";text.FontSize = 20;text.Foreground = Colors.Red;text.FontWeight = AnnFontWeight.Bold;text.Rect = new Rect(100, 100, 200, 200);automation.Container.Children.Add(text);automation.StartEditing(text, false);// flip this object verticallyMessageBox.Show("Now we are going to flip this text vertically");if (automation.CanFlip)automation.Flip(false);// flip this object horizontally (reverse)MessageBox.Show("Now we are going to flip this text horizontally (reverse it)");if (automation.CanFlip)automation.Flip(true);}
Imports Leadtools.Windows.ControlsImports Leadtools.Windows.AnnotationsPrivate Sub AnnAutomation_Flip(ByVal automation As AnnAutomation)' make sure no objects are selectedautomation.SelectNone()' see if we can flip? (should say no)If (Not automation.CanFlip) ThenMessageBox.Show("Cannot flip objects because no objects are selected")End If' add a text object and select itDim text As AnnTextObject = New AnnTextObject()text.FontFamilyName = "Arial"text.FontSize = 20text.FontWeight = AnnFontWeight.Boldtext.Foreground = Colors.Redtext.Text = "Flip Me!"text.Rect = New Rect(100, 100, 200, 200)automation.Container.Children.Add(text)automation.StartEditing(text, False)' flip this object verticallyMessageBox.Show("Now we are going to flip this text vertically")If automation.CanFlip Thenautomation.Flip(False)End If' flip this object horizontally (reverse)MessageBox.Show("Now we are going to flip this text horizontally (reverse it)")If automation.CanFlip Thenautomation.Flip(True)End IfEnd Sub
using Leadtools.Windows.Controls;using Leadtools.Windows.Annotations;using Leadtools.Examples;using Leadtools.Silverlight.Demos;//using Leadtools.Help;private void AnnAutomation_Flip(AnnAutomation automation){// make sure no objects are selectedautomation.SelectNone();// see if we can flip? (should say no)if (!automation.CanFlip)MessageBox.Show("Cannot flip objects because no objects are selected");// add a text object and select itAnnTextObject text = new AnnTextObject();text.Text = "Flip Me!";text.FontFamilyName = "Arial";text.FontSize = 20;text.Foreground = Colors.Red;text.FontWeight = AnnFontWeight.Bold;text.Rect = new Rect(100, 100, 200, 200);automation.Container.Children.Add(text);automation.StartEditing(text, false);// flip this object verticallyMessageBox.Show("Now we are going to flip this text vertically");if (automation.CanFlip)automation.Flip(false);// flip this object horizontally (reverse)MessageBox.Show("Now we are going to flip this text horizontally (reverse it)");if (automation.CanFlip)automation.Flip(true);}
Imports Leadtools.Windows.ControlsImports Leadtools.Windows.AnnotationsImports Leadtools.Silverlight.Demos'using Leadtools.Help;Private Sub AnnAutomation_Flip(ByVal automation As AnnAutomation)' make sure no objects are selectedautomation.SelectNone()' see if we can flip? (should say no)If (Not automation.CanFlip) ThenMessageBox.Show("Cannot flip objects because no objects are selected")End If' add a text object and select itDim text As AnnTextObject = New AnnTextObject()text.Text = "Flip Me!"text.FontFamilyName = "Arial"text.FontSize = 20text.Foreground = Colors.Redtext.FontWeight = AnnFontWeight.Boldtext.Rect = New Rect(100, 100, 200, 200)automation.Container.Children.Add(text)automation.StartEditing(text, False)' flip this object verticallyMessageBox.Show("Now we are going to flip this text vertically")If automation.CanFlip Thenautomation.Flip(False)End If' flip this object horizontally (reverse)MessageBox.Show("Now we are going to flip this text horizontally (reverse it)")If automation.CanFlip Thenautomation.Flip(True)End IfEnd Sub
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
