ClassDrawingService
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
DrawingService(IGraphInternal)
Initializes a new instance of the DrawingService class.
Declaration
public DrawingService(IGraphInternal graph)
Parameters
graph
The graph.
Properties
ActiveShape
Gets the active shape.
Declaration
public IGeometryShape ActiveShape { get; }
Property Value
Implements
AnchorPoints
Gets the anchor points.
Declaration
public IEnumerable<Point> AnchorPoints { get; }
Property Value
IEnumerable<Point>
Implements
ControlPoints
Gets the control points.
Declaration
public IEnumerable<Point> ControlPoints { get; }
Property Value
IEnumerable<Point>
Implements
Methods
ClearPoints()
Clears the anchor and control points.
Declaration
public void ClearPoints()
Implements
CompleteDraw()
Completes the draw.
Declaration
public virtual void CompleteDraw()
Implements
CreateDrawCommand(IGeometryShape, DrawingState, DrawingState, bool, bool, DrawingShapeInfo)
Creates the DrawCommand that sets the new state of the Shape or reverts the old state.
Declaration
public DrawCommand CreateDrawCommand(IGeometryShape shape, DrawingState oldState, DrawingState newState, bool isComplete, bool isUndoable, DrawingShapeInfo shapeInfo)
Parameters
shape
oldState
newState
isComplete
isUndoable
shapeInfo
Returns
Implements
CreateHandlesGeometry(Point, Point, FillRule)
Create geometry for the Path Handles in Path Tool.
CreateShapeGeometry(IEnumerable<DrawingToolSegment>, DrawingShapeInfo)
Creates Geometry for a shape from a given DrawingToolSegments.
Declaration
public Geometry CreateShapeGeometry(IEnumerable<DrawingToolSegment> segments, DrawingShapeInfo shapeInfo)
Parameters
segments
IEnumerable<DrawingToolSegment>
shapeInfo
Returns
Implements
DrawPoints(Point?, Point?, bool)
Draws the points.
InitializeDraw(IGeometryShape, string)
Initializes draw action.
Declaration
public virtual void InitializeDraw(IGeometryShape activeShape, string toolName)
Parameters
activeShape
The active shape.
toolName
The name of the current tool.
Implements
RemoveLastAnchorPoint()
Removes the last anchor point.
Declaration
public void RemoveLastAnchorPoint()
Implements
RemoveLastControlPoint()
Removes the last control point.
Declaration
public void RemoveLastControlPoint()
Implements
SetState(IGeometryShape, IEnumerable<Point>, IEnumerable<Point>)
Sets the state.
Events
Drawing
Occurs when drawing.
Declaration
public event EventHandler<DrawingEventArgs> Drawing
Event Value
Implements