menu

WinForms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class RoundRect - WindowsForms API Reference | Syncfusion

    Show / Hide Table of Contents

    Class RoundRect

    Implementation of rounded rectangle shape.

    Inheritance
    System.Object
    Node
    PathNode
    FilledPath
    RoundRect
    Implements
    IUnitIndependent
    IDispatchNodeEvents
    System.Runtime.Serialization.ISerializable
    INode
    System.ICloneable
    System.IServiceProvider
    IServiceReferenceHolder
    IServiceReferenceProvider
    IPropertyObserver
    IPropertyContainer
    IGraphNode
    System.Runtime.Serialization.IDeserializationCallback
    System.IDisposable
    Inherited Members
    FilledPath.Dispose()
    FilledPath.DrawBorder(Graphics)
    FilledPath.DrawInterior(Graphics)
    FilledPath.EnableShading
    FilledPath.FillStyle
    FilledPath.GetPropertyContainer(String)
    FilledPath.m_benableshading
    FilledPath.Render(Graphics)
    FilledPath.UpdateReferences(IServiceReferenceProvider)
    Node.AllowLabelDrag
    Node.AppendFlipTransforms(Matrix)
    Node.AppendFlipTransforms(Matrix, PointF, Boolean, Boolean)
    Node.AppendLocalFlipTransforms(Matrix)
    Node.BoundingRectangle
    Node.BoundsInfo
    Node.CanUpdateConnections(EndPoint)
    Node.CanWiden(GraphicsPath)
    Node.CentralPort
    Node.ChangeFlipX(Boolean)
    Node.ChangeFlipY(Boolean)
    Node.ChangeRotationBy(Single)
    Node.CheckConstrainingRegion(PointF)
    Node.CheckConstrainingRegion(RectangleF)
    Node.CheckNewPinPoint(PointF, MeasureUnits)
    Node.Container
    Node.ContainsPoint(PointF)
    Node.ConvertToModelCoordinates(PointF)
    Node.ConvertToNodeCoordinates(PointF)
    Node.CreateBoundsInfo(BoundsInfo)
    Node.CreateBoundsInfo(BoundsInfo, PageScale)
    Node.CreateBoundsInfo(PointF, SizeF, SizeF)
    Node.DoMoveRelatedActions(Single, Single)
    Node.DoPinOffsetRelatedActions(SizeF, SizeF)
    Node.Draw(Graphics)
    Node.Draw(Graphics, Boolean)
    Node.DrawPorts
    Node.Edges
    Node.EdgesEntering
    Node.EdgesLeaving
    Node.EditStyle
    Node.EnableCentralPort
    Node.EventSink
    Node.EventSink_PropertyChanged(PropertyChangedEventArgs)
    Node.EventSink_PropertyChanging(PropertyChangingEventArgs)
    Node.ExcludeFromLayout
    Node.FlipX
    Node.FlipY
    Node.FullContainerName
    Node.FullName
    Node.GetBoundsRect(Node)
    Node.GetLocalTransformations()
    Node.GetNodeBounds(Boolean, Boolean)
    Node.GetParentTransformation(Boolean)
    Node.GetPathBounds()
    Node.GetPropertyContainerByName(String)
    Node.GetRectBounds(Boolean, Boolean)
    Node.GetScaleTransformation()
    Node.GetService(Type)
    Node.GetTransformations()
    Node.GetTransformations(PointF, SizeF, Single)
    Node.GetUpperLeftPoint(MeasureUnits)
    Node.GraphicsPath
    Node.HistoryManager
    Node.IDeserializationCallback.OnDeserialization(Object)
    Node.IDispatchNodeEvents.Click(EventArgs)
    Node.IDispatchNodeEvents.DoubleClick(EventArgs)
    Node.IDispatchNodeEvents.MouseEnter(EventArgs)
    Node.IDispatchNodeEvents.MouseLeave(EventArgs)
    Node.InheritContainerMeasureUnits
    Node.INode.Root
    Node.IsClosedPath(GraphicsPath)
    Node.ISerializable.GetObjectData(SerializationInfo, StreamingContext)
    Node.IsExpanded
    Node.IUnitIndependent.GetBoundingRectangle(MeasureUnits, Boolean)
    Node.IUnitIndependent.GetPinPoint(MeasureUnits)
    Node.IUnitIndependent.GetPinPointOffset(MeasureUnits)
    Node.IUnitIndependent.GetSize(MeasureUnits)
    Node.IUnitIndependent.SetPinPoint(PointF, MeasureUnits)
    Node.IUnitIndependent.SetPinPointOffset(SizeF, MeasureUnits)
    Node.IUnitIndependent.SetSize(SizeF, MeasureUnits)
    Node.Layers
    Node.LineHitTestPadding
    Node.LineStyle
    Node.LogicalUnitChange(GraphicsUnit)
    Node.m_bLockUpdate
    Node.m_bPortUpdating
    Node.m_eventSink
    Node.m_fRotationAngle
    Node.m_mgrBridge
    Node.m_mgrHistory
    Node.m_mgrLink
    Node.m_rgnCache
    Node.MeasurementUnit
    Node.Move(Single, Single)
    Node.Name
    Node.NodeScale
    Node.OnMeasurementUnitsChanging(MeasureUnits)
    Node.OnMouseClick(EventArgs)
    Node.OnMouseDoubleClick(EventArgs)
    Node.OnParentChanged()
    Node.OnParentChanging()
    Node.OnPropertyChanged(String, String)
    Node.OnPropertyChanging(String, String, Object)
    Node.Parent
    Node.PinPoint
    Node.PinPointOffset
    Node.Ports
    Node.PrepareGraphics(Graphics)
    Node.PrintPorts
    Node.PropertyBag
    Node.ProvideServiceReference(RuntimeTypeHandle)
    Node.QuiteBoundarySet(Boolean)
    Node.RecordPropertyChanged(String)
    Node.RefreshRect
    Node.Root
    Node.Rotate(Single)
    Node.RotationAngle
    Node.SafeHistoryPause()
    Node.SafeHistoryResume()
    Node.Scale(Single, Single)
    Node.SetPinOffset(SizeF, SizeF)
    Node.SetPinPoint(PointF, MeasureUnits)
    Node.SetSize(SizeF, SizeF)
    Node.ShadowStyle
    Node.ShowResizeHandles()
    Node.Size
    Node.Tag
    Node.ToolTipText
    Node.Translate(Single, Single)
    Node.Translate(Single, Single, MeasureUnits)
    Node.TreatAsObstacle
    Node.UpdateBoundingRectangle()
    Node.UpdateContainerBounds()
    Node.UpdateHelperRegion()
    Node.UpdatePortPositions(SizeF, SizeF)
    Node.UpdateRefreshRect()
    Node.UpdateRefreshRect(RectangleF, Matrix)
    Node.UpdateServiceReferences(IServiceReferenceProvider)
    Node.Visible
    Node.ZOrder
    PathNode.AccumulateRefreshRect(RectangleF)
    PathNode.AddPoint(PointF)
    PathNode.AddPoint(PointF, Boolean)
    PathNode.BeforeMoveSegment(PointF[])
    PathNode.CanChangePath
    PathNode.CanChangePoints(PointF[])
    PathNode.CanCombine(GraphicsPath)
    PathNode.CanDrawControlPoints()
    PathNode.CanEditControlPoint()
    PathNode.CanEditSegment()
    PathNode.CanEditVertexPoint()
    PathNode.CanMoveHandle(IHandle)
    PathNode.CanMoveHandle(IHandle, PointF)
    PathNode.ContainsHandle(IHandle)
    PathNode.CreateGraphicsPath(PointF[])
    PathNode.DoHandleMoveRelated(IHandle, SizeF)
    PathNode.DoSizeRelatedActions(SizeF, SizeF)
    PathNode.DrawControlPoint(Graphics, ControlPoint, SizeF, Pen, Brush)
    PathNode.DrawControlPoints(Graphics)
    PathNode.FinishSetPoints()
    PathNode.GetAdjacentPathPoint(PointF, Boolean, Boolean, PointF)
    PathNode.GetControlPointAt(Int32)
    PathNode.GetControlPointAt(PointF)
    PathNode.GetControlPointByID(Int32)
    PathNode.GetControlPoints()
    PathNode.GetLineSegmentAtPoint(PointF)
    PathNode.GetLineSegmentPoints(Int32)
    PathNode.GetNewBounds(PointF[])
    PathNode.GetNewPathBounds(PointF[])
    PathNode.GetPathPoints()
    PathNode.GetPathPoints(Matrix)
    PathNode.GetPoint(Int32)
    PathNode.GetPoint(Int32, Boolean)
    PathNode.GetPoints()
    PathNode.GetPoints(Boolean)
    PathNode.HandleMove(IHandle, SizeF)
    PathNode.InsertPoint(Int32, PointF)
    PathNode.InsertPoint(Int32, PointF, Boolean)
    PathNode.IsControlPointValid(ControlPoint)
    PathNode.IsPathVertexEditable(GraphicsPath)
    PathNode.IsVertexEditable
    PathNode.Labels
    PathNode.LineSegmentCount
    PathNode.LogicalGraphicsPath
    PathNode.m_maxPoints
    PathNode.m_minPoints
    PathNode.MaxPoints
    PathNode.MinPoints
    PathNode.MoveLineSegment(Int32, SizeF)
    PathNode.MoveSegment(Int32, SizeF)
    PathNode.OnDeserialized()
    PathNode.OnMouseEnter(EventArgs)
    PathNode.OnMouseLeave(EventArgs)
    PathNode.OnNodeScaleChanged(String)
    PathNode.OnVertexChanged(VertexChangeType, Int32, PointF)
    PathNode.OnVertexChanging(VertexChangeType, Int32, PointF)
    PathNode.PathPointsRelative
    PathNode.PointCount
    PathNode.PreparePathPointsForInsert(Int32, PointF)
    PathNode.RecordVertexChanged(VertexChangeType, Int32, PointF)
    PathNode.RemovePoint(Int32)
    PathNode.RenderContiguousData(Graphics)
    PathNode.SetControlPoints(PointF[], Int32)
    PathNode.SetPoint(Int32, PointF)
    PathNode.SetPoint(Int32, PointF, Boolean)
    PathNode.SetPoints(PointF[])
    PathNode.SetPoints(PointF[], Boolean)
    PathNode.TransformControlPoints(Matrix)
    PathNode.TryCombine(GraphicsPath, Boolean)
    PathNode.UpdateBoundsInfo(RectangleF)
    PathNode.UpdateControlPoints(PointF[], Int32)
    PathNode.UpdateGraphicsPath(PointF[])
    PathNode.UpdateNonLineBoundsInfo(RectangleF)
    PathNode.UpdatePathLocation(GraphicsPath, RectangleF)
    PathNode.UpdatePathNodeData()
    PathNode.UpdateSegmentsRegion()
    PathNode.ValidateOffset(Int32, SizeF)
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: Syncfusion.Windows.Forms.Diagram
    Assembly: Syncfusion.Diagram.Base.dll
    Syntax
    public class RoundRect : FilledPath, IUnitIndependent, IDispatchNodeEvents, ISerializable, INode, ICloneable, IServiceProvider, IServiceReferenceHolder, IServiceReferenceProvider, IPropertyObserver, IPropertyContainer, IGraphNode, IDeserializationCallback, IDisposable

    Constructors

    RoundRect(RoundRect)

    Initializes a new instance of the RoundRect class.

    Declaration
    public RoundRect(RoundRect src)
    Parameters
    Type Name Description
    RoundRect src

    Object to copy.

    RoundRect(PointF[])

    Initializes a new instance of the RoundRect class.

    Declaration
    public RoundRect(PointF[] pts)
    Parameters
    Type Name Description
    System.Drawing.PointF[] pts

    Points specifying rectangle.

    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.

    RoundRect(PointF[], MeasureUnits)

    Initializes a new instance of the RoundRect class.

    Declaration
    public RoundRect(PointF[] pts, MeasureUnits measureUnits)
    Parameters
    Type Name Description
    System.Drawing.PointF[] pts

    Points specifying rectangle.

    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.

    RoundRect(PointF[], Single, MeasureUnits)

    Initializes a new instance of the RoundRect class.

    Declaration
    public RoundRect(PointF[] pts, float fCurveRadius, MeasureUnits measureUnits)
    Parameters
    Type Name Description
    System.Drawing.PointF[] pts

    Points specifying rectangle.

    System.Single fCurveRadius

    The curve radius.

    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.

    RoundRect(RectangleF)

    Initializes a new instance of the RoundRect class.

    Declaration
    public RoundRect(RectangleF rcBounds)
    Parameters
    Type Name Description
    System.Drawing.RectangleF rcBounds

    The rc bounds.

    RoundRect(RectangleF, MeasureUnits)

    Initializes a new instance of the RoundRect class.

    Declaration
    public RoundRect(RectangleF rcBounds, MeasureUnits measureUnits)
    Parameters
    Type Name Description
    System.Drawing.RectangleF rcBounds

    Rectangle containing position and size.

    MeasureUnits measureUnits

    Specifies rcBounds measure units.

    RoundRect(RectangleF, Single)

    Initializes a new instance of the RoundRect class.

    Declaration
    public RoundRect(RectangleF rcBounds, float fCurveRadius)
    Parameters
    Type Name Description
    System.Drawing.RectangleF rcBounds

    Rectangle containing position and size.

    System.Single fCurveRadius

    The curve radius.

    RoundRect(RectangleF, Single, MeasureUnits)

    Initializes a new instance of the RoundRect class.

    Declaration
    public RoundRect(RectangleF rcBounds, float fCurveRadius, MeasureUnits measureUnits)
    Parameters
    Type Name Description
    System.Drawing.RectangleF rcBounds

    Rectangle containing position and size.

    System.Single fCurveRadius

    The curve radius.

    MeasureUnits measureUnits

    Specifies rcBounds measure units.

    RoundRect(SerializationInfo, StreamingContext)

    Initializes a new instance of the RoundRect class.

    Declaration
    protected RoundRect(SerializationInfo info, StreamingContext context)
    Parameters
    Type Name Description
    System.Runtime.Serialization.SerializationInfo info

    Serialization state information.

    System.Runtime.Serialization.StreamingContext context

    Streaming context information.

    RoundRect(Single, Single, Single, Single, MeasureUnits)

    Initializes a new instance of the RoundRect class.

    Declaration
    public RoundRect(float x, float y, float width, float height, MeasureUnits measureUnits)
    Parameters
    Type Name Description
    System.Single x

    X-coordinate of rectangle.

    System.Single y

    Y-coordinate of rectangle.

    System.Single width

    Width of rectangle.

    System.Single height

    Height of rectangle.

    MeasureUnits measureUnits

    Specifies points measure units.

    RoundRect(Single, Single, Single, Single, Single, MeasureUnits)

    Initializes a new instance of the RoundRect class.

    Declaration
    public RoundRect(float x, float y, float width, float height, float fCurveRadius, MeasureUnits measureUnits)
    Parameters
    Type Name Description
    System.Single x

    X-coordinate of rectangle.

    System.Single y

    Y-coordinate of rectangle.

    System.Single width

    Width of rectangle.

    System.Single height

    Height of rectangle.

    System.Single fCurveRadius

    The curve radius.

    MeasureUnits measureUnits

    Specifies points measure units.

    Fields

    c_fCURVE_RADIUS

    Default value of curve radius.

    Declaration
    protected const float c_fCURVE_RADIUS = 15F
    Field Value
    Type
    System.Single

    m_fCurveRadius

    Curve radius.

    Declaration
    protected float m_fCurveRadius
    Field Value
    Type
    System.Single

    Properties

    CurveRadius

    Gets or sets percentage of the width and height of the rectangle that is included in the curves.

    Declaration
    public float CurveRadius { get; set; }
    Property Value
    Type Description
    System.Single

    The curve radius.

    CurveRadiusMode

    Gets or sets CurverRadiusMode value to update the curveradius of the roundrectangle.

    Declaration
    public CurveRadiusMode CurveRadiusMode { get; set; }
    Property Value
    Type Description
    CurveRadiusMode

    curve radius updating based the curve radius mode.

    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
    FilledPath.Clone()

    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
    PathNode.CreateLogicalGraphicsPath(PointF[])

    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
    FilledPath.DrawShading(Graphics)

    GetObjectData(SerializationInfo, StreamingContext)

    Populates a 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

    SerializationInfo object to populate.

    System.Runtime.Serialization.StreamingContext context

    Destination streaming context.

    Overrides
    FilledPath.GetObjectData(SerializationInfo, StreamingContext)

    UpdateGraphicsPath(SizeF, SizeF)

    Updates the graphics path and region.

    Declaration
    protected override void UpdateGraphicsPath(SizeF szOldSize, SizeF szNewSize)
    Parameters
    Type Name Description
    System.Drawing.SizeF szOldSize

    Old size value.

    System.Drawing.SizeF szNewSize

    New size value.

    Overrides
    Node.UpdateGraphicsPath(SizeF, SizeF)

    Implements

    IUnitIndependent
    IDispatchNodeEvents
    System.Runtime.Serialization.ISerializable
    INode
    System.ICloneable
    System.IServiceProvider
    IServiceReferenceHolder
    IServiceReferenceProvider
    IPropertyObserver
    IPropertyContainer
    IGraphNode
    System.Runtime.Serialization.IDeserializationCallback
    System.IDisposable
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved