The Dimension type exposes the following members.

Constructors

  NameDescription
Public methodDimension()()()()
Creates an instance of
CopyC#
Dimension
with a width of zero and a height of zero.
Public methodDimension(Dimension)
Creates an instance of
CopyC#
Dimension
whose width and height are the same as for the specified dimension.
Public methodDimension(Int32, Int32)
Constructs a Dimension and initializes it to the specified width and specified height.

Methods

  NameDescription
Public methodClone
Creates a new object of the same class as this object.
(Inherited from Dimension2D.)
Public methodEquals
Checks whether two dimension objects have equal values.
(Overrides Object..::..Equals(Object).)
Protected methodFinalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Returns the hash code for this Dimension.
(Overrides Object..::..GetHashCode()()()().)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodSetSize(Double, Double)
Set the size of this Dimension object to the specified width and height in double precision.
(Overrides Dimension2D..::..SetSize(Double, Double).)
Public methodSetSize(Int32, Int32)
Set the size of this
CopyC#
Dimension
object to the specified width and height.
Public methodToString
Returns a string representation of the values of this
CopyC#
Dimension
object's
CopyC#
height
and
CopyC#
width
fields.
(Overrides Object..::..ToString()()()().)

Fields

  NameDescription
Public fieldheight
The height dimension. Negative values can be used.
Public fieldwidth
The width dimension. Negative values can be used.

Properties

  NameDescription
Public propertyHeight
Returns the height of this dimension in double precision.
(Overrides Dimension2D..::..Height.)
Public propertySize
Get/set the size of this
CopyC#
Dimension
object.
Public propertyWidth
Returns the width of this dimension in double precision.
(Overrides Dimension2D..::..Width.)

See Also