[]
        
(Showing Draft Content)

C1.Win.Interop.Size

Size Struct

Stores an ordered pair of double values, typically the width and height of a rectangle.

Namespace: C1.Win.Interop
Assembly: C1.Win.8.dll
Syntax
public struct Size

Constructors

Name Description
Size(double, double)

Initializes a new instance of the Size structure.

Properties

Name Description
Empty

Represents an empty instance of the Size structure.

Height

Gets or sets the vertical component of the current Size.

IsEmpty

Gets a value indicating whether of the current Size has zero Width and Height.

Width

Gets or sets the horizontal component of the current Size.

Methods

Name Description
Add(Size, Size)

Adds two Size structures.

Ceiling()

Converts the current Size structure to a Point by rounding the width and height to the next higher integer values.

Equals(object)

Indicates whether this instance and a specified object are equal.

GetHashCode()

Returns the hash code for this instance.

Parse(string, out Size, bool)

Converts a string to a Size structure.

Substract(Size, Size)

Subtracts one Size structure from another.

ToString()

Converts the current Size structure to a human-readable string representing it.

Truncate()

Converts the current Size structure to a Point by truncating the width and height to integer values.

Operators

Name Description
operator +(Size, Size)

Adds two Size structures.

operator ==(Size, Size)

Indicates whether two Size structures are equal.

explicit operator Point(Size)

Converts a Size to a Point.

implicit operator Size(Size)

Converts a Size to a Size.

implicit operator Size(SizeF)

Converts a SizeF to a Size.

operator !=(Size, Size)

Indicates whether two Size structures are not equal.

operator -(Size, Size)

Subtracts one Size structure from another.