[]
        
(Showing Draft Content)

C1.Framework.Thickness

Thickness Struct

Represents padding, border or margin information associated with a user interface (UI) element.

Namespace: C1.Framework
Assembly: C1.Win.8.dll
Syntax
[TypeConverter(typeof(ThicknessConverter))]
public struct Thickness

Constructors

Name Description
Thickness(int)

Initializes a new instance of a Thickness.

Thickness(int, int)

Initializes a new instance of a Thickness.

Thickness(int, int, int, int)

Initializes a new instance of a Thickness.

Properties

Name Description
Bottom

Gets or sets the thickness value for the bottom edge.

Empty

Provides a Thickness object with no thickness.

Height

Gets the combined thickness for the top and bottom edges.

IsEmpty

Returns true if the Thickness object is empty.

Left

Gets or sets the thickness value for the left edge.

Right

Gets or sets the thickness value for the right edge.

Top

Gets or sets the thickness value for the top edge.

Width

Gets the combined thickness for the right and left edges.

Methods

Name Description
Deflate(Rectangle)

Deflates the specified Rectangle by the current Thickness.

DeflateRtl(Rectangle)

Deflates the specified Rectangle by the current Thickness with RightToLeft layout.

Equals(object)

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

GetHashCode()

Generates a hash code for the current Thickness.

Inflate(Rectangle)

Inflates the specified Rectangle by the current Thickness.

Inflate(int)

Inflates the current Thickness by the specified size.

Inflate(int, int)

Inflates the current Thickness by the specified values.

InflateRtl(Rectangle)

Inflates the specified Rectangle by the current Thickness with RightToLeft layout.

SwapLeftRight()

Swaps the values of the Left and Right properties.

ToString()

Returns a string that represents the current Thickness.

Operators

Name Description
operator ==(Thickness, Thickness)

Tests whether two specified Thickness objects are equivalent.

implicit operator Padding(Thickness)

Converts an Thickness into a Padding.

implicit operator Thickness(int)

Converts an int into a Thickness.

implicit operator Thickness(Padding)

Converts an Thickness into a Padding.

operator !=(Thickness, Thickness)

Tests whether two specified Thickness objects are not equivalent.