Click to Rate and Give Feedback
MSDN
MSDN Library
.NET Development
.NET Framework 3.5
Size Structure
 Size Members
Collapse All/Expand All Collapse All
Members FilterMembers Filter
Frameworks FilterFrameworks Filter
This page is specific to
Microsoft Visual Studio 2008/.NET Framework 3.5

Other versions are also available for the following:
.NET Framework Class Library
Size Members

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

The Size type exposes the following members.

  NameDescription
Public methodSupported by the .NET Compact FrameworkSizeOverloaded. Initializes a new instance of the Size class from the specified Point.
Top
  NameDescription
Public methodStatic memberAddAdds the width and height of one Size structure to the width and height of another Size structure.
Public methodStatic memberCeilingConverts the specified SizeF structure to a Size structure by rounding the values of the Size structure to the next higher integer values.
Public methodSupported by the .NET Compact FrameworkEqualsTests to see whether the specified object is a Size with the same dimensions as this Size. (Overrides ValueType..::.Equals(Object).)
Protected methodSupported by the .NET Compact FrameworkFinalizeAllows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)
Public methodSupported by the .NET Compact FrameworkGetHashCodeReturns a hash code for this Size structure. (Overrides ValueType..::.GetHashCode()()().)
Public methodSupported by the .NET Compact FrameworkGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodSupported by the .NET Compact FrameworkMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodStatic memberRoundConverts the specified SizeF structure to a Size structure by rounding the values of the SizeF structure to the nearest integer values.
Public methodStatic memberSubtractSubtracts the width and height of one Size structure from the width and height of another Size structure.
Public methodSupported by the .NET Compact FrameworkToStringOverloaded.
Public methodStatic memberTruncateConverts the specified SizeF structure to a Size structure by truncating the values of the SizeF structure to the next lower integer values.
Top
  NameDescription
Public operatorStatic memberAdditionAdds the width and height of one Size structure to the width and height of another Size structure.
Public operatorStatic memberSupported by the .NET Compact FrameworkEqualityTests whether two Size structures are equal.
Public operatorStatic memberExplicitConverts the specified Size to a Point.
Public operatorStatic memberImplicitConverts the specified Size to a SizeF.
Public operatorStatic memberSupported by the .NET Compact FrameworkInequalityTests whether two Size structures are different.
Public operatorStatic memberSubtractionSubtracts the width and height of one Size structure from the width and height of another Size structure.
Top
  NameDescription
Public fieldStatic memberSupported by the .NET Compact FrameworkEmptyGets a Size structure that has a Height and Width value of 0.
Top
  NameDescription
Public propertySupported by the .NET Compact FrameworkHeightGets or sets the vertical component of this Size.
Public propertySupported by the .NET Compact FrameworkIsEmptyTests whether this Size has width and height of 0.
Public propertySupported by the .NET Compact FrameworkWidthGets or sets the horizontal component of this Size.
Top
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement
Page view tracker