Class TextGeometry

    Definition

    Namespace:
    Tizen.NUI.BaseComponents
    Assembly:
    Tizen.NUI.dll
    public static class TextGeometry
    Inheritance
    object
    TextGeometry

    Methods

    View Source

    GetTextPosition(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>
    View Source

    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>
    View Source

    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>
    View Source

    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>
    View Source

    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>
    View Source

    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>
    • View Source
    Back to top Copyright © 2016-2025 Samsung
    Generated by DocFX