Class CornerRadiusHelper
Helper class for handling corner radius of control region.
Inheritance
System.Object
CornerRadiusHelper
Implements
System.IDisposable
Inherited Members
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.Utils
Assembly: Syncfusion.Shared.Base.dll
Syntax
public sealed class CornerRadiusHelper : IDisposable
Constructors
CornerRadiusHelper(Control)
Initializes a new instance of the CornerRadiusHelper class.
Declaration
public CornerRadiusHelper(Control owner)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Forms.Control | owner | The owner control. |
Properties
CornerRadius
Gets or sets corner radius.
Declaration
public int CornerRadius { get; set; }
Property Value
Type |
---|
System.Int32 |
Remarks
Radius has to be not less than zero or half of minimum dimension (width or height) of control. If radius is zero, region has rectangular appearance.
Methods
Dispose()
Declaration
public void Dispose()
GetMinimalSize(Size)
Retrieves the minimal size of the owner control.
Declaration
public Size GetMinimalSize(Size currentMinimalSize)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Size | currentMinimalSize | Current minimal size. |
Returns
Type |
---|
System.Drawing.Size |
GetPath(RectangleF)
Gets the graphics path for region border.
Declaration
public GraphicsPath GetPath(RectangleF bounds)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.RectangleF | bounds |
Returns
Type |
---|
System.Drawing.Drawing2D.GraphicsPath |
UpdateRegion()
Updates and sets control's region.
Declaration
public void UpdateRegion()
Implements
System.IDisposable