Defines an AnnRoundLineEnding style.
public class AnnRoundLineEnding : AnnSquareLineEnding public:ref class AnnRoundLineEnding : AnnSquareLineEnding
class AnnRoundLineEnding(AnnSquareLineEnding): The AnnRoundLineEnding style represents the ending style as circle. The AnnRoundLineEnding class inherits a number of properties from the AnnLineEnding class. AnnLineEnding provides support for fill, stroke and length characteristics.
using Leadtools.Annotations.Automation;using Leadtools.Annotations.Engine;using Leadtools.Codecs;using Leadtools.Annotations;using Leadtools.Annotations.WinForms;public void AnnCore_AnnLineEnding(){// assumes _automation is validdouble inch = 720.0;// Create polyline object and add it the automation containerAnnPolylineObject polyLine = new AnnPolylineObject();polyLine.Points.Add(LeadPointD.Create(1 * inch, 1 * inch));polyLine.Points.Add(LeadPointD.Create(2 * inch, 1 * inch));_automation.Container.Children.Add(polyLine);// Create arrow line ending style and set some propertiesAnnArrowLineEnding arrowStyle = new AnnArrowLineEnding();arrowStyle.Closed = true;arrowStyle.Reversed = true;arrowStyle.Fill = AnnSolidColorBrush.Create("Yellow");// Set the the created arrow style to polyline start and end stylepolyLine.StartStyle = arrowStyle;polyLine.EndStyle = arrowStyle;// Previewing start and end line stylesAnnLineEnding annLineStart = polyLine.StartStyle;AnnLineEnding annLineEnding = polyLine.EndStyle;Debug.WriteLine($"Line start style: {annLineStart.FriendlyName } | Line end style: {annLineEnding.FriendlyName}");// Create another polyline object and add it the automation containerpolyLine = new AnnPolylineObject();polyLine.Points.Add(LeadPointD.Create(1 * inch, 1.2 * inch));polyLine.Points.Add(LeadPointD.Create(2 * inch, 1.2 * inch));_automation.Container.Children.Add(polyLine);// Create butt line ending styleAnnButtLineEnding buttStyle = new AnnButtLineEnding();// Set the the created butt style to polyline start and end stylepolyLine.StartStyle = buttStyle;polyLine.EndStyle = buttStyle;// Create another polyline object and add it the automation containerpolyLine = new AnnPolylineObject();polyLine.Points.Add(LeadPointD.Create(1 * inch, 1.4 * inch));polyLine.Points.Add(LeadPointD.Create(2 * inch, 1.4 * inch));_automation.Container.Children.Add(polyLine);// Create slash line ending styleAnnSlashLineEnding slashStyle = new AnnSlashLineEnding();// Set the the created slash style to polyline start and end stylepolyLine.StartStyle = slashStyle;polyLine.EndStyle = slashStyle;// Create another polyline object and add it the automation containerpolyLine = new AnnPolylineObject();polyLine.Points.Add(LeadPointD.Create(1 * inch, 1.6 * inch));polyLine.Points.Add(LeadPointD.Create(2 * inch, 1.6 * inch));_automation.Container.Children.Add(polyLine);// Create square line ending styleAnnSquareLineEnding squareStyle = new AnnSquareLineEnding();// Set the the created square style to polyline start and end stylepolyLine.StartStyle = squareStyle;polyLine.EndStyle = squareStyle;// Create another polyline object and add it the automation containerpolyLine = new AnnPolylineObject();polyLine.Points.Add(LeadPointD.Create(1 * inch, 1.8 * inch));polyLine.Points.Add(LeadPointD.Create(2 * inch, 1.8 * inch));_automation.Container.Children.Add(polyLine);// Create diamond line ending styleAnnDiamondLineEnding diamondStyle = new AnnDiamondLineEnding();// Set the the created diamond style to polyline start and end stylepolyLine.StartStyle = diamondStyle;polyLine.EndStyle = diamondStyle;// Create another polyline object and add it the automation containerpolyLine = new AnnPolylineObject();polyLine.Points.Add(LeadPointD.Create(1 * inch, 2 * inch));polyLine.Points.Add(LeadPointD.Create(2 * inch, 2 * inch));_automation.Container.Children.Add(polyLine);// Create round line ending styleAnnRoundLineEnding roundStyle = new AnnRoundLineEnding();// Set the the created round style to polyline start and end stylepolyLine.StartStyle = roundStyle;polyLine.EndStyle = roundStyle;}
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document
