Class CircularArc
Implements a circular arc shape.
Implements
Inherited Members
Namespace: Syncfusion.Windows.Forms.Diagram
Assembly: Syncfusion.Diagram.Base.dll
Syntax
public class CircularArc : FilledPath, IUnitIndependent, IDispatchNodeEvents, ISerializable, INode, ICloneable, IServiceReferenceHolder, IServiceReferenceProvider, IPropertyObserver, IPropertyContainer, IServiceProvider, IGraphNode, IDeserializationCallback, IDisposable
Constructors
CircularArc(CircularArc)
Initializes a new instance of the CircularArc class.
Declaration
public CircularArc(CircularArc src)
Parameters
Type | Name | Description |
---|---|---|
CircularArc | src | Object to copy. |
CircularArc(RectangleF)
Initializes a new instance of the CircularArc class.
Declaration
public CircularArc(RectangleF rcBounds)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.RectangleF | rcBounds | Bounds of circular arc to create. |
CircularArc(RectangleF, Single, Single)
Initializes a new instance of the CircularArc class.
Declaration
public CircularArc(RectangleF rcBounds, float startAngle, float sweepAngle)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.RectangleF | rcBounds | Bounds of circular arc to create. |
System.Single | startAngle | Specifies the start angle of the arc |
System.Single | sweepAngle | Specifies the sweep angle of the arc |
CircularArc(RectangleF, Single, Single, MeasureUnits)
Initializes a new instance of the CircularArc class.
Declaration
public CircularArc(RectangleF rcBounds, float startAngle, float sweepAngle, MeasureUnits measureUnits)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.RectangleF | rcBounds | Bounds of circular arc to create. |
System.Single | startAngle | Specifies the start angle of the arc |
System.Single | sweepAngle | Specifies the sweep angle of the arc |
MeasureUnits | measureUnits | Specifies rcBounds measure units. |
CircularArc(SerializationInfo, StreamingContext)
Initializes a new instance of the Arc class.
Declaration
protected CircularArc(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
System.Runtime.Serialization.SerializationInfo | info | Deserialization state information. |
System.Runtime.Serialization.StreamingContext | context | Streaming context information. |
CircularArc(Single, Single, Single, Single, Single, Single)
Initializes a new instance of the CircularArc class.
Declaration
public CircularArc(float x, float y, float width, float height, float startAngle, float sweepAngle)
Parameters
Type | Name | Description |
---|---|---|
System.Single | x | X-coordinate of bounding rectangle. |
System.Single | y | Y-coordinate of bounding rectangle. |
System.Single | width | Width of bounding rectangle. |
System.Single | height | Height of bounding rectangle. |
System.Single | startAngle | Specifies the start angle of the arc |
System.Single | sweepAngle | Specifies the sweep angle of the arc |
CircularArc(Single, Single, Single, Single, Single, Single, MeasureUnits)
Initializes a new instance of the CircularArc class.
Declaration
public CircularArc(float x, float y, float width, float height, float startAngle, float sweepAngle, MeasureUnits measureUnits)
Parameters
Type | Name | Description |
---|---|---|
System.Single | x | X-coordinate of bounding rectangle. |
System.Single | y | Y-coordinate of bounding rectangle. |
System.Single | width | Width of bounding rectangle. |
System.Single | height | Height of bounding rectangle. |
System.Single | startAngle | Specifies the start angle of the arc |
System.Single | sweepAngle | Specifies the sweep angle of the arc |
MeasureUnits | measureUnits | Specifies points measure units. |
Properties
StartAngle
Gets or sets a value to circular arc start angle.
Declaration
public float StartAngle { get; set; }
Property Value
Type |
---|
System.Single |
SweepAngle
Gets or sets a value to circular arc sweep angle.
Declaration
public float SweepAngle { get; set; }
Property Value
Type |
---|
System.Single |
Type
Gets or sets a value to specifies the circular arc type.
Declaration
public ArcType Type { get; set; }
Property Value
Type |
---|
ArcType |
Methods
Clone()
Creates a new object that is a copy of the current instance.
Declaration
public override object Clone()
Returns
Type | Description |
---|---|
System.Object | Copy of the object this method is invoked against. |
Overrides
CreateLogicalGraphicsPath(PointF[])
Creates node's path with given array of points.
Declaration
protected override GraphicsPath CreateLogicalGraphicsPath(PointF[] pts)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.PointF[] | pts | Points to create path from. |
Returns
Type | Description |
---|---|
System.Drawing.Drawing2D.GraphicsPath | Created GraphicsPath, otherwise null. |
Overrides
DrawShading(Graphics)
Draw the shading over node.
Declaration
protected override void DrawShading(Graphics gfx)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Graphics | gfx | The Graphics to draw on. |
Overrides
GetObjectData(SerializationInfo, StreamingContext)
Populates a System.Runtime.Serialization.SerializationInfo with the data needed to serialize the target object.
Declaration
protected override void GetObjectData(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
System.Runtime.Serialization.SerializationInfo | info | The System.Runtime.Serialization.SerializationInfo to populate with data. |
System.Runtime.Serialization.StreamingContext | context | The destination (see System.Runtime.Serialization.StreamingContext) for this serialization. |
Overrides
Exceptions
Type | Condition |
---|---|
System.Security.SecurityException | The caller does not have the required permission. |
Render(Graphics)
Render a circular arc
Declaration
protected override void Render(Graphics gfx)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Graphics | gfx | The Graphics to draw on |