Progress® Telerik® Reporting R3 2017

Unit Structure

A structure representing a unit of measure.

Namespace:  Telerik.Reporting.Drawing
Assembly:  Telerik.Reporting (in Telerik.Reporting.dll)

Syntax

[SerializableAttribute]
public struct Unit : IComparable, IComparable<Unit>

The Unit type exposes the following members.

Constructors

  NameDescription
Public methodUnit(Double)
Initializes a new instance of the Unit structure from the specified pixels. The Unit's type is DefaultType
Public methodUnit(String)
Initializes a new instance of the Unit structure from the specified string value.
Public methodUnit(Double, UnitType)
Initializes a new instance of the Unit structure with the specified value and type.
Public methodUnit(String, CultureInfo)
Initializes a new instance of the Unit structure from the specified string value and using the specified CultureInfo.
Public methodUnit(String, CultureInfo, UnitType)
Initializes a new instance of the Unit structure from the specified string value, culture, and type.
Top

Properties

  NameDescription
Public propertyStatic memberDefaultType
Gets or sets a UnitType representing the default units of measure for a Report.
Public propertyStatic memberDotsPerInch
Gets a double value representing the dpi of the current graphics context.
Public propertyIsEmpty
Specifies whether this Unit structure is uninitialized.
Public propertyType
Gets the type of the Unit.
Public propertyValue
Gets the magnitude of this Unit.
Top

Methods

  NameDescription
Public methodAdd(Unit)
Adds a unit to this Unit.
Public methodStatic memberAdd(Unit, Unit)
Returns a Unit that is the sum of two units and its unit type matches the first argument type.
Public methodStatic memberAdd(Unit, Unit, UnitType)Obsolete.
Returns a Unit that is the sum of two units and is of the specified type.
Public methodChangeType
Returns a unit equal to this Unit but with its type changed.
Public methodStatic memberCm(Double)
Creates a new Unit of type UnitType.Cm and magnitude equal to value.
Public methodStatic memberCm(Int32)
Creates a new Unit of type UnitType.Cm and magnitude equal to value.
Public methodCompareTo(Object)
Public methodCompareTo(Unit)
Public methodDivide(Double)
Divides this Unit by a specified value.
Public methodDivide(Unit)
Divides this Unit by another.
Public methodEquals
Tests whether obj is a Unit that equals this Unit.
(Overrides ValueTypeEquals(Object).)
Public methodStatic memberFromPixels
Public methodGetHashCode
Returns a hash code for this Unit structure.
(Overrides ValueTypeGetHashCode.)
Public methodStatic memberInch(Double)
Creates a new Unit of type UnitType.Inch and magnitude equal to value.
Public methodStatic memberInch(Int32)
Creates a new Unit of type UnitType.Inch and magnitude equal to value.
Public methodStatic memberMax
Returns the larger of two units.
Public methodStatic memberMin
Returns the smaller of two units.
Public methodStatic memberMm(Double)
Creates a new Unit of type UnitType.Mm and magnitude equal to value.
Public methodStatic memberMm(Int32)
Creates a new Unit of type UnitType.Mm and magnitude equal to value.
Public methodMultiply
Multiplies this Unit by a specified value.
Public methodStatic memberParse(String)
Parses a string value to create a new Unit.
Public methodStatic memberParse(String, CultureInfo)
Parses a string value to create a new Unit based on the specified culture.
Public methodStatic memberPica(Double)
Creates a new Unit of type UnitType.Pica and magnitude equal to value.
Public methodStatic memberPica(Int32)
Creates a new Unit of type UnitType.Pica and magnitude equal to value.
Public methodStatic memberPixel(Double)
Creates a new Unit of type UnitType.Pixel and magnitude equal to value.
Public methodStatic memberPixel(Int32)
Creates a new Unit of type UnitType.Pixel and magnitude equal to value.
Public methodStatic memberPoint(Double)
Creates a new Unit of type UnitType.Point and magnitude equal to value.
Public methodStatic memberPoint(Int32)
Creates a new Unit of type UnitType.Point and magnitude equal to value.
Public methodSubtract(Unit)
Subtracts a unit from this Unit.
Public methodStatic memberSubtract(Unit, Unit)
Returns a Unit that is the difference of two units and is of the specified type.
Public methodStatic memberSubtract(Unit, Unit, UnitType)Obsolete.
Returns a Unit that is the difference of two units and is of the specified type.
Public methodToString
Returns a human-readable representation of this Unit.
(Overrides ValueTypeToString.)
Public methodToString(CultureInfo)
Returns a human-readable representation of this Unit.
Top

Operators

  NameDescription
Public operatorStatic memberAddition
Adds one Unit to another.
Public operatorStatic memberDivision(Unit, Double)
Divides a Unit by a specified value.
Public operatorStatic memberDivision(Unit, Unit)
Divides the first Unit by the second.
Public operatorStatic memberEquality
Compares two units.
Public operatorStatic memberGreaterThan
Compares two units.
Public operatorStatic memberGreaterThanOrEqual
Compares two units.
Public operatorStatic memberInequality
Compares two units.
Public operatorStatic memberLessThan
Compares two units.
Public operatorStatic memberLessThanOrEqual
Compares two units.
Public operatorStatic memberMultiply(Double, Unit)
Multiplies a value by a Unit.
Public operatorStatic memberMultiply(Unit, Double)
Multiplies a Unit by a specified value.
Public operatorStatic memberSubtraction
Subtract one Unit from another.
Public operatorStatic memberUnaryNegation
Unary minus. Reverses the sign of Unit
Top

Fields

  NameDescription
Public fieldStatic memberEmpty
Initializes a new instance of the Unit structure.
Public fieldStatic memberZero
Initializes a new instance of the Unit structure equal to zero.
Top

See Also