HiraokaHyperTools.iTextSharp-LGPL
0.2.5
|
The More...
Public Member Functions | |
Dimension () | |
Creates an instance of More... | |
Dimension (Dimension d) | |
Creates an instance of More... | |
Dimension (int width, int height) | |
Constructs a Dimension and initializes it to the specified width and specified height. More... | |
override void | SetSize (double width, double height) |
Set the size of this Dimension object to the specified width and height in double precision. More... | |
void | SetSize (int width, int height) |
Set the size of this More... | |
override bool | Equals (Object obj) |
Checks whether two dimension objects have equal values. More... | |
override int | GetHashCode () |
Returns the hash code for this Dimension. More... | |
override string | ToString () |
Returns a string representation of the values of this More... | |
![]() | |
Object | Clone () |
Creates a new object of the same class as this object. More... | |
Public Attributes | |
int | width |
The width dimension. Negative values can be used. More... | |
int | height |
The height dimension. Negative values can be used. More... | |
Properties | |
override double | Width [get] |
Returns the width of this dimension in double precision. More... | |
override double | Height [get] |
Returns the height of this dimension in double precision. More... | |
new Dimension | Size [get, set] |
Get/set the size of this More... | |
![]() | |
abstract double | Width [get] |
Returns the width of this More... | |
abstract double | Height [get] |
Returns the height of this More... | |
Dimension2D | Size [set] |
Sets the size of this More... | |
Additional Inherited Members | |
![]() | |
Dimension2D () | |
This is an abstract class that cannot be instantiated directly. Type-specific implementation subclasses are available for instantiation and provide a number of formats for storing the information necessary to satisfy the various accessor methods below. More... | |
The
Dimension
class encapsulates the width and height of a component (in int precision) in a single object.
The class is associated with certain properties of components. Several methods defined by the
class and the
interface return a
object.
Normally the values of
and
are non-negative ints. The constructors that allow you to create a dimension do not prevent you from setting a negative value for these properties. If the value of
or
is negative, the behavior of some methods defined by other objects is undefined.
System.Drawing.Dimension.Dimension | ( | ) |
Creates an instance of
Dimension
with a width of zero and a height of zero.
System.Drawing.Dimension.Dimension | ( | Dimension | d | ) |
System.Drawing.Dimension.Dimension | ( | int | width, |
int | height | ||
) |
Constructs a Dimension and initializes it to the specified width and specified height.
width | the specified width dimension |
height | the specified height dimension |
override bool System.Drawing.Dimension.Equals | ( | Object | obj | ) |
Checks whether two dimension objects have equal values.
obj |
override int System.Drawing.Dimension.GetHashCode | ( | ) |
Returns the hash code for this Dimension.
|
virtual |
Set the size of this Dimension object to the specified width and height in double precision.
width | the new width for the Dimension object |
height | the new height for the Dimension object |
Implements System.Drawing.Dimension2D.
void System.Drawing.Dimension.SetSize | ( | int | width, |
int | height | ||
) |
override string System.Drawing.Dimension.ToString | ( | ) |
Returns a string representation of the values of this
Dimension
object's height
and width
fields.
This method is intended to be used only for debugging purposes, and the content and format of the returned string may vary between implementations. The returned string may be empty but may not be
.
int System.Drawing.Dimension.height |
The height dimension. Negative values can be used.
int System.Drawing.Dimension.width |
The width dimension. Negative values can be used.
|
get |
Returns the height of this dimension in double precision.
the height
|
getset |
|
get |
Returns the width of this dimension in double precision.
the width