Class ChartCornerRadius
Represents the radii of a rectangle's corners. TopLeft, TopRight, BottomLeft, and BottomRight properties corresponds to the individual corners of the rectangle.
Inheritance
Namespace: Syncfusion.SfChart.XForms
Assembly: Syncfusion.SfChart.XForms.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)
Initializes a new instance of the ChartCornerRadius struct with a specified uniform radius value for every corner or the rectangle.
Declaration
public ChartCornerRadius(double cornerRadius)
Parameters
Type | Name | Description |
---|---|---|
System.Double | cornerRadius | Corner radius. |
ChartCornerRadius(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 top, double bottom)
Parameters
Type | Name | Description |
---|---|---|
System.Double | top | Double value that specifies the radius of the top left and top right corner. |
System.Double | bottom | Double value that specifies the radius of the bottom left and bottom right corner. |
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. |
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 | object. |
Returns
Type | Description |
---|---|
System.Boolean | bool value. |
GetHashCode()
Get hash code.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 | Hash code. |
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 |