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