Class RectangleCornerRadius
Represents the radii of a rectangle's corners.
Inheritance
System.Object
RectangleCornerRadius
Assembly: cs.temp.dll.dll
Syntax
public class RectangleCornerRadius : INotifyPropertyChanged
Constructors
RectangleCornerRadius()
Declaration
public RectangleCornerRadius()
RectangleCornerRadius(Double)
Initializes a new instance of the RectangleCornerRadius class with a specified uniform radius value for every corner of the rectangle.
Declaration
public RectangleCornerRadius(double uniformRadius)
Parameters
Type |
Name |
Description |
System.Double |
uniformRadius |
The radius value applied to every corner of the rectangle.
|
RectangleCornerRadius(Double, Double, Double, Double)
Initializes a new instance of the RectangleCornerRadius class with the specified radius values for each corner of the rectangle.
Declaration
public RectangleCornerRadius(double topLeft, double topRight, double bottomRight, double bottomLeft)
Parameters
Type |
Name |
Description |
System.Double |
topLeft |
The radius of the top-left corner.
|
System.Double |
topRight |
The radius of the top-right corner.
|
System.Double |
bottomRight |
The radius of the bottom-right corner.
|
System.Double |
bottomLeft |
The radius of the bottom-left corner.
|
Properties
BottomLeft
Gets or sets the radius of the bottom-left corner. Default value is 0 (zero)
Declaration
public double BottomLeft { get; set; }
Property Value
Type |
Description |
System.Double |
|
BottomRight
Gets or sets the radius of the bottom-right corner. Default value is 0 (zero)
Declaration
public double BottomRight { get; set; }
Property Value
Type |
Description |
System.Double |
|
TopLeft
Gets or sets the radius of the top-left corner. Default value is 0 (zero)
Declaration
public double TopLeft { get; set; }
Property Value
Type |
Description |
System.Double |
|
TopRight
Gets or sets the radius of the top-right corner. Default value is 0 (zero)
Declaration
public double TopRight { get; set; }
Property Value
Type |
Description |
System.Double |
|
Methods
Equals(RectangleCornerRadius)
Declaration
public bool Equals(RectangleCornerRadius cornerRadius)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
System.Object |
obj |
|
Returns
Type |
Description |
System.Boolean |
|
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type |
Description |
System.Int32 |
|
OnPropertyChanged(String)
Declaration
protected void OnPropertyChanged(string propertyName)
Parameters
Type |
Name |
Description |
System.String |
propertyName |
|
ToString()
Converts the RectangleCornerRadius object to a string representation, using the current System.Globalization.CultureInfo.
Declaration
public override string ToString()
Returns
Type |
Description |
System.String |
The string representation of the RectangleCornerRadius object in the current culture.
|
ToString(CultureInfo)
Converts the RectangleCornerRadius object to a string representation, using the specified System.Globalization.CultureInfo.
Declaration
public string ToString(CultureInfo culture)
Parameters
Type |
Name |
Description |
CultureInfo |
culture |
A System.Globalization.CultureInfo that contains the culture to represent the RectangleCornerRadius.
|
Returns
Type |
Description |
System.String |
The string representation of the RectangleCornerRadius object in the specified culture.
|
Events
PropertyChanged
Occurs when a property value changes.
Declaration
public event PropertyChangedEventHandler PropertyChanged
Event Type
Type |
Description |
PropertyChangedEventHandler |
|
Operators
Equality(RectangleCornerRadius, RectangleCornerRadius)
Declaration
public static bool operator ==(RectangleCornerRadius cr1, RectangleCornerRadius cr2)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Inequality(RectangleCornerRadius, RectangleCornerRadius)
Declaration
public static bool operator !=(RectangleCornerRadius cr1, RectangleCornerRadius cr2)
Parameters
Returns
Type |
Description |
System.Boolean |
|