Int16Size Structure
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.
Assembly: Microsoft.VisualStudio.Utilities (in Microsoft.VisualStudio.Utilities.dll)
| Name | Description | |
|---|---|---|
![]() | Int16Size(Int16, Int16) | Constructs an Int16Size structure with an initial width and height. |
![]() | Int16Size(Int32, Int32) | Constructs an Int16Size structure with an initial width and height. |
![]() | Int16Size(Size) | Constructs an Int16Size structure from a Size structure |
| Name | Description | |
|---|---|---|
![]() | Equals(Int16Size) | Determines whether this Int16Size equals another Int16Size. |
![]() | Equals(Object) | Determines whether this Int16Size equals the specified Int16Size.(Overrides ValueType.Equals(Object).) |
![]() | GetHashCode() | Gets the hash code for the object.(Overrides ValueType.GetHashCode().) |
![]() | GetType() | (Inherited from Object.) |
![]() | ToDimensionString() | Returns a string as {width}x{height}. |
![]() | ToString() | Gets the string form of Int16Size.(Overrides ValueType.ToString().) |
![]() | ToString(String, IFormatProvider) | Returns the string form of the Int16Size, using the specified format and format provider. |
![]() | ToWindowsSize() | Converts the Int16Size to a Size. |
| Name | Description | |
|---|---|---|
![]() ![]() | Equality(Int16Size, Int16Size) | Determines whether the first Int16Size equals the second Int16Size. |
![]() ![]() | Inequality(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.



