Revert "[NUI] Refractor ImfManager to InputMethodContext (#229)" (#243)
[platform/core/csapi/tizenfx.git] / src / Tizen.NUI / src / public / BaseComponents / TextField.cs
index 09dc7d7..2ef6b2f 100755 (executable)
@@ -1,29 +1,33 @@
-/** Copyright (c) 2017 Samsung Electronics Co., Ltd.
-*
-* Licensed under the Apache License, Version 2.0 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*
-*/
+/*
+ * Copyright(c) 2017 Samsung Electronics Co., Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
 extern alias TizenSystemSettings;
 using TizenSystemSettings.Tizen.System;
+
+using System;
+using System.Runtime.InteropServices;
+using System.Globalization;
+using System.ComponentModel;
+
 namespace Tizen.NUI.BaseComponents
 {
-
-    using System;
-    using System.Runtime.InteropServices;
-    using System.Globalization;
     /// <summary>
-    /// A control which provides a single-line editable text field.
+    /// A control which provides a single line editable text field.
     /// </summary>
+    /// <since_tizen> 3 </since_tizen>
     public class TextField : View
     {
         private global::System.Runtime.InteropServices.HandleRef swigCPtr;
@@ -42,8 +46,9 @@ namespace Tizen.NUI.BaseComponents
         }
 
         /// <summary>
-        /// Dispose
+        /// Dispose.
         /// </summary>
+        /// <since_tizen> 3 </since_tizen>
         protected override void Dispose(DisposeTypes type)
         {
             if (disposed)
@@ -52,7 +57,7 @@ namespace Tizen.NUI.BaseComponents
                 return;
             }
 
-            if(type == DisposeTypes.Explicit)
+            if (type == DisposeTypes.Explicit)
             {
                 //Called by User
                 //Release your own managed resources here.
@@ -62,15 +67,17 @@ namespace Tizen.NUI.BaseComponents
             //Release your own unmanaged resources here.
             //You should not access any managed member here except static instance.
             //because the execution order of Finalizes is non-deterministic.
-
-            if (_textFieldMaxLengthReachedCallbackDelegate != null)
+            if (this != null)
             {
-                this.MaxLengthReachedSignal().Disconnect(_textFieldMaxLengthReachedCallbackDelegate);
-            }
+                if (_textFieldMaxLengthReachedCallbackDelegate != null)
+                {
+                    this.MaxLengthReachedSignal().Disconnect(_textFieldMaxLengthReachedCallbackDelegate);
+                }
 
-            if (_textFieldTextChangedCallbackDelegate != null)
-            {
-                TextChangedSignal().Disconnect(_textFieldTextChangedCallbackDelegate);
+                if (_textFieldTextChangedCallbackDelegate != null)
+                {
+                    TextChangedSignal().Disconnect(_textFieldTextChangedCallbackDelegate);
+                }
             }
 
             if (swigCPtr.Handle != global::System.IntPtr.Zero)
@@ -87,8 +94,9 @@ namespace Tizen.NUI.BaseComponents
         }
 
         /// <summary>
-        /// Text changed event arguments.
+        /// The TextChanged event arguments.
         /// </summary>
+        /// <since_tizen> 3 </since_tizen>
         public class TextChangedEventArgs : EventArgs
         {
             private TextField _textField;
@@ -96,6 +104,7 @@ namespace Tizen.NUI.BaseComponents
             /// <summary>
             /// TextField.
             /// </summary>
+            /// <since_tizen> 3 </since_tizen>
             public TextField TextField
             {
                 get
@@ -110,8 +119,9 @@ namespace Tizen.NUI.BaseComponents
         }
 
         /// <summary>
-        /// MaxLengthReached event arguments.
+        /// The MaxLengthReached event arguments.
         /// </summary>
+        /// <since_tizen> 3 </since_tizen>
         public class MaxLengthReachedEventArgs : EventArgs
         {
             private TextField _textField;
@@ -119,6 +129,7 @@ namespace Tizen.NUI.BaseComponents
             /// <summary>
             /// TextField.
             /// </summary>
+            /// <since_tizen> 3 </since_tizen>
             public TextField TextField
             {
                 get
@@ -144,8 +155,9 @@ namespace Tizen.NUI.BaseComponents
         private MaxLengthReachedCallbackDelegate _textFieldMaxLengthReachedCallbackDelegate;
 
         /// <summary>
-        /// TextChanged event.
+        /// The TextChanged event.
         /// </summary>
+        /// <since_tizen> 3 </since_tizen>
         public event EventHandler<TextChangedEventArgs> TextChanged
         {
             add
@@ -183,8 +195,9 @@ namespace Tizen.NUI.BaseComponents
         }
 
         /// <summary>
-        /// MaxLengthReached event.
+        /// The MaxLengthReached event.
         /// </summary>
+        /// <since_tizen> 3 </since_tizen>
         public event EventHandler<MaxLengthReachedEventArgs> MaxLengthReached
         {
             add
@@ -221,7 +234,7 @@ namespace Tizen.NUI.BaseComponents
 
         }
 
-        internal class Property
+        internal new class Property
         {
             internal static readonly int RENDERING_BACKEND = NDalicPINVOKE.TextField_Property_RENDERING_BACKEND_get();
             internal static readonly int TEXT = NDalicPINVOKE.TextField_Property_TEXT_get();
@@ -274,7 +287,8 @@ namespace Tizen.NUI.BaseComponents
             internal static readonly int PIXEL_SIZE = NDalicManualPINVOKE.TextField_Property_PIXEL_SIZE_get();
             internal static readonly int ENABLE_SELECTION = NDalicManualPINVOKE.TextField_Property_ENABLE_SELECTION_get();
             internal static readonly int PLACEHOLDER = NDalicManualPINVOKE.TextField_Property_PLACEHOLDER_get();
-
+            internal static readonly int ELLIPSIS = NDalicManualPINVOKE.TextField_Property_ELLIPSIS_get();
+            internal static readonly int ENABLE_SHIFT_SELECTION = NDalicManualPINVOKE.TextField_Property_ENABLE_SHIFT_SELECTION_get();
         }
 
         internal class InputStyle
@@ -297,6 +311,7 @@ namespace Tizen.NUI.BaseComponents
         /// <summary>
         /// Creates the TextField control.
         /// </summary>
+        /// <since_tizen> 3 </since_tizen>
         public TextField() : this(NDalicPINVOKE.TextField_New(), true)
         {
             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
@@ -307,14 +322,6 @@ namespace Tizen.NUI.BaseComponents
             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
         }
 
-        [Obsolete("Please do not use! this will be deprecated")]
-        public new static TextField DownCast(BaseHandle handle)
-        {
-            TextField ret =  Registry.GetManagedBaseHandleFromNativePtr(handle) as TextField;
-            if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
-            return ret;
-        }
-
         internal TextFieldSignal TextChangedSignal()
         {
             TextFieldSignal ret = new TextFieldSignal(NDalicPINVOKE.TextField_TextChangedSignal(swigCPtr), false);
@@ -343,12 +350,13 @@ namespace Tizen.NUI.BaseComponents
         }
 
         /// <summary>
-        /// TranslatableText property.<br>
-        /// The text can be set SID value.<br>
+        /// The TranslatableText property.<br />
+        /// The text can set the SID value.<br />
         /// </summary>
         /// <exception cref='ArgumentNullException'>
-        /// ResourceManager about multilingual is null
+        /// ResourceManager about multilingual is null.
         /// </exception>
+        /// <since_tizen> 4 </since_tizen>
         public string TranslatableText
         {
             get
@@ -366,12 +374,13 @@ namespace Tizen.NUI.BaseComponents
             }
         }
         /// <summary>
-        /// TranslatablePlaceholderText property.<br>
-        /// The text can be set SID value.<br>
+        /// The TranslatablePlaceholderText property.<br />
+        /// The text can set the SID value.<br />
         /// </summary>
         /// <exception cref='ArgumentNullException'>
-        /// ResourceManager about multilingual is null
+        /// ResourceManager about multilingual is null.
         /// </exception>
+        /// <since_tizen> 4 </since_tizen>
         public string TranslatablePlaceholderText
         {
             get
@@ -418,8 +427,10 @@ namespace Tizen.NUI.BaseComponents
                 PlaceholderText = NUIApplication.MultilingualResourceManager?.GetString(textFieldPlaceHolderTextSid, new CultureInfo(e.Value.Replace("_", "-")));
             }
         }
-        /// Text property.
+        /// <summary>
+        /// The Text property.
         /// </summary>
+        /// <since_tizen> 3 </since_tizen>
         public string Text
         {
             get
@@ -435,8 +446,9 @@ namespace Tizen.NUI.BaseComponents
         }
 
         /// <summary>
-        /// PlaceholderText property.
+        /// The PlaceholderText property.
         /// </summary>
+        /// <since_tizen> 3 </since_tizen>
         public string PlaceholderText
         {
             get
@@ -452,8 +464,9 @@ namespace Tizen.NUI.BaseComponents
         }
 
         /// <summary>
-        /// PlaceholderTextFocused property.
+        /// The PlaceholderTextFocused property.
         /// </summary>
+        /// <since_tizen> 3 </since_tizen>
         public string PlaceholderTextFocused
         {
             get
@@ -469,8 +482,9 @@ namespace Tizen.NUI.BaseComponents
         }
 
         /// <summary>
-        /// FontFamily property.
+        /// The FontFamily property.
         /// </summary>
+        /// <since_tizen> 3 </since_tizen>
         public string FontFamily
         {
             get
@@ -486,8 +500,9 @@ namespace Tizen.NUI.BaseComponents
         }
 
         /// <summary>
-        /// FontStyle property.
+        /// The FontStyle property.
         /// </summary>
+        /// <since_tizen> 3 </since_tizen>
         public PropertyMap FontStyle
         {
             get
@@ -503,8 +518,9 @@ namespace Tizen.NUI.BaseComponents
         }
 
         /// <summary>
-        /// PointSize property.
+        /// The PointSize property.
         /// </summary>
+        /// <since_tizen> 3 </since_tizen>
         public float PointSize
         {
             get
@@ -520,8 +536,9 @@ namespace Tizen.NUI.BaseComponents
         }
 
         /// <summary>
-        /// MaxLength property.
+        /// The MaxLength property.
         /// </summary>
+        /// <since_tizen> 3 </since_tizen>
         public int MaxLength
         {
             get
@@ -537,8 +554,9 @@ namespace Tizen.NUI.BaseComponents
         }
 
         /// <summary>
-        /// ExceedPolicy property.
+        /// The ExceedPolicy property.
         /// </summary>
+        /// <since_tizen> 3 </since_tizen>
         public int ExceedPolicy
         {
             get
@@ -554,8 +572,9 @@ namespace Tizen.NUI.BaseComponents
         }
 
         /// <summary>
-        /// HorizontalAlignment property.
+        /// The HorizontalAlignment property.
         /// </summary>
+        /// <since_tizen> 3 </since_tizen>
         public HorizontalAlignment HorizontalAlignment
         {
             get
@@ -609,8 +628,9 @@ namespace Tizen.NUI.BaseComponents
         }
 
         /// <summary>
-        /// VerticalAlignment property.
+        /// The VerticalAlignment property.
         /// </summary>
+        /// <since_tizen> 3 </since_tizen>
         public VerticalAlignment VerticalAlignment
         {
             get
@@ -664,8 +684,9 @@ namespace Tizen.NUI.BaseComponents
         }
 
         /// <summary>
-        /// TextColor property.
+        /// The TextColor property.
         /// </summary>
+        /// <since_tizen> 3 </since_tizen>
         public Color TextColor
         {
             get
@@ -681,8 +702,9 @@ namespace Tizen.NUI.BaseComponents
         }
 
         /// <summary>
-        /// PlaceholderTextColor property.
+        /// The PlaceholderTextColor property.
         /// </summary>
+        /// <since_tizen> 3 </since_tizen>
         public Vector4 PlaceholderTextColor
         {
             get
@@ -698,8 +720,9 @@ namespace Tizen.NUI.BaseComponents
         }
 
         /// <summary>
-        /// ShadowOffset property.
+        /// The ShadowOffset property.
         /// </summary>
+        /// <since_tizen> 3 </since_tizen>
         public Vector2 ShadowOffset
         {
             get
@@ -715,8 +738,9 @@ namespace Tizen.NUI.BaseComponents
         }
 
         /// <summary>
-        /// ShadowColor property.
+        /// The ShadowColor property.
         /// </summary>
+        /// <since_tizen> 3 </since_tizen>
         public Vector4 ShadowColor
         {
             get
@@ -732,8 +756,9 @@ namespace Tizen.NUI.BaseComponents
         }
 
         /// <summary>
-        /// PrimaryCursorColor property.
+        /// The PrimaryCursorColor property.
         /// </summary>
+        /// <since_tizen> 3 </since_tizen>
         public Vector4 PrimaryCursorColor
         {
             get
@@ -749,8 +774,9 @@ namespace Tizen.NUI.BaseComponents
         }
 
         /// <summary>
-        /// SecondaryCursorColor property.
+        /// The SecondaryCursorColor property.
         /// </summary>
+        /// <since_tizen> 3 </since_tizen>
         public Vector4 SecondaryCursorColor
         {
             get
@@ -766,8 +792,9 @@ namespace Tizen.NUI.BaseComponents
         }
 
         /// <summary>
-        /// EnableCursorBlink property.
+        /// The EnableCursorBlink property.
         /// </summary>
+        /// <since_tizen> 3 </since_tizen>
         public bool EnableCursorBlink
         {
             get
@@ -783,8 +810,9 @@ namespace Tizen.NUI.BaseComponents
         }
 
         /// <summary>
-        /// CursorBlinkInterval property.
+        /// The CursorBlinkInterval property.
         /// </summary>
+        /// <since_tizen> 3 </since_tizen>
         public float CursorBlinkInterval
         {
             get
@@ -800,8 +828,9 @@ namespace Tizen.NUI.BaseComponents
         }
 
         /// <summary>
-        /// CursorBlinkDuration property.
+        /// The CursorBlinkDuration property.
         /// </summary>
+        /// <since_tizen> 3 </since_tizen>
         public float CursorBlinkDuration
         {
             get
@@ -817,8 +846,9 @@ namespace Tizen.NUI.BaseComponents
         }
 
         /// <summary>
-        /// CursorWidth property.
+        /// The CursorWidth property.
         /// </summary>
+        /// <since_tizen> 3 </since_tizen>
         public int CursorWidth
         {
             get
@@ -834,8 +864,9 @@ namespace Tizen.NUI.BaseComponents
         }
 
         /// <summary>
-        /// GrabHandleImage property.
+        /// The GrabHandleImage property.
         /// </summary>
+        /// <since_tizen> 3 </since_tizen>
         public string GrabHandleImage
         {
             get
@@ -851,8 +882,9 @@ namespace Tizen.NUI.BaseComponents
         }
 
         /// <summary>
-        /// GrabHandlePressedImage property.
+        /// The GrabHandlePressedImage property.
         /// </summary>
+        /// <since_tizen> 3 </since_tizen>
         public string GrabHandlePressedImage
         {
             get
@@ -868,8 +900,9 @@ namespace Tizen.NUI.BaseComponents
         }
 
         /// <summary>
-        /// ScrollThreshold property.
+        /// The ScrollThreshold property.
         /// </summary>
+        /// <since_tizen> 3 </since_tizen>
         public float ScrollThreshold
         {
             get
@@ -885,8 +918,9 @@ namespace Tizen.NUI.BaseComponents
         }
 
         /// <summary>
-        /// ScrollSpeed property.
+        /// The ScrollSpeed property.
         /// </summary>
+        /// <since_tizen> 3 </since_tizen>
         public float ScrollSpeed
         {
             get
@@ -902,8 +936,9 @@ namespace Tizen.NUI.BaseComponents
         }
 
         /// <summary>
-        /// SelectionHandleImageLeft property.
+        /// The SelectionHandleImageLeft property.
         /// </summary>
+        /// <since_tizen> 3 </since_tizen>
         public PropertyMap SelectionHandleImageLeft
         {
             get
@@ -919,8 +954,9 @@ namespace Tizen.NUI.BaseComponents
         }
 
         /// <summary>
-        /// SelectionHandleImageRight property.
+        /// The SelectionHandleImageRight property.
         /// </summary>
+        /// <since_tizen> 3 </since_tizen>
         public PropertyMap SelectionHandleImageRight
         {
             get
@@ -936,8 +972,9 @@ namespace Tizen.NUI.BaseComponents
         }
 
         /// <summary>
-        /// SelectionHandlePressedImageLeft property.
+        /// The SelectionHandlePressedImageLeft property.
         /// </summary>
+        /// <since_tizen> 3 </since_tizen>
         public PropertyMap SelectionHandlePressedImageLeft
         {
             get
@@ -953,8 +990,9 @@ namespace Tizen.NUI.BaseComponents
         }
 
         /// <summary>
-        /// SelectionHandlePressedImageRight property.
+        /// The SelectionHandlePressedImageRight property.
         /// </summary>
+        /// <since_tizen> 3 </since_tizen>
         public PropertyMap SelectionHandlePressedImageRight
         {
             get
@@ -970,8 +1008,9 @@ namespace Tizen.NUI.BaseComponents
         }
 
         /// <summary>
-        /// SelectionHandleMarkerImageLeft property.
+        /// The SelectionHandleMarkerImageLeft property.
         /// </summary>
+        /// <since_tizen> 3 </since_tizen>
         public PropertyMap SelectionHandleMarkerImageLeft
         {
             get
@@ -987,8 +1026,9 @@ namespace Tizen.NUI.BaseComponents
         }
 
         /// <summary>
-        /// SelectionHandleMarkerImageRight property.
+        /// The SelectionHandleMarkerImageRight property.
         /// </summary>
+        /// <since_tizen> 3 </since_tizen>
         public PropertyMap SelectionHandleMarkerImageRight
         {
             get
@@ -1004,8 +1044,9 @@ namespace Tizen.NUI.BaseComponents
         }
 
         /// <summary>
-        /// SelectionHighlightColor property.
+        /// The SelectionHighlightColor property.
         /// </summary>
+        /// <since_tizen> 3 </since_tizen>
         public Vector4 SelectionHighlightColor
         {
             get
@@ -1021,8 +1062,9 @@ namespace Tizen.NUI.BaseComponents
         }
 
         /// <summary>
-        /// DecorationBoundingBox property.
+        /// The DecorationBoundingBox property.
         /// </summary>
+        /// <since_tizen> 3 </since_tizen>
         public Rectangle DecorationBoundingBox
         {
             get
@@ -1038,8 +1080,9 @@ namespace Tizen.NUI.BaseComponents
         }
 
         /// <summary>
-        /// InputMethodSettings property.
+        /// The InputMethodSettings property.
         /// </summary>
+        /// <since_tizen> 3 </since_tizen>
         public PropertyMap InputMethodSettings
         {
             get
@@ -1055,8 +1098,9 @@ namespace Tizen.NUI.BaseComponents
         }
 
         /// <summary>
-        /// InputColor property.
+        /// The InputColor property.
         /// </summary>
+        /// <since_tizen> 3 </since_tizen>
         public Vector4 InputColor
         {
             get
@@ -1072,8 +1116,9 @@ namespace Tizen.NUI.BaseComponents
         }
 
         /// <summary>
-        /// EnableMarkup property.
+        /// The EnableMarkup property.
         /// </summary>
+        /// <since_tizen> 3 </since_tizen>
         public bool EnableMarkup
         {
             get
@@ -1089,8 +1134,9 @@ namespace Tizen.NUI.BaseComponents
         }
 
         /// <summary>
-        /// InputFontFamily property.
+        /// The InputFontFamily property.
         /// </summary>
+        /// <since_tizen> 3 </since_tizen>
         public string InputFontFamily
         {
             get
@@ -1106,8 +1152,9 @@ namespace Tizen.NUI.BaseComponents
         }
 
         /// <summary>
-        /// InputFontStyle property.
+        /// The InputFontStyle property.
         /// </summary>
+        /// <since_tizen> 3 </since_tizen>
         public PropertyMap InputFontStyle
         {
             get
@@ -1123,8 +1170,9 @@ namespace Tizen.NUI.BaseComponents
         }
 
         /// <summary>
-        /// InputPointSize property.
+        /// The InputPointSize property.
         /// </summary>
+        /// <since_tizen> 3 </since_tizen>
         public float InputPointSize
         {
             get
@@ -1140,8 +1188,9 @@ namespace Tizen.NUI.BaseComponents
         }
 
         /// <summary>
-        /// Underline property.
+        /// The Underline property.
         /// </summary>
+        /// <since_tizen> 3 </since_tizen>
         public PropertyMap Underline
         {
             get
@@ -1157,8 +1206,9 @@ namespace Tizen.NUI.BaseComponents
         }
 
         /// <summary>
-        /// InputUnderline property.
+        /// The InputUnderline property.
         /// </summary>
+        /// <since_tizen> 3 </since_tizen>
         public string InputUnderline
         {
             get
@@ -1174,8 +1224,9 @@ namespace Tizen.NUI.BaseComponents
         }
 
         /// <summary>
-        /// Shadow property.
+        /// The Shadow property.
         /// </summary>
+        /// <since_tizen> 3 </since_tizen>
         public PropertyMap Shadow
         {
             get
@@ -1191,8 +1242,9 @@ namespace Tizen.NUI.BaseComponents
         }
 
         /// <summary>
-        /// InputShadow property.
+        /// The InputShadow property.
         /// </summary>
+        /// <since_tizen> 3 </since_tizen>
         public string InputShadow
         {
             get
@@ -1208,8 +1260,9 @@ namespace Tizen.NUI.BaseComponents
         }
 
         /// <summary>
-        /// Emboss property.
+        /// The Emboss property.
         /// </summary>
+        /// <since_tizen> 3 </since_tizen>
         public string Emboss
         {
             get
@@ -1225,8 +1278,9 @@ namespace Tizen.NUI.BaseComponents
         }
 
         /// <summary>
-        /// InputEmboss property.
+        /// The InputEmboss property.
         /// </summary>
+        /// <since_tizen> 3 </since_tizen>
         public string InputEmboss
         {
             get
@@ -1242,14 +1296,15 @@ namespace Tizen.NUI.BaseComponents
         }
 
         /// <summary>
-        /// Outline property.
+        /// The Outline property.
         /// </summary>
-        public string Outline
+        /// <since_tizen> 3 </since_tizen>
+        public PropertyMap Outline
         {
             get
             {
-                string temp;
-                GetProperty(TextField.Property.OUTLINE).Get(out temp);
+                PropertyMap temp = new PropertyMap();
+                GetProperty(TextField.Property.OUTLINE).Get(temp);
                 return temp;
             }
             set
@@ -1259,8 +1314,9 @@ namespace Tizen.NUI.BaseComponents
         }
 
         /// <summary>
-        /// InputOutline property.
+        /// The InputOutline property.
         /// </summary>
+        /// <since_tizen> 3 </since_tizen>
         public string InputOutline
         {
             get
@@ -1276,8 +1332,9 @@ namespace Tizen.NUI.BaseComponents
         }
 
         /// <summary>
-        /// HiddenInputSettings property.
+        /// The HiddenInputSettings property.
         /// </summary>
+        /// <since_tizen> 3 </since_tizen>
         public Tizen.NUI.PropertyMap HiddenInputSettings
         {
             get
@@ -1293,8 +1350,9 @@ namespace Tizen.NUI.BaseComponents
         }
 
         /// <summary>
-        /// PixelSize property.
+        /// The PixelSize property.
         /// </summary>
+        /// <since_tizen> 3 </since_tizen>
         public float PixelSize
         {
             get
@@ -1310,8 +1368,9 @@ namespace Tizen.NUI.BaseComponents
         }
 
         /// <summary>
-        /// Enable selection property.
+        /// The Enable selection property.
         /// </summary>
+        /// <since_tizen> 3 </since_tizen>
         public bool EnableSelection
         {
             get
@@ -1327,29 +1386,30 @@ namespace Tizen.NUI.BaseComponents
         }
 
         /// <summary>
-        /// Placeholder property.
-        /// Gets/Sets the placeholder : text, color, font family, font style, point size, and pixel size.
+        /// The Placeholder property.
+        /// Gets or sets the placeholder: text, color, font family, font style, point size, and pixel size.
         /// </summary>
         /// <example>
-        /// The following example demonstrates how to set the placeholder property.
+        /// The following example demonstrates how to set the Placeholder property.
         /// <code>
         /// PropertyMap propertyMap = new PropertyMap();
-        /// propertyMap.Add("placeholderText", new PropertyValue("Setting Placeholder Text"));
-        /// propertyMap.Add("placeholderTextFocused", new PropertyValue("Setting Placeholder Text Focused"));
-        /// propertyMap.Add("placeholderColor", new PropertyValue(Color.Red));
-        /// propertyMap.Add("placeholderFontFamily", new PropertyValue("Arial"));
-        /// propertyMap.Add("placeholderPointSize", new PropertyValue(12.0f));
+        /// 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("placeholderFontStyle", new PropertyValue(fontStyleMap));
+        /// propertyMap.Add("fontStyle", new PropertyValue(fontStyleMap));
         ///
         /// TextField field = new TextField();
         /// field.Placeholder = propertyMap;
         /// </code>
         /// </example>
+        /// <since_tizen> 3 </since_tizen>
         public Tizen.NUI.PropertyMap Placeholder
         {
             get
@@ -1364,6 +1424,46 @@ namespace Tizen.NUI.BaseComponents
             }
         }
 
-    }
+        /// <summary>
+        /// The Ellipsis property.<br />
+        /// Enable or disable the ellipsis.<br />
+        /// Placeholder PropertyMap is used to add ellipsis to placeholder text.
+        /// </summary>
+        /// <since_tizen> 4 </since_tizen>
+        public bool Ellipsis
+        {
+            get
+            {
+                bool temp = false;
+                GetProperty(TextField.Property.ELLIPSIS).Get(out temp);
+                return temp;
+            }
+            set
+            {
+                SetProperty(TextField.Property.ELLIPSIS, new Tizen.NUI.PropertyValue(value));
+            }
+        }
+
+        /// <summary>
+        /// Enables Text selection using Shift key.
+        /// </summary>
+        /// <since_tizen> 5 </since_tizen>
+        public bool EnableShiftSelection
+        {
+            get
+            {
+                // mShiftSelectionFlag( true )
+                bool temp = true;
+                GetProperty(TextField.Property.ENABLE_SHIFT_SELECTION).Get(out temp);
+                return temp;
+            }
+            set
+            {
+                SetProperty(TextField.Property.ENABLE_SHIFT_SELECTION, new Tizen.NUI.PropertyValue(value));
+            }
+        }
 
+
+
+    }
 }