DrawingService
Represents drawing service.
Definition
Namespace:Telerik.Windows.Diagrams.Core
Assembly:Telerik.WinControls.RadDiagram.dll
Syntax:
public class DrawingService : GraphServiceBase, IDrawingService
Inheritance: objectGraphServiceBaseDrawingService
Implements:
Inherited Members
Constructors
Initializes a new instance of the DrawingService class.
Properties
Gets the active shape.
public IGeometryShape ActiveShape { get; }
Implements:
AnchorPoints
IEnumerable<Point>
Gets the anchor points.
public IEnumerable<Point> AnchorPoints { get; }
Implements:
ControlPoints
IEnumerable<Point>
Gets the control points.
public IEnumerable<Point> ControlPoints { get; }
Implements:
Methods
Clears the anchor and control points.
public void ClearPoints()
Implements:
Completes the draw.
public virtual void CompleteDraw()
Implements:
Creates the DrawCommand that sets the new state of the Shape or reverts the old state.
public DrawCommand CreateDrawCommand(IGeometryShape shape, DrawingState oldState, DrawingState newState, bool isComplete, bool isUndoable, DrawingShapeInfo shapeInfo)
Implements:
Creates Geometry for a shape from a given DrawingToolSegments.
public Geometry CreateShapeGeometry(IEnumerable<DrawingToolSegment> segments, DrawingShapeInfo shapeInfo)
Implements:
Initializes draw action.
public virtual void InitializeDraw(IGeometryShape activeShape, string toolName)
The active shape.
toolNamestringThe name of the current tool.
Implements:
Removes the last anchor point.
public void RemoveLastAnchorPoint()
Implements:
Removes the last control point.
public void RemoveLastControlPoint()
Implements:
Sets the state.
public void SetState(IGeometryShape shape, IEnumerable<Point> anchorPoints, IEnumerable<Point> controlPoints)
The shape.
anchorPointsIEnumerable<Point>The anchor points.
controlPointsIEnumerable<Point>The control points.
Implements:
Starts the draw.
public virtual void StartDraw()
Implements:
Events
Occurs when drawing.
public event EventHandler<DrawingEventArgs> Drawing
Implements: