Definition
- Namespace:
- Tizen.NUI
- Assembly:
- Tizen.NUI.dll
Default DpTypeConverter class to convert dp types.
public sealed class DpTypeConverter : GraphicsTypeConverter
- Inheritance
-
Properties
View Source
Instance
An unique Singleton Instance of DpTypeConverter.
Declaration
public static DpTypeConverter Instance { get; }
Property Value
Methods
Declaration
public override float ConvertFromPixel(float value)
Parameters
Type |
Name |
Description |
Single |
value |
|
Returns
Type |
Description |
Single |
An converted value from pixel
|
Overrides
View Source
ConvertScriptToPixel(String)
Converts script to pixel.
Declaration
public override float ConvertScriptToPixel(string scriptValue)
Parameters
Type |
Name |
Description |
String |
scriptValue |
|
Returns
Type |
Description |
Single |
Pixel value that is converted from input string
|
Overrides
View Source
ConvertToPixel(Single)
Converts dp type to pixel.
Declaration
public override float ConvertToPixel(float value)
Parameters
Type |
Name |
Description |
Single |
value |
|
Returns
Type |
Description |
Single |
Pixel value that is converted by the the display matric
|
Overrides
Extension Methods