Class TextMapHelper

Definition

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

TextMapHelper converts PropertyMap to struct and struct to PropertyMap.

C#
Copy
public static class TextMapHelper : object
Inheritance
TextMapHelper

Methods

View Source

GetFileNameMap(String)

This method converts a fileName string to a PropertyMap and returns it. The returned map can be used for set SelectionHandleImageLeft, SelectionHandleImageRight PropertyMap in the SetSelectionHandleImage method. The file path string value for SelectionHandleImage. A PropertyMap for SelectionHandleImageLeft, SelectionHandleImageRight properties.

Declaration
C#
Copy
public static PropertyMap GetFileNameMap(string fileName)
Parameters
Type Name Description
String fileName
Returns
Type Description
PropertyMap
View Source

GetFontSizeString(FontSizeType)

It returns a string value according to FontSizeType. The returned value can be used for TextFit PropertyMap. The FontSizeType enum value. A string value for TextFit.FontSizeType property.

Declaration
C#
Copy
public static string GetFontSizeString(FontSizeType fontSizeType)
Parameters
Type Name Description
FontSizeType fontSizeType
Returns
Type Description
String
View Source

GetFontSizeType(String)

It returns a FontSizeType value according to fontSizeString. The returned value can be used for FontStyle PropertyMap. The FontSizeType string value. A FontSizeType value for TextFit.FontSizeType property.

Declaration
C#
Copy
public static FontSizeType GetFontSizeType(string fontSizeString)
Parameters
Type Name Description
String fontSizeString
Returns
Type Description
FontSizeType
View Source

GetFontSlantString(FontSlantType)

It returns a string value according to FontSlantType. The returned value can be used for FontStyle PropertyMap. The FontSlantType enum value. A string value for FontStyle.Slant property.

Declaration
C#
Copy
public static string GetFontSlantString(FontSlantType fontSlantType)
Parameters
Type Name Description
FontSlantType fontSlantType
Returns
Type Description
String
View Source

GetFontSlantType(String)

It returns a FontSlantType value according to fontSlantString. The returned value can be used for FontStyle PropertyMap. The FontSlant string value. A FontSlantType value for FontStyle.Slant property.

Declaration
C#
Copy
public static FontSlantType GetFontSlantType(string fontSlantString)
Parameters
Type Name Description
String fontSlantString
Returns
Type Description
FontSlantType
View Source

GetFontStyleMap(FontStyle)

This method converts a FontStyle struct to a PropertyMap and returns it. The returned map can be used for set FontStyle PropertyMap in the SetFontStyle method. The FontStyle struct value. A PropertyMap for FontStyle property.

Declaration
C#
Copy
public static PropertyMap GetFontStyleMap(FontStyle fontStyle)
Parameters
Type Name Description
FontStyle fontStyle
Returns
Type Description
PropertyMap
View Source

GetFontStyleStruct(PropertyMap)

This method converts a FontStyle map to a struct and returns it. The returned struct can be returned to the user as a FontStyle in the GetFontStyle method. The FontStyle PropertyMap. A FontStyle struct.

Declaration
C#
Copy
public static FontStyle GetFontStyleStruct(PropertyMap map)
Parameters
Type Name Description
PropertyMap map
Returns
Type Description
FontStyle
View Source

GetFontWeightString(FontWeightType)

It returns a string value according to FontWeightType. The returned value can be used for FontStyle PropertyMap. The FontWeightType enum value. A string value for FontStyle.Weight property.

Declaration
C#
Copy
public static string GetFontWeightString(FontWeightType fontWeightType)
Parameters
Type Name Description
FontWeightType fontWeightType
Returns
Type Description
String
View Source

GetFontWeightType(String)

It returns a FontWeightType value according to fontWeightString. The returned value can be used for FontStyle PropertyMap. The FontWeight string value. A FontWeightType value for FontStyle.Weight property.

Declaration
C#
Copy
public static FontWeightType GetFontWeightType(string fontWeightString)
Parameters
Type Name Description
String fontWeightString
Returns
Type Description
FontWeightType
View Source

GetFontWidthString(FontWidthType)

It returns a string value according to FontWidthType. The returned value can be used for FontStyle PropertyMap. The FontWidthType enum value. A string value for FontStyle.Width property.

Declaration
C#
Copy
public static string GetFontWidthString(FontWidthType fontWidthType)
Parameters
Type Name Description
FontWidthType fontWidthType
Returns
Type Description
String
View Source

GetFontWidthType(String)

It returns a FontWidthType value according to fontWidthString. The returned value can be used for FontStyle PropertyMap. The FontWidth string value. A FontWidthType value for FontStyle.Width property.

Declaration
C#
Copy
public static FontWidthType GetFontWidthType(string fontWidthString)
Parameters
Type Name Description
String fontWidthString
Returns
Type Description
FontWidthType
View Source

GetHiddenInputMap(HiddenInput)

This method converts a HiddenInput struct to a PropertyMap and returns it. The returned map can be used for set HiddenInputSettings PropertyMap in the SetHiddenInput method. The HiddenInput struct value. A PropertyMap for HiddenInput property.

Declaration
C#
Copy
public static PropertyMap GetHiddenInputMap(HiddenInput hiddenInput)
Parameters
Type Name Description
HiddenInput hiddenInput
Returns
Type Description
PropertyMap
View Source

GetHiddenInputStruct(PropertyMap)

This method converts a HiddenInputSettings map to a struct and returns it. The returned struct can be returned to the user as a HiddenInput in the GetHiddenInput method. The HiddenInput PropertyMap. A HiddenInput struct.

Declaration
C#
Copy
public static HiddenInput GetHiddenInputStruct(PropertyMap map)
Parameters
Type Name Description
PropertyMap map
Returns
Type Description
HiddenInput
View Source

GetInputFilterMap(InputFilter)

This method converts a InputFilter struct to a PropertyMap and returns it.
The returned map can be used for set InputFilter PropertyMap in the SetInputFilter method.
The InputFilter struct value. A PropertyMap for InputFilter property.

Declaration
C#
Copy
public static PropertyMap GetInputFilterMap(InputFilter inputFilter)
Parameters
Type Name Description
InputFilter inputFilter
Returns
Type Description
PropertyMap
View Source

GetInputFilterStruct(PropertyMap)

This method converts a InputFilter map to a struct and returns it.
The returned struct can be returned to the user as a InputFilter in the GetInputFilter method.
The InputFilter PropertyMap. A InputFilter struct.

Declaration
C#
Copy
public static InputFilter GetInputFilterStruct(PropertyMap map)
Parameters
Type Name Description
PropertyMap map
Returns
Type Description
InputFilter
View Source

GetOutlineMap(Outline)

This method converts a Outline struct to a PropertyMap and returns it. The returned map can be used for set Outline PropertyMap in the SetOutline method. The Outline struct value. A PropertyMap for Outline property.

Declaration
C#
Copy
public static PropertyMap GetOutlineMap(Outline outline)
Parameters
Type Name Description
Outline outline
Returns
Type Description
PropertyMap
View Source

GetOutlineStruct(PropertyMap)

This method converts a Outline map to a struct and returns it. The returned struct can be returned to the user as a Outline in the GetOutline method. The Outline PropertyMap. A Outline struct.

Declaration
C#
Copy
public static Outline GetOutlineStruct(PropertyMap map)
Parameters
Type Name Description
PropertyMap map
Returns
Type Description
Outline
View Source

GetPlaceholderMap(Placeholder)

This method converts a Placeholder struct to a PropertyMap and returns it. The returned map can be used for set Placeholder PropertyMap in the SetPlaceholder method. The Placeholder struct value. A PropertyMap for Placeholder property.

Declaration
C#
Copy
public static PropertyMap GetPlaceholderMap(Placeholder placeholder)
Parameters
Type Name Description
Placeholder placeholder
Returns
Type Description
PropertyMap
View Source

GetPlaceholderStruct(PropertyMap)

This method converts a Placeholder map to a struct and returns it. The returned struct can be returned to the user as a Placeholder in the GetPlaceholder method. The Placeholder PropertyMap. A Placeholder struct.

Declaration
C#
Copy
public static Placeholder GetPlaceholderStruct(PropertyMap map)
Parameters
Type Name Description
PropertyMap map
Returns
Type Description
Placeholder
View Source

GetSelectionHandleImageStruct(PropertyMap, PropertyMap)

This method converts a SelectionHandleImageLeft, SelectionHandleImageRight map to a struct and returns it. The returned struct can be returned to the user as a SelectionHandleImage in the GetSelectionHandleImage method. The SelectionHandleImageLeft PropertyMap. The SelectionHandleImageRight PropertyMap. A SelectionHandleImage struct.

Declaration
C#
Copy
public static SelectionHandleImage GetSelectionHandleImageStruct(PropertyMap leftImageMap, PropertyMap rightImageMap)
Parameters
Type Name Description
PropertyMap leftImageMap
PropertyMap rightImageMap
Returns
Type Description
SelectionHandleImage
View Source

GetShadowMap(Shadow)

This method converts a Shadow struct to a PropertyMap and returns it. The returned map can be used for set Shadow PropertyMap in the SetShadow method. The Shadow struct value. A PropertyMap for Shadow property.

Declaration
C#
Copy
public static PropertyMap GetShadowMap(Shadow shadow)
Parameters
Type Name Description
Shadow shadow
Returns
Type Description
PropertyMap
View Source

GetShadowStruct(PropertyMap)

This method converts a Shadow map to a struct and returns it. The returned struct can be returned to the user as a Shadow in the GetShadow method. The Shadow PropertyMap. A Shadow struct.

Declaration
C#
Copy
public static Shadow GetShadowStruct(PropertyMap map)
Parameters
Type Name Description
PropertyMap map
Returns
Type Description
Shadow
View Source

GetStrikethroughMap(Strikethrough)

This method converts a Strikethrough struct to a PropertyMap and returns it. The returned map can be used for set Strikethrough PropertyMap in the SetStrikethrough method. The Strikethrough struct value. A PropertyMap for Strikethrough property.

Declaration
C#
Copy
public static PropertyMap GetStrikethroughMap(Strikethrough strikethrough)
Parameters
Type Name Description
Strikethrough strikethrough
Returns
Type Description
PropertyMap
View Source

GetStrikethroughStruct(PropertyMap)

This method converts a Strikethrough map to a struct and returns it. The returned struct can be returned to the user as a Strikethrough in the GetUnderline method. The Strikethrough PropertyMap. A Strikethrough struct.

Declaration
C#
Copy
public static Strikethrough GetStrikethroughStruct(PropertyMap map)
Parameters
Type Name Description
PropertyMap map
Returns
Type Description
Strikethrough
View Source

GetTextFitMap(TextFit)

This method converts a TextFit struct to a PropertyMap and returns it. The returned map can be used for set TextFit PropertyMap in the SetTextFit method. The TextFit struct value. A PropertyMap for TextFit property.

Declaration
C#
Copy
public static PropertyMap GetTextFitMap(TextFit textFit)
Parameters
Type Name Description
TextFit textFit
Returns
Type Description
PropertyMap
View Source

GetTextFitStruct(PropertyMap)

This method converts a TextFit map to a struct and returns it. The returned struct can be returned to the user as a TextFit in the GetTextFit method. The TextFit PropertyMap. A TextFit struct.

Declaration
C#
Copy
public static TextFit GetTextFitStruct(PropertyMap map)
Parameters
Type Name Description
PropertyMap map
Returns
Type Description
TextFit
View Source

GetUnderlineMap(Underline)

This method converts a Underline struct to a PropertyMap and returns it. The returned map can be used for set Underline PropertyMap in the SetUnderline method. The Underline struct value. A PropertyMap for Underline property.

Declaration
C#
Copy
public static PropertyMap GetUnderlineMap(Underline underline)
Parameters
Type Name Description
Underline underline
Returns
Type Description
PropertyMap
View Source

GetUnderlineStruct(PropertyMap)

This method converts a Underline map to a struct and returns it. The returned struct can be returned to the user as a Underline in the GetUnderline method. The Underline PropertyMap. A Underline struct.

Declaration
C#
Copy
public static Underline GetUnderlineStruct(PropertyMap map)
Parameters
Type Name Description
PropertyMap map
Returns
Type Description
Underline