Click or drag to resize
Unit Class
Represents a length measurement.
Inheritance Hierarchy
SystemObject
  Kettic.AspNet.Controls.ChartModel.StylesUnit

Namespace: Kettic.AspNet.Controls.ChartModel.Styles
Assembly: Kettic.AspNet.Controls (in Kettic.AspNet.Controls.dll) Version: 2014.4.1129.0 (2014.04.1129.0)
Syntax
[SerializableAttribute]
public class Unit

The Unit type exposes the following members.

Constructors
  NameDescription
Public methodUnit
Creates a class instance
Public methodUnit(Double)
Initializes a new instance of the Unit with the specified double precision floating point number.
Public methodUnit(Int32)
Initializes a new instance of the Unit with the specified 32-bit signed integer.
Public methodUnit(Single)
Initializes a new instance of the Unit with the specified double precision floating point number.
Public methodUnit(String)
Initializes a new instance of the Unit with the specified length.
Public methodUnit(UnitMode)
Creates a class instance
Public methodUnit(Double, UnitMode)
Initializes a new instance of the Unit with the specified double precision floating point number and the target type
Public methodUnit(Int32, UnitMode)
Initializes a new instance of the Unit with the specified 32-bit signed integer and the target type
Public methodUnit(Single, UnitMode)
Initializes a new instance of the Unit with the specified double precision floating point number and the target type.
Public methodUnit(String, CultureInfo)
Initializes a new instance of the Unit with the specified length.
Top
Methods
  NameDescription
Public methodEquals
Compares this Unit with the specified object.
(Overrides ObjectEquals(Object).)
Public methodGetHashCode
Returns a hash code for this Unit.
(Overrides ObjectGetHashCode.)
Public methodStatic memberParse(String)
Converts the specified string to a Unit.
Public methodStatic memberParse(String, CultureInfo)
Public methodStatic memberPercentage
Creates a Unit of type Percentage from the specified double-precision floating-point number.
Public methodStatic memberPixel
Creates a Unit of type Pixel from the specified 32-bit signed integer.
Public methodToString
Base ToString override
(Overrides ObjectToString.)
Public methodToString(CultureInfo)
Base ToString override
Top
Operators
  NameDescription
Public operatorStatic memberEquality
Compares two Unit objects to determine whether they are equal.
Public operatorStatic member(Single to Unit)
Implicitly creates a Unit of type Pixel from the specified float.
Public operatorStatic memberInequality
Compares two Unit objects to determine whether they are not equal.
Top
Fields
  NameDescription
Public fieldStatic memberEmpty
Represents an empty Unit. This field is read-only.
Top
Properties
  NameDescription
Public propertyIsEmpty
Gets whether Unit is empty
Public propertyType
Gets or sets the unit type of the Unit.
Public propertyValue
Gets or sets the length of the Unit.
Top
See Also