Class ChartCornerRadius
Represents the radii of a rectangle's corners.
Inheritance
Namespace: Syncfusion.MacOS.Charts.SfChart
Assembly: Syncfusion.SfChart.XForms.macOS.dll
Syntax
public sealed class ChartCornerRadius : ValueType
Remarks
This struct has four properties, TopLeft, TopRight, BottomLeft, and BottomRight, corresponding to the individual corners of the rectangle. Each is a double that can be set independently of the others. The radii cannot be negative.
Constructors
ChartCornerRadius(Double, Double, Double, Double)
Initializes a new instance of the ChartCornerRadius struct with the specified radius values for each corner of the rectangle.
Declaration
public ChartCornerRadius(double topLeft, double topRight, double bottomLeft, double bottomRight)
Parameters
Type | Name | Description |
---|---|---|
System.Double | topLeft | Double value that specifies the radius of the top left corner. |
System.Double | topRight | Double value that specifies the radius of the top right corner. |
System.Double | bottomLeft | Double value that specifies the radius of the bottom left corner. |
System.Double | bottomRight | Double value that specifies the radius of the bottom right corner. |
ChartCornerRadius(Single)
Initializes a new instance of the ChartCornerRadius struct with a specified uniform radius value for every corner or the rectangle.
Declaration
public ChartCornerRadius(float cornerRadius)
Parameters
Type | Name | Description |
---|---|---|
System.Single | cornerRadius | Corner radius. |
Properties
BottomLeft
Gets or sets the radius of the bottom-left corner.
Declaration
public double BottomLeft { get; set; }
Property Value
Type | Description |
---|---|
System.Double | Double value that specifies the radius of the bottom left corner. |
BottomRight
Gets or sets the radius of the bottom-right corner.
Declaration
public double BottomRight { get; set; }
Property Value
Type | Description |
---|---|
System.Double | Double value that specifies the radius of the bottom right corner. |
TopLeft
Gets or sets the radius of the top-left corner.
Declaration
public double TopLeft { get; set; }
Property Value
Type | Description |
---|---|
System.Double | Double value that specifies the radius of the top left corner. |
TopRight
Gets or sets the radius of the top-right corner.
Declaration
public double TopRight { get; set; }
Property Value
Type | Description |
---|---|
System.Double | Double value that specifies the radius of the top right corner. |
Methods
Equals(Object)
Checks whether this instance and a specified object are equal.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj | The object. |
Returns
Type | Description |
---|---|
System.Boolean | The Boolean. |
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type |
---|
System.Int32 |
Operators
Equality(ChartCornerRadius, ChartCornerRadius)
Declaration
public static bool operator ==(ChartCornerRadius leftValue, ChartCornerRadius rightValue)
Parameters
Type | Name | Description |
---|---|---|
ChartCornerRadius | leftValue | |
ChartCornerRadius | rightValue |
Returns
Type |
---|
System.Boolean |
Inequality(ChartCornerRadius, ChartCornerRadius)
Declaration
public static bool operator !=(ChartCornerRadius leftValue, ChartCornerRadius rightValue)
Parameters
Type | Name | Description |
---|---|---|
ChartCornerRadius | leftValue | |
ChartCornerRadius | rightValue |
Returns
Type |
---|
System.Boolean |