Definition
- Namespace:
- Tizen.NUI
- Assembly:
- Tizen.NUI.dll
Default SpTypeConverter class to convert dp types.
public sealed class SpTypeConverter : GraphicsTypeConverter
- Inheritance
-
Properties
View Source
Instance
An unique Singleton Instance of SpTypeConverter
Declaration
public static SpTypeConverter Instance { get; }
Property Value
Methods
View Source
ConvertFromPixel(Single)
Converts pixel to sp type
Declaration
public override float ConvertFromPixel(float value)
Parameters
Type |
Name |
Description |
Single |
value |
|
Returns
Type |
Description |
Single |
An converted value from pixel
|
Overrides
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 sp 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