Class TextMapHelper
Definition
- Namespace:
- Tizen.NUI.BaseComponents
- Assembly:
- Tizen.NUI.dll
TextMapHelper converts PropertyMap to struct and struct to PropertyMap.
public static class TextMapHelper
- Inheritance
-
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
public static PropertyMap GetFileNameMap(string fileName)
Parameters
Type |
Name |
Description |
string |
fileName |
|
Returns
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
public static string GetFontSizeString(FontSizeType fontSizeType)
Parameters
Returns
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
public static FontSizeType GetFontSizeType(string fontSizeString)
Parameters
Type |
Name |
Description |
string |
fontSizeString |
|
Returns
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
public static string GetFontSlantString(FontSlantType fontSlantType)
Parameters
Returns
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
public static FontSlantType GetFontSlantType(string fontSlantString)
Parameters
Type |
Name |
Description |
string |
fontSlantString |
|
Returns
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
public static PropertyMap GetFontStyleMap(FontStyle fontStyle)
Parameters
Returns
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
public static FontStyle GetFontStyleStruct(PropertyMap map)
Parameters
Returns
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
public static string GetFontWeightString(FontWeightType fontWeightType)
Parameters
Returns
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
public static FontWeightType GetFontWeightType(string fontWeightString)
Parameters
Type |
Name |
Description |
string |
fontWeightString |
|
Returns
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
public static string GetFontWidthString(FontWidthType fontWidthType)
Parameters
Returns
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
public static FontWidthType GetFontWidthType(string fontWidthString)
Parameters
Type |
Name |
Description |
string |
fontWidthString |
|
Returns
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
public static PropertyMap GetHiddenInputMap(HiddenInput hiddenInput)
Parameters
Returns
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
public static HiddenInput GetHiddenInputStruct(PropertyMap map)
Parameters
Returns
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
public static PropertyMap GetInputFilterMap(InputFilter inputFilter)
Parameters
Returns
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
public static InputFilter GetInputFilterStruct(PropertyMap map)
Parameters
Returns
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
public static PropertyMap GetOutlineMap(Outline outline)
Parameters
Type |
Name |
Description |
Outline |
outline |
|
Returns
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
public static Outline GetOutlineStruct(PropertyMap map)
Parameters
Returns
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
public static PropertyMap GetPlaceholderMap(Placeholder placeholder)
Parameters
Returns
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
public static Placeholder GetPlaceholderStruct(PropertyMap map)
Parameters
Returns
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
public static SelectionHandleImage GetSelectionHandleImageStruct(PropertyMap leftImageMap, PropertyMap rightImageMap)
Parameters
Returns
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
public static PropertyMap GetShadowMap(Shadow shadow)
Parameters
Type |
Name |
Description |
Shadow |
shadow |
|
Returns
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
public static Shadow GetShadowStruct(PropertyMap map)
Parameters
Returns
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
public static PropertyMap GetStrikethroughMap(Strikethrough strikethrough)
Parameters
Returns
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
public static Strikethrough GetStrikethroughStruct(PropertyMap map)
Parameters
Returns
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
public static PropertyMap GetTextFitMap(TextFit textFit)
Parameters
Type |
Name |
Description |
TextFit |
textFit |
|
Returns
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
public static TextFit GetTextFitStruct(PropertyMap map)
Parameters
Returns
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
public static PropertyMap GetUnderlineMap(Underline underline)
Parameters
Returns
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
public static Underline GetUnderlineStruct(PropertyMap map)
Parameters
Returns