Class DpTypeConverter

Definition

Namespace:
Tizen.NUI
Assembly:
Tizen.NUI.dll

Default DpTypeConverter class to convert dp types.

C#
Copy
public sealed class DpTypeConverter : GraphicsTypeConverter
Inheritance
DpTypeConverter

Properties

View Source

Instance

An unique Singleton Instance of DpTypeConverter.

Declaration
C#
Copy
public static DpTypeConverter Instance { get; }
Property Value
Type Description
DpTypeConverter

Singleton instance of DpTypeConverter

Methods

View Source

ConvertFromPixel(Single)

Converts px to dp type.

Declaration
C#
Copy
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
C#
Copy
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
C#
Copy
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