Class SemiCircle
Implements a semi-circle shape.
Implements
Inherited Members
Namespace: Syncfusion.Windows.Forms.Diagram
Assembly: Syncfusion.Diagram.Base.dll
Syntax
public class SemiCircle : FilledPath, IUnitIndependent, IDispatchNodeEvents, ISerializable, INode, ICloneable, IServiceReferenceHolder, IServiceReferenceProvider, IPropertyObserver, IPropertyContainer, IServiceProvider, IGraphNode, IDeserializationCallback, IDisposable
Constructors
SemiCircle(SemiCircle)
Initializes a new instance of the SemiCircle class.
Declaration
public SemiCircle(SemiCircle src)
Parameters
Type | Name | Description |
---|---|---|
SemiCircle | src | Object to copy. |
SemiCircle(PointF[])
Initializes a new instance of the SemiCircle class.
Declaration
public SemiCircle(PointF[] pts)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.PointF[] | pts | Control points used to create the semi-circle. |
Remarks
The array passed in must contain two points that specify a rectangle. The first point in the array is the upper-left corner of the rectangle and the second point is the lower-right corner of the rectangle.
SemiCircle(PointF[], MeasureUnits)
Initializes a new instance of the SemiCircle class.
Declaration
public SemiCircle(PointF[] pts, MeasureUnits measureUnits)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.PointF[] | pts | Control points used to create the semi-circle. |
MeasureUnits | measureUnits | Specifies points measure units. |
Remarks
The array passed in must contain two points that specify a rectangle. The first point in the array is the upper-left corner of the rectangle and the second point is the lower-right corner of the rectangle.
SemiCircle(RectangleF)
Initializes a new instance of the SemiCircle class.
Declaration
public SemiCircle(RectangleF rcBounds)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.RectangleF | rcBounds | Bounds of ellipse to create. |
SemiCircle(RectangleF, MeasureUnits)
Initializes a new instance of the SemiCircle class.
Declaration
public SemiCircle(RectangleF rcBounds, MeasureUnits measureUnits)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.RectangleF | rcBounds | Bounds of semi-circle to create. |
MeasureUnits | measureUnits | Specifies rcBounds measure units. |
SemiCircle(SerializationInfo, StreamingContext)
Initializes a new instance of the SemiCircle class.
Declaration
protected SemiCircle(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
System.Runtime.Serialization.SerializationInfo | info | Deserialization state information. |
System.Runtime.Serialization.StreamingContext | context | Streaming context information. |
SemiCircle(Single, Single, Single, Single)
Initializes a new instance of the SemiCircle class.
Declaration
public SemiCircle(float x, float y, float width, float height)
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. |
SemiCircle(Single, Single, Single, Single, MeasureUnits)
Initializes a new instance of the SemiCircle class.
Declaration
public SemiCircle(float x, float y, float width, float height, 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. |
MeasureUnits | measureUnits | Specifies points measure units. |
Properties
Type
Gets or sets a value to specifies the semi-circle type.
Declaration
public SemiCircleType Type { get; set; }
Property Value
Type |
---|
SemiCircleType |
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)
Declaration
protected override void Render(Graphics gfx)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Graphics | gfx |