The Dimension type exposes the following members.
Constructors
| Name | Description | |
|---|---|---|
| Dimension()()()() |
Creates an instance of Dimension | |
| Dimension(Dimension) |
Creates an instance of Dimension | |
| Dimension(Int32, Int32) |
Constructs a Dimension and initializes it to the specified width and
specified height.
|
Methods
| Name | Description | |
|---|---|---|
| Clone |
Creates a new object of the same class as this object.
(Inherited from Dimension2D.) | |
| Equals |
Checks whether two dimension objects have equal values.
(Overrides Object..::..Equals(Object).) | |
| Finalize |
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.) | |
| GetHashCode |
Returns the hash code for this Dimension.
(Overrides Object..::..GetHashCode()()()().) | |
| GetType |
Gets the Type of the current instance.
(Inherited from Object.) | |
| MemberwiseClone |
Creates a shallow copy of the current Object.
(Inherited from Object.) | |
| SetSize(Double, Double) |
Set the size of this Dimension object to the specified width
and height in double precision.
(Overrides Dimension2D..::..SetSize(Double, Double).) | |
| SetSize(Int32, Int32) |
Set the size of this Dimension | |
| ToString |
Returns a string representation of the values of this
(Overrides Object..::..ToString()()()().)Dimension height width |
Fields
| Name | Description | |
|---|---|---|
| height |
The height dimension. Negative values can be used.
| |
| width |
The width dimension. Negative values can be used.
|
Properties
| Name | Description | |
|---|---|---|
| Height |
Returns the height of this dimension in double precision.
(Overrides Dimension2D..::..Height.) | |
| Size |
Get/set the size of this Dimension | |
| Width |
Returns the width of this dimension in double precision.
(Overrides Dimension2D..::..Width.) |