Distance Structure |
Namespace: Ranorex.Core
The Distance type exposes the following members.
| Name | Description | |
|---|---|---|
| Distance(Double) |
Creates a new proportional distance.
| |
| Distance(Int32) |
Creates a new fixed distance.
|
| Name | Description | |
|---|---|---|
| FixedDistance |
Gets the fixed distance in pixels. Throws an exception if the distance is a proportional distance.
| |
| IsFixedDistance |
Gets a value indicating whether the this instance is a fixed e.g. has a fixed pixel value.
| |
| ProportionalDistance |
Gets the proportional distance. Throws an exception if the distance is a fixed distance.
|
| Name | Description | |
|---|---|---|
| CalculateFixedDistance |
Calculates the fixed distance for the specified element rectangle and the given angle.
| |
| Equals |
Compares two distances if they are equal.
(Overrides ValueTypeEquals(Object).) | |
| Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
| FromFixedDistance |
Converts from Int32 to a Distance.
| |
| FromProportionalDistance |
Converts from Double to a Distance.
| |
| GetHashCode |
Returns a integer hash code for the current object.
(Overrides ValueTypeGetHashCode.) | |
| GetType | Gets the Type of the current instance. (Inherited from Object.) | |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
| Parse |
Converts a string representation of a distance to its distance equivalent.
| |
| ToString |
Returns a string representation of the distance.
(Overrides ValueTypeToString.) | |
| TryParse |
Converts a string representation of a distance to its distance equivalent. The return value indicates whether the conversion
succeeded.
|
| Name | Description | |
|---|---|---|
| Equality |
Compares two distances if they are equal.
| |
| (Double to Distance) |
Performs an implicit conversion from Double to a Distance.
| |
| (Int32 to Distance) |
Performs an implicit conversion from Int32 to a Distance.
| |
| Inequality |
Compares two distances if they are not equal.
|