Int16Size Structure

Visual Studio 2015
 

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.

Namespace:   Microsoft.VisualStudio.Utilities
Assembly:  Microsoft.VisualStudio.Utilities (in Microsoft.VisualStudio.Utilities.dll)

public struct Int16Size : IEquatable<Int16Size>, IFormattable

NameDescription
System_CAPS_pubmethodInt16Size(Int16, Int16)

Constructs an Int16Size structure with an initial width and height.

System_CAPS_pubmethodInt16Size(Int32, Int32)

Constructs an Int16Size structure with an initial width and height.

System_CAPS_pubmethodInt16Size(Size)

Constructs an Int16Size structure from a Size structure

NameDescription
System_CAPS_pubpropertyArea

Gets the area of the Int16Size.

System_CAPS_pubpropertySystem_CAPS_staticEmpty

Gets an Int16Size whose IsEmpty property is true.

System_CAPS_pubpropertyHeight

Gets or sets the height of the Int16Size.

System_CAPS_pubpropertyIsEmpty

Indicates whether the Int16Size is empty.

System_CAPS_pubpropertyWidth

Gets or sets the width of the Int16Size

NameDescription
System_CAPS_pubmethodEquals(Int16Size)

Determines whether this Int16Size equals another Int16Size.

System_CAPS_pubmethodEquals(Object)

Determines whether this Int16Size equals the specified Int16Size.(Overrides ValueType.Equals(Object).)

System_CAPS_pubmethodGetHashCode()

Gets the hash code for the object.(Overrides ValueType.GetHashCode().)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_pubmethodToDimensionString()

Returns a string as {width}x{height}.

System_CAPS_pubmethodToString()

Gets the string form of Int16Size.(Overrides ValueType.ToString().)

System_CAPS_pubmethodToString(String, IFormatProvider)

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

System_CAPS_pubmethodToWindowsSize()

Converts the Int16Size to a Size.

NameDescription
System_CAPS_puboperatorSystem_CAPS_staticEquality(Int16Size, Int16Size)

Determines whether the first Int16Size equals the second Int16Size.

System_CAPS_puboperatorSystem_CAPS_staticInequality(Int16Size, Int16Size)

Determines whether two Int16Size objects are not equal.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: