Class TextGeometry
Definition
- Namespace:
- Tizen.NUI.BaseComponents
- Assembly:
- Tizen.NUI.dll
public static class TextGeometry
- Inheritance
-
objectTextGeometry
Methods
View SourceGetTextPosition(TextEditor, int, int)
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
public static List<Position2D> GetTextPosition(TextEditor textEditor, int start, int end)
Parameters
Type | Name | Description |
---|---|---|
TextEditor | textEditor | The TextEditor control containing the text. |
int | start | The start index of the text to get the position for |
int | end | The end index of the text to get the position for. |
Returns
Type | Description |
---|---|
List<><Position2D> |
GetTextPosition(TextField, int, int)
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
public static List<Position2D> GetTextPosition(TextField textField, int start, int end)
Parameters
Type | Name | Description |
---|---|---|
TextField | textField | The TextField control containing the text. |
int | start | The start index of the text to get the position for |
int | end | The end index of the text to get the position for. |
Returns
Type | Description |
---|---|
List<><Position2D> |
GetTextPosition(TextLabel, int, int)
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
public static List<Position2D> GetTextPosition(TextLabel textLabel, int start, int end)
Parameters
Type | Name | Description |
---|---|---|
TextLabel | textLabel | The TextLabel control containing the text. |
int | start | The start index of the text to get the position for |
int | end | The end index of the text to get the position for. |
Returns
Type | Description |
---|---|
List<><Position2D> |
GetTextSize(TextEditor, int, int)
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
public static List<Size2D> GetTextSize(TextEditor textEditor, int start, int end)
Parameters
Type | Name | Description |
---|---|---|
TextEditor | textEditor | The TextEditor control containing the text. |
int | start | The start index of the text to get the size for |
int | end | The end index of the text to get the size for. |
Returns
Type | Description |
---|---|
List<><Size2D> |
GetTextSize(TextField, int, int)
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
public static List<Size2D> GetTextSize(TextField textField, int start, int end)
Parameters
Type | Name | Description |
---|---|---|
TextField | textField | The TextField control containing the text. |
int | start | The start index of the text to get the size for |
int | end | The end index of the text to get the size for. |
Returns
Type | Description |
---|---|
List<><Size2D> |
GetTextSize(TextLabel, int, int)
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
public static List<Size2D> GetTextSize(TextLabel textLabel, int start, int end)
Parameters
Type | Name | Description |
---|---|---|
TextLabel | textLabel | The TextLabel control containing the text. |
int | start | The start index of the text to get the size for |
int | end | The end index of the text to get the size for. |
Returns
Type | Description |
---|---|
List<><Size2D> |