Struct CornerRadius
[SECURITY CRITICAL] Describes the characteristics of a rounded corner, such as can be applied to a Windows.UI.Xaml.Controls.Border.
Inherited Members
Namespace: System.Windows
Assembly: OpenSilver.dll
Syntax
public struct CornerRadius
Constructors
| Improve this Doc View SourceCornerRadius(Double)
[SECURITY CRITICAL] Initializes a new Windows.UI.Xaml.CornerRadius structure, applying the same uniform radius to all its corners.
Declaration
public CornerRadius(double uniformRadius)
Parameters
Type | Name | Description |
---|---|---|
System.Double | uniformRadius | A uniform radius applied to all four Windows.UI.Xaml.CornerRadius properties (Windows.UI.Xaml.CornerRadius.TopLeft, Windows.UI.Xaml.CornerRadius.TopRight, Windows.UI.Xaml.CornerRadius.BottomRight, Windows.UI.Xaml.CornerRadius.BottomLeft). |
CornerRadius(Double, Double, Double, Double)
[SECURITY CRITICAL] Initializes a new instance of the Windows.UI.Xaml.CornerRadius structure, applying specific radius values to its corners.
Declaration
public CornerRadius(double topLeft, double topRight, double bottomRight, double bottomLeft)
Parameters
Type | Name | Description |
---|---|---|
System.Double | topLeft | Sets the initial Windows.UI.Xaml.CornerRadius.TopLeft. |
System.Double | topRight | Sets the initial Windows.UI.Xaml.CornerRadius.TopRight. |
System.Double | bottomRight | Sets the initial Windows.UI.Xaml.CornerRadius.BottomLeft. |
System.Double | bottomLeft | Sets the initial Windows.UI.Xaml.CornerRadius.BottomRight. |
Properties
| Improve this Doc View SourceBottomLeft
[SECURITY CRITICAL] Gets or sets the radius of rounding, in pixels, of the bottom left corner of the object where a Windows.UI.Xaml.CornerRadius is applied.
Declaration
public double BottomLeft { get; set; }
Property Value
Type | Description |
---|---|
System.Double |
BottomRight
[SECURITY CRITICAL] Gets or sets the radius of rounding, in pixels, of the bottom right corner of the object where a Windows.UI.Xaml.CornerRadius is applied.
Declaration
public double BottomRight { get; set; }
Property Value
Type | Description |
---|---|
System.Double |
TopLeft
[SECURITY CRITICAL] Gets or sets the radius of rounding, in pixels, of the top left corner of the object where a Windows.UI.Xaml.CornerRadius is applied.
Declaration
public double TopLeft { get; set; }
Property Value
Type | Description |
---|---|
System.Double |
TopRight
[SECURITY CRITICAL] Gets or sets the radius of rounding, in pixels, of the top right corner of the object where a Windows.UI.Xaml.CornerRadius is applied.
Declaration
public double TopRight { get; set; }
Property Value
Type | Description |
---|---|
System.Double |
Methods
| Improve this Doc View SourceEquals(Object)
[SECURITY CRITICAL] Compares this Windows.UI.Xaml.CornerRadius structure to another object for equality.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj | The object to compare. |
Returns
Type | Description |
---|---|
System.Boolean | true if the two objects are equal; otherwise, false. |
Overrides
Equals(CornerRadius)
[SECURITY CRITICAL] Compares this Windows.UI.Xaml.CornerRadius structure to another Windows.UI.Xaml.CornerRadius structure for equality.
Declaration
public bool Equals(CornerRadius cornerRadius)
Parameters
Type | Name | Description |
---|---|---|
CornerRadius | cornerRadius | An instance of Windows.UI.Xaml.CornerRadius to compare for equality. |
Returns
Type | Description |
---|---|
System.Boolean | true if the two instances of Windows.UI.Xaml.CornerRadius are equal; otherwise, false. |
GetHashCode()
[SECURITY CRITICAL] Returns the hash code of the structure.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 | A hash code for this Windows.UI.Xaml.CornerRadius. |
Overrides
ToString()
[SECURITY CRITICAL] Returns the string representation of the Windows.UI.Xaml.CornerRadius structure.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | A System.String that represents the Windows.UI.Xaml.CornerRadius value. |
Overrides
Operators
| Improve this Doc View SourceEquality(CornerRadius, CornerRadius)
[SECURITY CRITICAL] Compares the value of two Windows.UI.Xaml.CornerRadius structures for equality.
Declaration
public static bool operator ==(CornerRadius cr1, CornerRadius cr2)
Parameters
Type | Name | Description |
---|---|---|
CornerRadius | cr1 | The first structure to compare. |
CornerRadius | cr2 | The other structure to compare. |
Returns
Type | Description |
---|---|
System.Boolean | true if the two instances of Windows.UI.Xaml.CornerRadius are equal; otherwise, false. |
Inequality(CornerRadius, CornerRadius)
[SECURITY CRITICAL] Compares two Windows.UI.Xaml.CornerRadius structures for inequality.
Declaration
public static bool operator !=(CornerRadius cr1, CornerRadius cr2)
Parameters
Type | Name | Description |
---|---|---|
CornerRadius | cr1 | The first structure to compare. |
CornerRadius | cr2 | The other structure to compare. |
Returns
Type | Description |
---|---|
System.Boolean | true if the two instances of Windows.UI.Xaml.CornerRadius are not equal; otherwise, false. |