Paradox Game Engine  v1.0.0 beta06
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros Pages
SiliconStudio.Presentation.Controls.UnitConversion Class Reference

Represent an unit conversion for an UnitSystem used for grouping large or small values (such as nano or mega units) More...

Inheritance diagram for SiliconStudio.Presentation.Controls.UnitConversion:
DependencyObject

Public Member Functions

 UnitConversion ()
 

Static Public Attributes

static readonly DependencyProperty ValueProperty = DependencyProperty.Register("Value", typeof(double), typeof(UnitConversion))
 
static readonly DependencyProperty SymbolProperty = DependencyProperty.Register("Symbol", typeof(string), typeof(UnitConversion))
 
static readonly DependencyProperty GroupingValuesProperty = DependencyProperty.Register("GroupingValues", typeof(UnitGroupingCollection), typeof(UnitConversion))
 
static readonly DependencyProperty IsMultipliableProperty = DependencyProperty.Register("IsMultipliable", typeof(bool), typeof(UnitConversion))
 

Properties

double Value [get, set]
 The value of this conversion expressed in its parent unit More...
 
string Symbol [get, set]
 The symbol of this conversion More...
 
UnitGroupingCollection GroupingValues [get, set]
 A list of UnitGrouping that can be used to override the default grouping method (which groups by the closest value of the form {1/2/5} * 10^n) More...
 
bool IsMultipliable [get, set]
 If the GroupingValues list is empty, indicate that the values can be grouped using the default grouping method (which groups by the closest value of the form {1/2/5} * 10^n * Value) More...
 

Detailed Description

Represent an unit conversion for an UnitSystem used for grouping large or small values (such as nano or mega units)

Definition at line 47 of file UnitSystem.cs.

Constructor & Destructor Documentation

SiliconStudio.Presentation.Controls.UnitConversion.UnitConversion ( )

Definition at line 71 of file UnitSystem.cs.

Member Data Documentation

readonly DependencyProperty SiliconStudio.Presentation.Controls.UnitConversion.GroupingValuesProperty = DependencyProperty.Register("GroupingValues", typeof(UnitGroupingCollection), typeof(UnitConversion))
static

Definition at line 51 of file UnitSystem.cs.

readonly DependencyProperty SiliconStudio.Presentation.Controls.UnitConversion.IsMultipliableProperty = DependencyProperty.Register("IsMultipliable", typeof(bool), typeof(UnitConversion))
static

Definition at line 52 of file UnitSystem.cs.

readonly DependencyProperty SiliconStudio.Presentation.Controls.UnitConversion.SymbolProperty = DependencyProperty.Register("Symbol", typeof(string), typeof(UnitConversion))
static

Definition at line 50 of file UnitSystem.cs.

readonly DependencyProperty SiliconStudio.Presentation.Controls.UnitConversion.ValueProperty = DependencyProperty.Register("Value", typeof(double), typeof(UnitConversion))
static

Definition at line 49 of file UnitSystem.cs.

Property Documentation

UnitGroupingCollection SiliconStudio.Presentation.Controls.UnitConversion.GroupingValues
getset

A list of UnitGrouping that can be used to override the default grouping method (which groups by the closest value of the form {1/2/5} * 10^n)

Definition at line 65 of file UnitSystem.cs.

bool SiliconStudio.Presentation.Controls.UnitConversion.IsMultipliable
getset

If the GroupingValues list is empty, indicate that the values can be grouped using the default grouping method (which groups by the closest value of the form {1/2/5} * 10^n * Value)

Definition at line 69 of file UnitSystem.cs.

string SiliconStudio.Presentation.Controls.UnitConversion.Symbol
getset

The symbol of this conversion

Definition at line 61 of file UnitSystem.cs.

double SiliconStudio.Presentation.Controls.UnitConversion.Value
getset

The value of this conversion expressed in its parent unit

Definition at line 57 of file UnitSystem.cs.


The documentation for this class was generated from the following file: