Class TextGeometry
Definition
- Namespace:
- Tizen.NUI.BaseComponents
- Assembly:
- Tizen.NUI.dll
C#Copypublic static class TextGeometry : object
- Inheritance
-
TextGeometry
Methods
GetTextPosition(TextEditor, Int32, Int32)
Get the rendered position (top-left) of the text between start and end (included).
if the requested text is at multilines, multiple positions will be returned for each text located in a separate line.
if a line contains characters with different directions, multiple positions will be returned for each block of contiguous characters with the same direction.
Declaration
C#Copypublic static List<Position2D> GetTextPosition(TextEditor textEditor, int start, int end)
Parameters
Type | Name | Description |
---|---|---|
TextEditor | textEditor | The TextEditor control containing the text. |
Int32 | start | The start index of the text to get the position for |
Int32 | end | The end index of the text to get the position for. |
Returns
Type | Description |
---|---|
List<Position2D> |
GetTextPosition(TextField, Int32, Int32)
Get the rendered position (top-left) of the text between start and end (included).
if the requested text is at multilines, multiple positions will be returned for each text located in a separate line.
if a line contains characters with different directions, multiple positions will be returned for each block of contiguous characters with the same direction.
Declaration
C#Copypublic static List<Position2D> GetTextPosition(TextField textField, int start, int end)
Parameters
Type | Name | Description |
---|---|---|
TextField | textField | The TextField control containing the text. |
Int32 | start | The start index of the text to get the position for |
Int32 | end | The end index of the text to get the position for. |
Returns
Type | Description |
---|---|
List<Position2D> |
GetTextPosition(TextLabel, Int32, Int32)
Get the rendered position (top-left) of the text between start and end (included).
if the requested text is at multilines, multiple positions will be returned for each text located in a separate line.
if a line contains characters with different directions, multiple positions will be returned for each block of contiguous characters with the same direction.
Declaration
C#Copypublic static List<Position2D> GetTextPosition(TextLabel textLabel, int start, int end)
Parameters
Type | Name | Description |
---|---|---|
TextLabel | textLabel | The TextLabel control containing the text. |
Int32 | start | The start index of the text to get the position for |
Int32 | end | The end index of the text to get the position for. |
Returns
Type | Description |
---|---|
List<Position2D> |
GetTextSize(TextEditor, Int32, Int32)
Get the rendered size of the text between start and end (included).
if the requested text is at multilines, multiple sizes will be returned for each text located in a separate line.
if a line contains characters with different directions, multiple sizes will be returned for each block of contiguous characters with the same direction.
Declaration
C#Copypublic static List<Size2D> GetTextSize(TextEditor textEditor, int start, int end)
Parameters
Type | Name | Description |
---|---|---|
TextEditor | textEditor | The TextEditor control containing the text. |
Int32 | start | The start index of the text to get the size for |
Int32 | end | The end index of the text to get the size for. |
Returns
Type | Description |
---|---|
List<Size2D> |
GetTextSize(TextField, Int32, Int32)
Get the rendered size of the text between start and end (included).
if the requested text is at multilines, multiple sizes will be returned for each text located in a separate line.
if a line contains characters with different directions, multiple sizes will be returned for each block of contiguous characters with the same direction.
Declaration
C#Copypublic static List<Size2D> GetTextSize(TextField textField, int start, int end)
Parameters
Type | Name | Description |
---|---|---|
TextField | textField | The TextField control containing the text. |
Int32 | start | The start index of the text to get the size for |
Int32 | end | The end index of the text to get the size for. |
Returns
Type | Description |
---|---|
List<Size2D> |
GetTextSize(TextLabel, Int32, Int32)
Get the rendered size of the text between start and end (included).
if the requested text is at multilines, multiple sizes will be returned for each text located in a separate line.
if a line contains characters with different directions, multiple sizes will be returned for each block of contiguous characters with the same direction.
Declaration
C#Copypublic static List<Size2D> GetTextSize(TextLabel textLabel, int start, int end)
Parameters
Type | Name | Description |
---|---|---|
TextLabel | textLabel | The TextLabel control containing the text. |
Int32 | start | The start index of the text to get the size for |
Int32 | end | The end index of the text to get the size for. |
Returns
Type | Description |
---|---|
List<Size2D> |