New to Telerik UI for WPFStart a free 30-day trial

Shape factory.

Definition

Namespace:Telerik.Windows.Controls.Diagrams

Assembly:Telerik.Windows.Controls.Diagrams.dll

Syntax:

C#
public static class ShapeFactory

Inheritance: objectShapeFactory

Properties

Gets the arrow geometries.

C#
public static Dictionary<ArrowShapeType, Geometry> ArrowGeometries { get; }
Remarks:

See also the example in the CommonGeometries.

Gets the common geometries.

C#
public static Dictionary<CommonShapeType, Geometry> CommonGeometries { get; }

Gets the flowchart geometries.

C#
public static Dictionary<FlowChartShapeType, Geometry> FlowchartGeometries { get; }
Remarks:

See also the example in the CommonGeometries.

Methods

C#
public static RadDiagramShape CreateCircle(double radiusX, double radiusY, Point center)
Parameters:radiusXdoubleradiusYdoublecenterPointReturns:

RadDiagramShape

C#
public static RadDiagramShape CreateRectangle(Rect rect)
Parameters:rectRectReturns:

RadDiagramShape

Gets a geometry of a specified arrow shape type.

C#
public static Geometry GetShapeGeometry(ArrowShapeType shapeType)
Parameters:shapeTypeArrowShapeTypeReturns:

Geometry

Gets a geometry of a specified common shape type.

C#
public static Geometry GetShapeGeometry(CommonShapeType shapeType)
Parameters:shapeTypeCommonShapeTypeReturns:

Geometry

Gets a geometry of a specified flow chart shape type.

C#
public static Geometry GetShapeGeometry(FlowChartShapeType shapeType)
Parameters:shapeTypeFlowChartShapeTypeReturns:

Geometry