Class RectangleCornerRadius
Represents the radii of a rectangle's corners.
Inheritance
System.Object
RectangleCornerRadius
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace:Neodynamic.SDK.Printing
Assembly:Neodynamic.SDK.ThermalLabel.dll
Syntax
[TypeConverter(typeof (RectangleCornerRadiusConverter))]
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 |
|
Overrides
System.Object.Equals(System.Object)
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type |
Description |
System.Int32 |
|
Overrides
System.Object.GetHashCode()
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.
|
Overrides
System.Object.ToString()
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 |
System.Globalization.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 |
System.ComponentModel.PropertyChangedEventHandler |
|
Implements
System.ComponentModel.INotifyPropertyChanged.PropertyChanged
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 |
|