In This Topic
The following tables list the members exposed by Length.
Public Constructors
Public Fields
Public Properties
| Name | Description |
| IsUndefined | Indicates if the Length has been set to a particular value; |
| IsValid | Indicates if the Length string contains the correct units and value. |
| IsZero | Returns True if the length is valid and equals to zero. |
| OriginalUnit | Contains the original unit type that was passed in so it can be used in conversions later |
Top
Public Methods
| Name | Description |
| Add | Adds two specified Length values and return the unit of the first GrapeCity.ActiveReports.Extensibility.Definition.Components.Length. |
| CompareTo | Overloaded. Compares this instance to a specified object and returns an indication of their relative values. |
| Divide | Divides the specified lengths. |
| DivideBy | Returns the Length divided by the specified value. |
| Equals | Overloaded. Tests for equivalence between two Length objects. |
| FromTwips | Create a new Length from twips. |
| GetHashCode | Serves as a hash function for the Length |
| Multiply | Multiplies the specified length. |
| Subtract | Subtracts one Length from another and return the unit of the first GrapeCity.ActiveReports.Extensibility.Definition.Components.Length. |
| ToCentimeters | Converts the existing Length twips to centimeters (1cm = 567twips) |
| ToInches | Converts the existing Length twips to inches (1in = 1440twips) |
| ToMillimeters | Converts the existing Length twips to millimeters (1mm = 56.7twips) |
| ToPica | Converts the existing Length twips to pica (1pc = 240twips) |
| ToPoints | Converts the existing Length twips to points (1pt = 20twips) |
| ToString | Overloaded. Converts the value of this instance to its equivalent string representation. |
| ToTwips | Converts the existing Length to twips |
| TryParse | Tries to parse specified string as length. |
| TwipsToString | Converts a passed in value to string based on the passed in unit type. |
Top
Public Operators
Addition | Adds two specified Length values and return the unit of the first GrapeCity.ActiveReports.Extensibility.Definition.Components.Length. |
Equality | For predefined value types, the equality operator (==) returns true if the values of its operands are equal, false otherwise. For reference types other than string, == returns true if its two operands refer to the same object. For the string type, == compares the values of the strings. |
Explicit Type Conversion | Converts current Length instance to a string |
Greater Than | All numeric and enumeration types define a "greater than" relational operator (>) that returns trueif the first operand is greater than the second, falseotherwise. |
Greater Than or Equal | All numeric and enumeration types define a "greater than or equal" relational operator (>=) that returns trueif the first operand is greater than or equal to the second, falseotherwise. |
Implicit Type Conversion | Converts string value to a new Length instance. |
Inequality | The inequality operator (!=) returns false if its operands are equal, true otherwise. Inequality operators are predefined for all types, including string and object. User-defined types can overload the != operator. |
Less Than | All numeric and enumeration types define a "less than" relational operator (<) that returns trueif the first operand is less than the second, falseotherwise. |
Less Than or Equal | All numeric and enumeration types define a "less than or equal" relational operator (<=) that returns trueif the first operand is less than or equal to the second, falseotherwise. |
Subtraction | Subtracts one Length from another and return the unit of the first GrapeCity.ActiveReports.Extensibility.Definition.Components.Length. |
Unary Negation | Inverts sign of the length value. |
Top
See Also