C# Class LessCss.StyleNumber

Anything composed of a value (double) and a unit of measure
Inheritance: StyleValue
显示文件 Open project: erikvanbrakel/less.net Class Usage Examples

Public Properties

Property Type Description
UnitOfMeasure string
Value decimal

Public Methods

Method Description
StyleNumber ( decimal value ) : System
StyleNumber ( decimal value, string unitofmeasure ) : System
ToString ( ) : string

Protected Methods

Method Description
Add ( StyleValue right ) : StyleValue
Div ( StyleValue right ) : StyleValue
Mul ( StyleValue right ) : StyleValue
Sub ( StyleValue right ) : StyleValue

Private Methods

Method Description
CanOperateOn ( StyleNumber other ) : bool

Method Details

Add() protected method

protected Add ( StyleValue right ) : StyleValue
right StyleValue
return StyleValue

Div() protected method

protected Div ( StyleValue right ) : StyleValue
right StyleValue
return StyleValue

Mul() protected method

protected Mul ( StyleValue right ) : StyleValue
right StyleValue
return StyleValue

StyleNumber() public method

public StyleNumber ( decimal value ) : System
value decimal
return System

StyleNumber() public method

public StyleNumber ( decimal value, string unitofmeasure ) : System
value decimal
unitofmeasure string
return System

Sub() protected method

protected Sub ( StyleValue right ) : StyleValue
right StyleValue
return StyleValue

ToString() public method

public ToString ( ) : string
return string

Property Details

UnitOfMeasure public_oe property

public string UnitOfMeasure
return string

Value public_oe property

public decimal Value
return decimal