C# Class LessCss.StyleNumber

Anything composed of a value (double) and a unit of measure
Inheritance: StyleValue
Afficher le fichier Open project: erikvanbrakel/less.net Class Usage Examples

Méthodes publiques

Свойство Type Description
UnitOfMeasure string
Value decimal

Méthodes publiques

Méthode Description
StyleNumber ( decimal value ) : System
StyleNumber ( decimal value, string unitofmeasure ) : System
ToString ( ) : string

Méthodes protégées

Méthode Description
Add ( StyleValue right ) : StyleValue
Div ( StyleValue right ) : StyleValue
Mul ( StyleValue right ) : StyleValue
Sub ( StyleValue right ) : StyleValue

Private Methods

Méthode Description
CanOperateOn ( StyleNumber other ) : bool

Method Details

Add() protected méthode

protected Add ( StyleValue right ) : StyleValue
right StyleValue
Résultat StyleValue

Div() protected méthode

protected Div ( StyleValue right ) : StyleValue
right StyleValue
Résultat StyleValue

Mul() protected méthode

protected Mul ( StyleValue right ) : StyleValue
right StyleValue
Résultat StyleValue

StyleNumber() public méthode

public StyleNumber ( decimal value ) : System
value decimal
Résultat System

StyleNumber() public méthode

public StyleNumber ( decimal value, string unitofmeasure ) : System
value decimal
unitofmeasure string
Résultat System

Sub() protected méthode

protected Sub ( StyleValue right ) : StyleValue
right StyleValue
Résultat StyleValue

ToString() public méthode

public ToString ( ) : string
Résultat string

Property Details

UnitOfMeasure public_oe property

public string UnitOfMeasure
Résultat string

Value public_oe property

public decimal Value
Résultat decimal