Stores an ordered pair of integers, typical the width and height of a
Rect.
Namespace: Stemmer.Cvb
Assembly: Stemmer.Cvb (in Stemmer.Cvb.dll) Version: 14.0.0.0
Syntax
The Size2D type exposes the following members.
Constructors
Name | Description | |
---|---|---|
Size2D(Point2D) |
Creates a size from the given point's pt horizontal
and vertical components.
| |
Size2D(Int32, Int32) |
Creates a size with a given width and
height.
|
Properties
Name | Description | |
---|---|---|
Height |
Gets/sets the vertical component of the size.
| |
Width |
Gets/sets the horizontal component of the size.
|
Methods
Name | Description | |
---|---|---|
Add |
Adds the width and height of one Size2D structure width
and height of another one.
| |
Equals |
Tests whether two objects are Size2D and equal.
(Overrides ValueTypeEquals(Object).) | |
GetHashCode |
Default implementation.
(Overrides ValueTypeGetHashCode.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
Subtract |
Subtracts the width and height of one Size2D structure
width and height of another one.
| |
ToString |
Gets the string representation of this size.
(Overrides ValueTypeToString.) |
Operators
Name | Description | |
---|---|---|
Addition |
Adds the width and height of one Size2D structure width
and height of another one.
| |
Equality |
Tests whether two sizes are equal.
| |
(Size2D to Point2D) |
Converts the given sz to a Point2D.
| |
Inequality |
Tests whether two sizes are unequal.
| |
Subtraction |
Subtracts the width and height of one Size2D structure
width and
height of another one.
|
Fields
Name | Description | |
---|---|---|
Empty |
Extension Methods
Name | Description | |
---|---|---|
ToSize |
Convert a CvbSize to a Size.
(Defined by ImageExtensions.) | |
ToWpfSize |
Convert a Size2D to a WPF
Size.
(Defined by MiscExtensions.) |
See Also