[]
        
(Showing Draft Content)

C1.Framework.Corners

Corners Struct

Represents corners associated with a user interface (UI) element.

Namespace: C1.Framework
Assembly: C1.Win.4.8.dll
Syntax
[TypeConverter(typeof(CornersConverter))]
public struct Corners

Constructors

Name Description
Corners(int)

Initializes a new instance of a Corners object.

Corners(int, int, int, int)

Initializes a new instance of a Corners object.

Properties

Name Description
Empty

Provides a Corners object with no thickness.

IsEmpty

Returns true if the Corners object is empty.

LeftBottom

Gets or sets the radius for the left bottom corner.

LeftTop

Gets or sets the radius for the left top corner.

RightBottom

Gets or sets the radius for the right bottom corner.

RightTop

Gets or sets the radius for the right top corner.

Methods

Name Description
Equals(object)

Determines whether the value of the specified object is equivalent to the current Corners.

GetHashCode()

Generates a hash code for the current Corners.

SwapLeftRight()

Swaps corners for RightToLeft layout.

SwapTopBottom()

Swaps top and bottom corners.

ToString()

Returns a string that represents the current Corners.

Operators

Name Description
operator ==(Corners, Corners)

Tests whether two specified Corners objects are equivalent.

implicit operator Corners(int)

Converts an int into a Corners.

operator !=(Corners, Corners)

Tests whether two specified Corners objects are not equivalent.