DrawingToolSegment
Class
Represents a single unit used for drawing a shape with Path or Pencil tools.
Definition
Namespace:Telerik.Windows.Diagrams.Core
Assembly:Telerik.WinControls.RadDiagram.dll
Syntax:
C#
public sealed class DrawingToolSegment
Inheritance: objectDrawingToolSegment
Properties
Gets or sets the anchor point1.
C#
public Point AnchorPoint1 { get; }
Gets or sets the anchor point2.
C#
public Point AnchorPoint2 { get; }
Gets or sets the control point1.
C#
public Point ControlPoint1 { get; }
Gets or sets the control point2.
C#
public Point ControlPoint2 { get; }
Gets a value indicating whether this instance is complete.
C#
public bool IsComplete { get; }
Methods
Creates this instance.
Creates the specified anchor point1.
Gets the bounds.
Finds the normalization point of a given set of segments.
C#
public static Point GetNormalizationPoint(IEnumerable<DrawingToolSegment> segments)
Gets the path segment.
C#
public PathSegment GetPathSegment(Point normalizationPoint)
The normalization point.
Returns:Creates a collection of segments given a list of anchor and control points.
C#
public static IEnumerable<DrawingToolSegment> GetSegments(IEnumerable<Point> anchorPoints, IEnumerable<Point> controlPoints)
IEnumerable<DrawingToolSegment>
Gets the segments rectangle.
C#
public static Rect GetSegmentsRect(IEnumerable<DrawingToolSegment> segments)
The segments.
Returns: