Class TextEditor

    Definition

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

    A control which provides a multi-line editable text editor.

    public class TextEditor : View, INotifyPropertyChanged, IDisposable
    Inheritance
    object
    Tizen.NUI.Binding.BindableObject
    Tizen.NUI.Binding.Element
    BaseHandle
    Animatable
    Container
    View
    TextEditor
    Implements
    System.ComponentModel.INotifyPropertyChanged
    System.IDisposable

    Constructors

    View Source

    TextEditor()

    Creates the TextEditor control.

    Declaration
    public TextEditor()

    Properties

    View Source

    CursorBlinkDuration

    The CursorBlinkDuration property.

    Declaration
    public float CursorBlinkDuration { get; set; }
    Property Value
    Type Description
    float
    View Source

    CursorBlinkInterval

    The CursorBlinkInterval property.

    Declaration
    public float CursorBlinkInterval { get; set; }
    Property Value
    Type Description
    float
    View Source

    CursorWidth

    The CursorWidth property.

    Declaration
    public int CursorWidth { get; set; }
    Property Value
    Type Description
    int
    View Source

    DecorationBoundingBox

    The DecorationBoundingBox property.

    Declaration
    public Rectangle DecorationBoundingBox { get; set; }
    Property Value
    Type Description
    Rectangle
    View Source

    Emboss

    The Emboss property.

    Declaration
    public string Emboss { get; set; }
    Property Value
    Type Description
    string
    View Source

    EnableCursorBlink

    The EnableCursorBlink property.

    Declaration
    public bool EnableCursorBlink { get; set; }
    Property Value
    Type Description
    bool
    View Source

    EnableMarkup

    The EnableMarkup property.

    Declaration
    public bool EnableMarkup { get; set; }
    Property Value
    Type Description
    bool
    View Source

    EnableScrollBar

    The EnableScrollBar property.

    Declaration
    public bool EnableScrollBar { get; set; }
    Property Value
    Type Description
    bool
    View Source

    EnableSelection

    The EnableSelection property.

    Declaration
    public bool EnableSelection { get; set; }
    Property Value
    Type Description
    bool
    View Source

    FontFamily

    The FontFamily property.

    Declaration
    public string FontFamily { get; set; }
    Property Value
    Type Description
    string
    View Source

    FontStyle

    The FontStyle property.

    Declaration
    public PropertyMap FontStyle { get; set; }
    Property Value
    Type Description
    PropertyMap
    View Source

    GrabHandleImage

    The GrabHandleImage property.

    Declaration
    public string GrabHandleImage { get; set; }
    Property Value
    Type Description
    string
    View Source

    GrabHandlePressedImage

    The GrabHandlePressedImage property.

    Declaration
    public string GrabHandlePressedImage { get; set; }
    Property Value
    Type Description
    string
    View Source

    HorizontalAlignment

    The HorizontalAlignment property.

    Declaration
    public HorizontalAlignment HorizontalAlignment { get; set; }
    Property Value
    Type Description
    HorizontalAlignment
    View Source

    InputColor

    The InputColor property.

    Declaration
    public Vector4 InputColor { get; set; }
    Property Value
    Type Description
    Vector4
    View Source

    InputEmboss

    The InputEmboss property.

    Declaration
    public string InputEmboss { get; set; }
    Property Value
    Type Description
    string
    View Source

    InputFontFamily

    The InputFontFamily property.

    Declaration
    public string InputFontFamily { get; set; }
    Property Value
    Type Description
    string
    View Source

    InputFontStyle

    The InputFontStyle property.

    Declaration
    public PropertyMap InputFontStyle { get; set; }
    Property Value
    Type Description
    PropertyMap
    View Source

    InputLineSpacing

    The InputLineSpacing property.

    Declaration
    public float InputLineSpacing { get; set; }
    Property Value
    Type Description
    float
    View Source

    InputOutline

    The InputOutline property.

    Declaration
    public string InputOutline { get; set; }
    Property Value
    Type Description
    string
    View Source

    InputPointSize

    The InputPointSize property.

    Declaration
    public float InputPointSize { get; set; }
    Property Value
    Type Description
    float
    View Source

    InputShadow

    The InputShadow property.

    Declaration
    public string InputShadow { get; set; }
    Property Value
    Type Description
    string
    View Source

    InputUnderline

    The InputUnderline property.

    Declaration
    public string InputUnderline { get; set; }
    Property Value
    Type Description
    string
    View Source

    LineCount

    The line count of the text.

    Declaration
    public int LineCount { get; }
    Property Value
    Type Description
    int
    View Source

    LineSpacing

    The LineSpacing property.

    Declaration
    public float LineSpacing { get; set; }
    Property Value
    Type Description
    float
    View Source

    LineWrapMode

    The LineWrapMode property.
    The line wrap mode when the text lines over the layout width.

    Declaration
    public LineWrapMode LineWrapMode { get; set; }
    Property Value
    Type Description
    LineWrapMode
    View Source

    Outline

    The Outline property.

    Declaration
    public PropertyMap Outline { get; set; }
    Property Value
    Type Description
    PropertyMap
    View Source

    PixelSize

    The PixelSize property.

    Declaration
    public float PixelSize { get; set; }
    Property Value
    Type Description
    float
    View Source

    Placeholder

    The Placeholder property. Gets or sets the placeholder: text, color, font family, font style, point size, and pixel size.

    Declaration
    public PropertyMap Placeholder { get; set; }
    Property Value
    Type Description
    PropertyMap
    Examples

    The following example demonstrates how to set the placeholder property.

    PropertyMap propertyMap = new PropertyMap();
    propertyMap.Add("text", new PropertyValue("Setting Placeholder Text"));
    propertyMap.Add("textFocused", new PropertyValue("Setting Placeholder Text Focused"));
    propertyMap.Add("color", new PropertyValue(Color.Red));
    propertyMap.Add("fontFamily", new PropertyValue("Arial"));
    propertyMap.Add("pointSize", new PropertyValue(12.0f));
    
    PropertyMap fontStyleMap = new PropertyMap();
    fontStyleMap.Add("weight", new PropertyValue("bold"));
    fontStyleMap.Add("width", new PropertyValue("condensed"));
    fontStyleMap.Add("slant", new PropertyValue("italic"));
    propertyMap.Add("fontStyle", new PropertyValue(fontStyleMap));
    
    TextEditor editor = new TextEditor();
    editor.Placeholder = propertyMap;
    View Source

    PlaceholderText

    The text to display when the TextEditor is empty and inactive.

    Declaration
    public string PlaceholderText { get; set; }
    Property Value
    Type Description
    string
    View Source

    PlaceholderTextColor

    The Placeholder text color.

    Declaration
    public Color PlaceholderTextColor { get; set; }
    Property Value
    Type Description
    Color
    View Source

    PointSize

    The PointSize property.

    Declaration
    public float PointSize { get; set; }
    Property Value
    Type Description
    float
    View Source

    PrimaryCursorColor

    The PrimaryCursorColor property.

    Declaration
    public Vector4 PrimaryCursorColor { get; set; }
    Property Value
    Type Description
    Vector4
    View Source

    ScrollBarFadeDuration

    The ScrollBarFadeDuration property.

    Declaration
    public float ScrollBarFadeDuration { get; set; }
    Property Value
    Type Description
    float
    View Source

    ScrollBarShowDuration

    The ScrollBarShowDuration property.

    Declaration
    public float ScrollBarShowDuration { get; set; }
    Property Value
    Type Description
    float
    View Source

    ScrollSpeed

    The ScrollSpeed property.

    Declaration
    public float ScrollSpeed { get; set; }
    Property Value
    Type Description
    float
    View Source

    ScrollThreshold

    The ScrollThreshold property.

    Declaration
    public float ScrollThreshold { get; set; }
    Property Value
    Type Description
    float
    View Source

    SecondaryCursorColor

    The SecondaryCursorColor property.

    Declaration
    public Vector4 SecondaryCursorColor { get; set; }
    Property Value
    Type Description
    Vector4
    View Source

    SelectionHandleImageLeft

    The SelectionHandleImageLeft property.

    Declaration
    public PropertyMap SelectionHandleImageLeft { get; set; }
    Property Value
    Type Description
    PropertyMap
    View Source

    SelectionHandleImageRight

    The SelectionHandleImageRight property.

    Declaration
    public PropertyMap SelectionHandleImageRight { get; set; }
    Property Value
    Type Description
    PropertyMap
    View Source

    SelectionHandleMarkerImageLeft

    The SelectionHandleMarkerImageLeft property.

    Declaration
    public PropertyMap SelectionHandleMarkerImageLeft { get; set; }
    Property Value
    Type Description
    PropertyMap
    View Source

    SelectionHandleMarkerImageRight

    The SelectionHandleMarkerImageRight property.

    Declaration
    public PropertyMap SelectionHandleMarkerImageRight { get; set; }
    Property Value
    Type Description
    PropertyMap
    View Source

    SelectionHandlePressedImageLeft

    The SelectionHandlePressedImageLeft property.

    Declaration
    public PropertyMap SelectionHandlePressedImageLeft { get; set; }
    Property Value
    Type Description
    PropertyMap
    View Source

    SelectionHandlePressedImageRight

    The SelectionHandlePressedImageRight property.

    Declaration
    public PropertyMap SelectionHandlePressedImageRight { get; set; }
    Property Value
    Type Description
    PropertyMap
    View Source

    SelectionHighlightColor

    The SelectionHighlightColor property.

    Declaration
    public Vector4 SelectionHighlightColor { get; set; }
    Property Value
    Type Description
    Vector4
    View Source

    Shadow

    The Shadow property.

    Declaration
    public PropertyMap Shadow { get; set; }
    Property Value
    Type Description
    PropertyMap
    View Source

    SmoothScroll

    The SmoothScroll property.

    Declaration
    public bool SmoothScroll { get; set; }
    Property Value
    Type Description
    bool
    View Source

    SmoothScrollDuration

    The SmoothScrollDuration property.

    Declaration
    public float SmoothScrollDuration { get; set; }
    Property Value
    Type Description
    float
    View Source

    Text

    The Text property.

    Declaration
    public string Text { get; set; }
    Property Value
    Type Description
    string
    View Source

    TextColor

    The TextColor property.

    Declaration
    public Vector4 TextColor { get; set; }
    Property Value
    Type Description
    Vector4
    View Source

    TranslatablePlaceholderText

    The TranslatablePlaceholderText property.
    The text can set the SID value.

    Declaration
    public string TranslatablePlaceholderText { get; set; }
    Property Value
    Type Description
    string
    Exceptions
    Type Condition
    System.ArgumentNullException

    ResourceManager about multilingual is null.

    View Source

    TranslatableText

    The TranslatableText property.
    The text can set the SID value.

    Declaration
    public string TranslatableText { get; set; }
    Property Value
    Type Description
    string
    Exceptions
    Type Condition
    System.ArgumentNullException

    ResourceManager about multilingual is null.

    View Source

    Underline

    The Underline property.

    Declaration
    public PropertyMap Underline { get; set; }
    Property Value
    Type Description
    PropertyMap

    Methods

    View Source

    Dispose(DisposeTypes)

    Dispose.

    Declaration
    protected override void Dispose(DisposeTypes type)
    Parameters
    Type Name Description
    DisposeTypes type
    Overrides
    View.Dispose(DisposeTypes)
    View Source

    GetInputMethodContext()

    Get the InputMethodContext instance.

    Declaration
    public InputMethodContext GetInputMethodContext()
    Returns
    Type Description
    InputMethodContext

    The InputMethodContext instance.

    Events

    View Source

    ScrollStateChanged

    Event for the ScrollStateChanged signal which can be used to subscribe or unsubscribe the event handler provided by the user. The ScrollStateChanged signal is emitted when the scroll state changes.

    Declaration
    public event EventHandler<TextEditor.ScrollStateChangedEventArgs> ScrollStateChanged
    Event Type
    Type Description
    System.EventHandler<TEventArgs><TextEditor.ScrollStateChangedEventArgs>
    View Source

    TextChanged

    An event for the TextChanged signal which can be used to subscribe or unsubscribe the event handler provided by the user. The TextChanged signal is emitted when the text changes.

    Declaration
    public event EventHandler<TextEditor.TextChangedEventArgs> TextChanged
    Event Type
    Type Description
    System.EventHandler<TEventArgs><TextEditor.TextChangedEventArgs>

    Implements

    System.ComponentModel.INotifyPropertyChanged
    System.IDisposable
    • View Source
    Back to top Copyright © 2016-2024 Samsung
    Generated by DocFX