Udostępnij za pośrednictwem


Int16Size Struct

Definition

Represents a size using Int16 values for Width/Height, meaning it occupies 4 bytes instead of the 16 bytes required for System.Windows.Size (which uses doubles for Width/Height).

This is useful in situations where an integral range of [0-32767] for Width/Height is sufficient and the space occupied by the structure is of concern.

public value class Int16Size : IEquatable<Microsoft::VisualStudio::Utilities::Int16Size>, IFormattable
public struct Int16Size : IEquatable<Microsoft.VisualStudio.Utilities.Int16Size>, IFormattable
type Int16Size = struct
    interface IFormattable
Public Structure Int16Size
Implements IEquatable(Of Int16Size), IFormattable
Inheritance
Int16Size
Implements

Constructors

Int16Size(Double, Double)

Constructs a Int16Size structure with an initial width and height.

Int16Size(Int16, Int16)

Constructs a Int16Size structure with an initial width and height.

Int16Size(Int32, Int32)

Constructs a Int16Size structure with an initial width and height.

Int16Size(Size)

Constructs a Int16Size structure from a Size structure

Properties

Area

The area of the Int16Size

Empty

Returns a Int16Size whose IsEmpty property is true.

Height

The height of the Int16Size

IsEmpty

Indicates whether the Int16Size is empty

Width

The width of the Int16Size

Methods

Equals(Int16Size)

Determines whether this Int16Size equals another Int16Size.

Equals(Object)

Determines whether this Int16Size equals the specified Int16Size.

GetHashCode()

Gets the hash code for the object.

ToDimensionString()

Returns a string for Int16Size, as "{width}x{height}"

ToString()

Gets the string form of Int16Size.

ToString(String, IFormatProvider)

Returns the string form of the Int16Size, using the specified format and format provider.

ToWindowsSize()

Converts the Int16Size to a System.Windows.Size

Operators

Equality(Int16Size, Int16Size)

Determines whether the first Int16Size equals the second Int16Size.

Inequality(Int16Size, Int16Size)

Determines whether two Int16Size objects are not equal.

Applies to