The ReportSize type exposes the following members.
Constructors
Name | Description | |
---|---|---|
ReportSize(String) |
Initializes a new instance of the ReportSize type.
|
|
ReportSize(ReportSizeType, Double) |
Initializes a new instance of the ReportSize type.
|
Methods
Name | Description | |
---|---|---|
Compare |
Compares two sizes.
|
|
Convert(ReportSizeType) |
Converts the current size to specified units.
|
|
Convert(UnitTypeEnum) |
Converts the current size to specified units.
|
|
Equals |
Compares the current size with another object.
This method performs comparison by value.
(Overrides Object..::..Equals(Object).) |
|
GetHashCode |
Gets the hash code for the current object, based on its value.
(Overrides Object..::..GetHashCode()()()().) |
|
IsNullOrEmpty |
Tests whether a size is null or empty.
|
|
Parse |
Converts a string to the corresponding ReportSizeType value.
|
|
ReportSizeTypeToString |
Converts a ReportSizeType value to a string representation as in
the following table:
|
|
ReportSizeTypeToUnit |
Converts a ReportSizeType value to the corresponding UnitTypeEnum value.
|
|
StringToReportSizeType |
Converts a string to a ReportSizeType value. The string can be one of the following:
"in", "mm", "cm", "pt".
This method is case-insensitive.
|
|
ToCentimeters |
Converts the current size to centimeters.
|
|
ToDoc |
Converts the current size to "doc" units (1/300 of an inch).
|
|
ToInches |
Converts the current size to inches.
|
|
ToMillimeters |
Converts the current size to millimeters.
|
|
ToPixels |
Converts the current size to pixels.
|
|
ToPoints |
Converts the current size to points.
|
|
ToString |
Converts the current object to a string.
The returned string can be converted back to the current length object
(e.g. it can be used to initialize a ReportSize to the same value).
(Overrides Object..::..ToString()()()().) |
|
ToUnit |
Converts the current size to a Unit.
|
|
TryParse |
Converts a string to the corresponding ReportSizeType value.
A return value indicates whether the conversion succeeded or failed.
|
Operators
Name | Description | |
---|---|---|
Addition |
Adds two sizes.
|
|
Equality |
Tests whether two ReportSize values are equal.
|
|
Inequality |
Tests whether two ReportSize values are not equal.
|
|
Subtraction |
Subtracts one size from another.
|
Properties
Name | Description | |
---|---|---|
Abs |
Converts the current size to its absolute value.
|
|
Empty |
Represents an empty size.
|
|
IsNeg |
Gets a value indicating whether the current size is negative.
|
|
Units |
Gets the units of measurement used by the current size.
|
|
Value |
Gets the absolute value of the current size (in Units).
|