Size2D Structure

CVB.Net Documentation
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

public struct Size2D

The Size2D type exposes the following members.

Constructors

  NameDescription
Public methodSize2D(Point2D)
Creates a size from the given point's pt horizontal and vertical components.
Public methodSize2D(Int32, Int32)
Creates a size with a given width and height.
Top
Properties

  NameDescription
Public propertyHeight
Gets/sets the vertical component of the size.
Public propertyWidth
Gets/sets the horizontal component of the size.
Top
Methods

  NameDescription
Public methodStatic memberAdd
Adds the width and height of one Size2D structure width and height of another one.
Public methodEquals
Tests whether two objects are Size2D and equal.
(Overrides ValueTypeEquals(Object).)
Public methodGetHashCode
Default implementation.
(Overrides ValueTypeGetHashCode.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodStatic memberSubtract
Subtracts the width and height of one Size2D structure width and height of another one.
Public methodToString
Gets the string representation of this size.
(Overrides ValueTypeToString.)
Top
Operators

  NameDescription
Public operatorStatic memberAddition
Adds the width and height of one Size2D structure width and height of another one.
Public operatorStatic memberEquality
Tests whether two sizes are equal.
Public operatorStatic member(Size2D to Point2D)
Converts the given sz to a Point2D.
Public operatorStatic memberInequality
Tests whether two sizes are unequal.
Public operatorStatic memberSubtraction
Subtracts the width and height of one Size2D structure width and height of another one.
Top
Fields

  NameDescription
Public fieldStatic memberEmpty
Gets a Size2D with Width and Height value of 0.
Top
Extension Methods

  NameDescription
Public Extension MethodToSize
Convert a CvbSize to a Size.
(Defined by ImageExtensions.)
Public Extension MethodToWpfSize
Convert a Size2D to a WPF Size.
(Defined by MiscExtensions.)
Top
See Also

Reference