[NUI-252] change string type of property to enum type of property 85/124385/4
authorxb.teng <xb.teng@samsung.com>
Tue, 11 Apr 2017 15:49:22 +0000 (23:49 +0800)
committerxb.teng <xb.teng@samsung.com>
Fri, 14 Apr 2017 10:23:20 +0000 (18:23 +0800)
Change-Id: I64aa478b559d7222d6f33c112da48e90da5672ad
Signed-off-by: xb.teng <xb.teng@samsung.com>
22 files changed:
NUISamples/NUISamples/NUISamples.TizenTV/examples/control-dashboard.cs
NUISamples/NUISamples/NUISamples.TizenTV/examples/dali-test.cs
NUISamples/NUISamples/NUISamples.TizenTV/examples/hello-test.cs
NUISamples/NUISamples/NUISamples.TizenTV/examples/hello-world.cs
NUISamples/NUISamples/NUISamples.TizenTV/examples/scroll-view.cs
NUISamples/NUISamples/NUISamples.TizenTV/examples/user-alphafunction.cs
NUISamples/NUISamples/NUISamples.TizenTV/examples/visual-animation-test.cs
NUISamples/NUISamples/NUISamples.TizenTV/examples/visual-view-test.cs
NUISamples/NUISamples/NUISamples.TizenTV/examples/visuals-using-custom-view/visuals-using-custom-view.cs
NUISamples/NUISamples/NUISamples.TizenTV/firstscreen/App.cs
Tizen.NUI/src/public/Button.cs
Tizen.NUI/src/public/CameraActor.cs
Tizen.NUI/src/public/CustomView/Spin.cs
Tizen.NUI/src/public/CustomView/VisualView.cs
Tizen.NUI/src/public/Popup.cs
Tizen.NUI/src/public/PushButton.cs
Tizen.NUI/src/public/ScrollBar.cs
Tizen.NUI/src/public/TextEditor.cs
Tizen.NUI/src/public/TextField.cs
Tizen.NUI/src/public/TextLabel.cs
Tizen.NUI/src/public/View.cs
Tizen.NUI/src/public/VisualMaps.cs

index 1c5c348..f2e408f 100755 (executable)
@@ -18,6 +18,7 @@
 using System;
 using System.Runtime.InteropServices;
 using Tizen.NUI;
+using Tizen.NUI.Constants;
 
 namespace ControlDashboard
 {
@@ -88,8 +89,8 @@ namespace ControlDashboard
             topLabel.BackgroundColor = new Color(43.0f / 255.0f, 145.0f / 255.0f, 175.0f / 255.0f, 1.0f);
             topLabel.TextColor = Color.White;
             topLabel.Text = " DALi Views";
-            topLabel.HorizontalAlignment = "BEGIN";
-            topLabel.VerticalAlignment = "CENTER";
+            topLabel.HorizontalAlignment = HorizontalAlignment.HorizontalAlignBegin;
+            topLabel.VerticalAlignment = VerticalAlignment.VerticalAlignCenter;
             topLabel.PointSize = 42.0f;
             _stage.GetDefaultLayer().Add(topLabel);
             //StyleManager.Get().ApplyStyle(topLabel, _resPath + "/json/control-dashboard-theme.json", "TextFieldFontSize4");
@@ -140,8 +141,8 @@ namespace ControlDashboard
             // Make label for item
             TextLabel itemLabel = new TextLabel("    " + item.name);
             itemLabel.Size = new Vector3(_stage.Size.Width * 0.2f, _stage.Size.Height * 0.05f, 0.0f);
-            itemLabel.HorizontalAlignment = "BEGIN";
-            itemLabel.VerticalAlignment = "BOTTOM";
+            itemLabel.HorizontalAlignment = HorizontalAlignment.HorizontalAlignBegin;
+            itemLabel.VerticalAlignment = VerticalAlignment.VerticalAlignBottom;
             //itemLabel.PointSize = 18.0f;
             _contentContainer.AddChild(itemLabel, new TableView.CellPosition(((uint)idx / 5) * 2, (uint)idx % 5));
 
@@ -359,7 +360,7 @@ namespace ControlDashboard
                                 TextLabel text = new TextLabel("This is a Toast.\nIt will auto-hide itself");
                                 text.TextColor = Color.White;
                                 text.MultiLine = true;
-                                text.HorizontalAlignment = "center";
+                                text.HorizontalAlignment = HorizontalAlignment.HorizontalAlignCenter;
                                 toast.SetTitle(text);
                                 _stage.GetDefaultLayer().Add(toast);
                                 toast.SetDisplayState(Popup.DisplayStateType.Shown);
@@ -431,7 +432,7 @@ namespace ControlDashboard
             TextLabel titleActor = new TextLabel(title);
             titleActor.TextColor = Color.White;
             titleActor.MultiLine = true;
-            titleActor.HorizontalAlignment = "center";
+            titleActor.HorizontalAlignment = HorizontalAlignment.HorizontalAlignCenter;
             return titleActor;
         }
 
index 2fb9920..1306be6 100755 (executable)
@@ -151,7 +151,7 @@ namespace DaliTest
             TextLabel text = new TextLabel("Hello Mono World");
             text.ParentOrigin = ParentOrigin.Center;
             text.AnchorPoint = AnchorPoint.Center;
-            text.HorizontalAlignment = "CENTER";
+            text.HorizontalAlignment = HorizontalAlignment.HorizontalAlignCenter;
             stage.GetDefaultLayer().Add(text);
 
             Console.WriteLine( "Text label text:  " + text.Text );
index 3664442..d9d662e 100755 (executable)
@@ -18,6 +18,7 @@
 using System;
 using System.Runtime.InteropServices;
 using Tizen.NUI;
+using Tizen.NUI.Constants;
 //using Tizen.Applications;
 
 //------------------------------------------------------------------------------
@@ -63,7 +64,7 @@ namespace HelloTest
             _text = new TextLabel("Hello Mono World");
             _text.ParentOrigin = ParentOrigin.Center;
             _text.AnchorPoint = AnchorPoint.Center;
-            _text.HorizontalAlignment = "CENTER";
+            _text.HorizontalAlignment = HorizontalAlignment.HorizontalAlignCenter;
             _text.PointSize = 32.0f;
 
             _stage.GetDefaultLayer().Add(_text);
index e907b24..3ebd9f1 100755 (executable)
@@ -18,6 +18,7 @@
 using System;
 using System.Runtime.InteropServices;
 using Tizen.NUI;
+using Tizen.NUI.Constants;
 using Tizen.NUI.Extension.Test;
 
 namespace HelloWorldTest
@@ -58,7 +59,7 @@ namespace HelloWorldTest
             _text = new TextLabel("Hello NUI World");
             _text.ParentOrigin = ParentOrigin.Center;
             _text.AnchorPoint = AnchorPoint.Center;
-            _text.HorizontalAlignment = "CENTER";
+            _text.HorizontalAlignment = HorizontalAlignment.HorizontalAlignCenter;
             _text.PointSize = 32.0f;
             _text.TextColor = Color.Magenta;
             stage.GetDefaultLayer().Add(_text);
index 4fc206b..11bada9 100755 (executable)
 using System;
 using System.Runtime.InteropServices;
 using Tizen.NUI;
+using Tizen.NUI.Constants;
 
 namespace ScrollViewTest
 {
   class Example : NUIApplication
   {
     private const string resources = "/home/owner/apps_rw/NUISamples.TizenTV/res";
-   
 
     [UnmanagedFunctionPointer(CallingConvention.StdCall)]
     delegate void CallbackDelegate(IntPtr data);
@@ -141,7 +141,7 @@ namespace ScrollViewTest
       _text = new TextLabel("View Touch Event Handler Test");
       _text.ParentOrigin = ParentOrigin.Center;
       _text.AnchorPoint = AnchorPoint.Center;
-      _text.HorizontalAlignment = "CENTER";
+      _text.HorizontalAlignment = HorizontalAlignment.HorizontalAlignCenter;
             _text.PointSize = 20.0f;
 
       _scrollView.Add(_text);
index 261e6cc..dfc32e7 100755 (executable)
@@ -71,7 +71,7 @@ namespace UserAlphaFunctionTest
             _text = new TextLabel("Hello Mono World");
             _text.ParentOrigin = ParentOrigin.BottomCenter;
             _text.AnchorPoint = AnchorPoint.BottomCenter;
-            _text.HorizontalAlignment = "CENTER";
+            _text.HorizontalAlignment = HorizontalAlignment.HorizontalAlignCenter;
             _text.PointSize = 32.0f;
             stage.GetDefaultLayer().Add(_text);
 
index f3e9115..4be05bc 100755 (executable)
@@ -18,6 +18,7 @@
 using System;
 using System.Runtime.InteropServices;
 using Tizen.NUI;
+using Tizen.NUI.Constants;
 
 namespace VisaulAnimationExample
 {
@@ -73,7 +74,7 @@ namespace VisaulAnimationExample
             _title.SetStyleName("Title");
             _title.WidthResizePolicy = ResizePolicyType.FillToParent;
             _title.HeightResizePolicy = ResizePolicyType.UseNaturalSize;
-            _title.HorizontalAlignment = "CENTER";
+            _title.HorizontalAlignment = HorizontalAlignment.HorizontalAlignCenter;
             titleLayout.AddChild(_title, new TableView.CellPosition(0, 0));
             titleLayout.SetFitHeight(0);
 
index a22b068..d9be666 100755 (executable)
@@ -18,6 +18,7 @@
 using System;
 using System.Runtime.InteropServices;
 using Tizen.NUI;
+using Tizen.NUI.Constants;
 
 namespace VisualViewTest
 {
index 9d86a6e..78754ac 100755 (executable)
@@ -64,7 +64,7 @@ namespace VisualsUsingCustomView
             title.StyleName = "Title";
             title.WidthResizePolicy = ResizePolicyType.FillToParent;
             title.HeightResizePolicy = ResizePolicyType.UseNaturalSize;
-            title.HorizontalAlignment = "CENTER";
+            title.HorizontalAlignment = HorizontalAlignment.HorizontalAlignCenter;
             contentLayout.Add(title);
             contentLayout.SetFitHeight(0);
 
index ecf029d..834d68d 100755 (executable)
@@ -442,8 +442,8 @@ namespace FirstScreen
             _dateOfTest.BackgroundColor = new Color(43.0f / 255.0f, 145.0f / 255.0f, 175.0f / 255.0f, 1.0f);
             _dateOfTest.TextColor = Color.White;
             _dateOfTest.Text = "  Common Interface Define Verification Test of 2017-02-10 #1";
-            _dateOfTest.HorizontalAlignment = "BEGIN";
-            _dateOfTest.VerticalAlignment = "CENTER";
+            _dateOfTest.HorizontalAlignment = HorizontalAlignment.HorizontalAlignBegin;
+            _dateOfTest.VerticalAlignment = VerticalAlignment.VerticalAlignCenter;
             _dateOfTest.PointSize = 12.0f;
             _dateOfTest.UnderlineEnabled = true;
             _stage.GetDefaultLayer().Add(_dateOfTest);
index 0964c4a..1202d09 100755 (executable)
@@ -400,17 +400,61 @@ namespace Tizen.NUI
         /// <summary>
         /// Gets/Sets the position of the the label in relation to the foreground/icon if both present
         /// </summary>
-        public string LabelRelativeAlignment
+        public Align LabelRelativeAlignment
         {
             get
             {
                 string temp;
-                GetProperty(Button.Property.LABEL_RELATIVE_ALIGNMENT).Get(out temp);
-                return temp;
+                if (GetProperty(Button.Property.LABEL_RELATIVE_ALIGNMENT).Get(out temp) == false)
+                {
+                    //Tizen.Log.Error("NUI", "LabelRelativeAlignment get error!");
+                }
+                switch (temp)
+                {
+                    case "BEGIN":
+                        return Align.Begin;
+                    case "END":
+                        return Align.End;
+                    case "TOP":
+                        return Align.Top;
+                    case "BOTTOM":
+                        return Align.Bottom;
+                    default:
+                        return Align.End;
+                }
             }
             set
             {
-                SetProperty(Button.Property.LABEL_RELATIVE_ALIGNMENT, new Tizen.NUI.PropertyValue(value));
+                string valueToString = "";
+                switch (value)
+                {
+                    case Align.Begin:
+                    {
+                        valueToString = "BEGIN";
+                        break;
+                    }
+                    case Align.End:
+                    {
+                        valueToString = "END";
+                        break;
+                    }
+                    case Align.Top:
+                    {
+                        valueToString = "TOP";
+                        break;
+                    }
+                    case Align.Bottom:
+                    {
+                        valueToString = "BOTTOM";
+                        break;
+                    }
+                    default:
+                    {
+                        valueToString = "END";
+                        break;
+                    }
+                }
+                SetProperty(Button.Property.LABEL_RELATIVE_ALIGNMENT, new Tizen.NUI.PropertyValue(valueToString));
             }
         }
 
@@ -901,6 +945,29 @@ namespace Tizen.NUI
             }
         }
 
+        /// <summary>
+        /// Enumeration for describing the position the text label can be in relation to the control(and foreground/icon).
+        /// </summary>
+        public enum Align
+        {
+            /// <summary>
+            /// At the start of the control before the foreground/icon
+            /// </summary>
+            Begin,
+            /// <summary>
+            /// At the end of the control after the foreground/icon
+            /// </summary>
+            End,
+            /// <summary>
+            /// At the top of the control above the foreground/icon
+            /// </summary>
+            Top,
+            /// <summary>
+            /// At the bottom of the control below the foreground/icon
+            /// </summary>
+            Bottom
+        }
+
     }
 
 }
\ No newline at end of file
index 57f1af9..3f5f16a 100755 (executable)
@@ -312,34 +312,94 @@ namespace Tizen.NUI
         /// <summary>
         /// Gets/Sets the camera type. The default type is FreeLook
         /// </summary>
-        public string Type
+        public CameraType Type
         {
             get
             {
                 string temp;
-                GetProperty(CameraActor.Property.TYPE).Get(out temp);
-                return temp;
+                if (GetProperty(CameraActor.Property.TYPE).Get(out temp) == false)
+                {
+                    //Tizen.Log.Error("NUI", "CameraType get error!");
+                }
+                switch (temp)
+                {
+                    case "LOOK_AT_TARGET":
+                        return CameraType.LookAtTarget;
+                    case "FREE_LOOK":
+                        return CameraType.FreeLook;
+                    default:
+                        return CameraType.FreeLook;
+                }
             }
             set
             {
-                SetProperty(CameraActor.Property.TYPE, new Tizen.NUI.PropertyValue(value));
+                string valueToString = "";
+                switch (value)
+                {
+                    case CameraType.LookAtTarget:
+                    {
+                        valueToString = "LOOK_AT_TARGET";
+                        break;
+                    }
+                    case CameraType.FreeLook:
+                    {
+                        valueToString = "FREE_LOOK";
+                        break;
+                    }
+                    default:
+                    {
+                        valueToString = "FREE_LOOK";
+                        break;
+                    }
+                }
+                SetProperty(CameraActor.Property.TYPE, new Tizen.NUI.PropertyValue(valueToString));
             }
         }
 
         /// <summary>
         /// Gets/Sets the projection mode.
         /// </summary>
-        public string ProjectionMode
+        public ProjectionMode ProjectionMode
         {
             get
             {
                 string temp;
-                GetProperty(CameraActor.Property.PROJECTION_MODE).Get(out temp);
-                return temp;
+                if (GetProperty(CameraActor.Property.PROJECTION_MODE).Get(out temp) == false)
+                {
+                    //Tizen.Log.Error("NUI", "ProjectionMode get error!");
+                }
+                switch(temp)
+                {
+                    case "PERSPECTIVE_PROJECTION":
+                        return ProjectionMode.PerspectiveProjection;
+                    case "ORTHOGRAPHIC_PROJECTION":
+                        return ProjectionMode.OrthographicProjection;
+                    default:
+                        return ProjectionMode.PerspectiveProjection;
+                }
             }
             set
             {
-                SetProperty(CameraActor.Property.PROJECTION_MODE, new Tizen.NUI.PropertyValue(value));
+                string valueToString = "";
+                switch (value)
+                {
+                    case ProjectionMode.PerspectiveProjection:
+                    {
+                        valueToString = "PERSPECTIVE_PROJECTION";
+                        break;
+                    }
+                    case ProjectionMode.OrthographicProjection:
+                    {
+                        valueToString = "ORTHOGRAPHIC_PROJECTION";
+                        break;
+                    }
+                    default:
+                    {
+                        valueToString = "PERSPECTIVE_PROJECTION";
+                        break;
+                    }
+                }
+                SetProperty(CameraActor.Property.PROJECTION_MODE, new Tizen.NUI.PropertyValue(valueToString));
             }
         }
 
index 4fe2bcd..efa4161 100755 (executable)
@@ -98,8 +98,8 @@ namespace Tizen.NUI
             _textField.SizeModeFactor = new Vector3(1.0f, 0.45f, 1.0f);
             _textField.PlaceholderText = "----";
             _textField.BackgroundColor = _textBackgroundColor;
-            _textField.HorizontalAlignment = "Center";
-            _textField.VerticalAlignment = "Center";
+            _textField.HorizontalAlignment = Tizen.NUI.Constants.HorizontalAlignment.HorizontalAlignCenter;
+            _textField.VerticalAlignment = Tizen.NUI.Constants.VerticalAlignment.VerticalAlignCenter;
             _textField.Focusable = (true);
             _textField.Name = "_textField";
 
index 82684a7..f43bceb 100755 (executable)
@@ -201,7 +201,7 @@ namespace Tizen.NUI
                 {
                     TransitionData _transitionData = new TransitionData(visualMap.OutputVisualMap);
                     return this.CreateTransition(_transitionData);
-    }
+                }
             }
             return null;
         }
index f9f3c4e..3b69235 100755 (executable)
@@ -631,17 +631,61 @@ namespace Tizen.NUI
         /// <summary>
         /// Popup display state.
         /// </summary>
-        public string DisplayState
+        public DisplayStateType DisplayState
         {
             get
             {
                 string temp;
-                GetProperty(Popup.Property.DISPLAY_STATE).Get(out temp);
-                return temp;
+                if (GetProperty(Popup.Property.DISPLAY_STATE).Get(out temp) == false)
+                {
+                    //Tizen.Log.Error("NUI", "DisplayState get error!");
+                }
+                switch (temp)
+                {
+                    case "SHOWING":
+                        return DisplayStateType.Showing;
+                    case "SHOWN":
+                        return DisplayStateType.Shown;
+                    case "HIDING":
+                        return DisplayStateType.Hiding;
+                    case "HIDDEN":
+                        return DisplayStateType.Hidden;
+                    default:
+                        return DisplayStateType.Hidden;
+                }
             }
             set
             {
-                SetProperty(Popup.Property.DISPLAY_STATE, new Tizen.NUI.PropertyValue(value));
+                string valueToString = "";
+                switch (value)
+                {
+                    case DisplayStateType.Showing:
+                    {
+                        valueToString = "SHOWING";
+                        break;
+                    }
+                    case DisplayStateType.Shown:
+                    {
+                        valueToString = "SHOWN";
+                        break;
+                    }
+                    case DisplayStateType.Hiding:
+                    {
+                        valueToString = "HIDING";
+                        break;
+                    }
+                    case DisplayStateType.Hidden:
+                    {
+                        valueToString = "HIDDEN";
+                        break;
+                    }
+                    default:
+                    {
+                        valueToString = "HIDDEN";
+                        break;
+                    }
+                }
+                SetProperty(Popup.Property.DISPLAY_STATE, new Tizen.NUI.PropertyValue(valueToString));
             }
         }
         /// <summary>
@@ -695,17 +739,68 @@ namespace Tizen.NUI
         /// <summary>
         /// Contextual mode.
         /// </summary>
-        public string ContextualMode
+        public ContextualModeType ContextualMode
         {
             get
             {
                 string temp;
-                GetProperty(Popup.Property.CONTEXTUAL_MODE).Get(out temp);
-                return temp;
+                if (GetProperty(Popup.Property.CONTEXTUAL_MODE).Get(out temp) == false)
+                {
+                    //Tizen.Log.Error("NUI", "ContextualMode get error!");
+                }
+                switch (temp)
+                {
+                    case "NON_CONTEXTUAL":
+                        return ContextualModeType.NonContextual;
+                    case "ABOVE":
+                        return ContextualModeType.Above;
+                    case "RIGHT":
+                        return ContextualModeType.Rright;
+                    case "BELOW":
+                        return ContextualModeType.Below;
+                    case "LEFT":
+                        return ContextualModeType.Left;
+                    default:
+                        return ContextualModeType.Below;
+                }
             }
             set
             {
-                SetProperty(Popup.Property.CONTEXTUAL_MODE, new Tizen.NUI.PropertyValue(value));
+                string valueToString = "";
+                switch (value)
+                {
+                    case ContextualModeType.NonContextual:
+                    {
+                        valueToString = "NON_CONTEXTUAL";
+                        break;
+                    }
+                    case ContextualModeType.Above:
+                    {
+                        valueToString = "ABOVE";
+                        break;
+                    }
+                    case ContextualModeType.Rright:
+                    {
+                        valueToString = "RIGHT";
+                        break;
+                    }
+                    case ContextualModeType.Below:
+                    {
+                        valueToString = "BELOW";
+                        break;
+                    }
+                    case ContextualModeType.Left:
+                    {
+                        valueToString = "LEFT";
+                        break;
+                    }
+                    default:
+                    {
+                        valueToString = "BELOW";
+                        break;
+                    }
+                }
+                SetProperty(Popup.Property.CONTEXTUAL_MODE, new Tizen.NUI.PropertyValue(valueToString));
             }
         }
         /// <summary>
@@ -727,17 +822,61 @@ namespace Tizen.NUI
         /// <summary>
         /// Animation mode.
         /// </summary>
-        public string AnimationMode
+        public AnimationModeType AnimationMode
         {
             get
             {
                 string temp;
-                GetProperty(Popup.Property.ANIMATION_MODE).Get(out temp);
-                return temp;
+                if (GetProperty(Popup.Property.ANIMATION_MODE).Get(out temp) == false)
+                {
+                    //Tizen.Log.Error("NUI", "AnimationMode get error!");
+                }
+                switch (temp)
+                {
+                    case "NONE":
+                        return AnimationModeType.None;
+                    case "ZOOM":
+                        return AnimationModeType.Zoom;
+                    case "FADE":
+                        return AnimationModeType.Fade;
+                    case "CUSTOM":
+                        return AnimationModeType.Custom;
+                    default:
+                        return AnimationModeType.Fade;
+                }
             }
             set
             {
-                SetProperty(Popup.Property.ANIMATION_MODE, new Tizen.NUI.PropertyValue(value));
+                string valueToString = "";
+                switch (value)
+                {
+                    case AnimationModeType.None:
+                    {
+                        valueToString = "NONE";
+                        break;
+                    }
+                    case AnimationModeType.Zoom:
+                    {
+                        valueToString = "ZOOM";
+                        break;
+                    }
+                    case AnimationModeType.Fade:
+                    {
+                        valueToString = "FADE";
+                        break;
+                    }
+                    case AnimationModeType.Custom:
+                    {
+                        valueToString = "CUSTOM";
+                        break;
+                    }
+                    default:
+                    {
+                        valueToString = "FADE";
+                        break;
+                    }
+                }
+                SetProperty(Popup.Property.ANIMATION_MODE, new Tizen.NUI.PropertyValue(valueToString));
             }
         }
         /// <summary>
index 4a22ce2..ef75431 100755 (executable)
@@ -245,17 +245,61 @@ namespace Tizen.NUI
         /// <summary>
         /// Sets the icon alignment.
         /// </summary>
-        public string IconAlignment
+        public IconAlignmentType IconAlignment
         {
             get
             {
                 string temp;
-                GetProperty(PushButton.Property.ICON_ALIGNMENT).Get(out temp);
-                return temp;
+                if (GetProperty(PushButton.Property.ICON_ALIGNMENT).Get(out temp) == false)
+                {
+                    //Tizen.Log.Error("NUI", "IconAlignment get error!");
+                }
+                 switch (temp)
+                {
+                    case "LEFT":
+                        return IconAlignmentType.Left;
+                    case "RIGHT":
+                        return IconAlignmentType.Right;
+                    case "TOP":
+                        return IconAlignmentType.Top;
+                    case "BOTTOM":
+                        return IconAlignmentType.Bottom;
+                    default:
+                        return IconAlignmentType.Default;
+                }
             }
             set
             {
-                SetProperty(PushButton.Property.ICON_ALIGNMENT, new Tizen.NUI.PropertyValue(value));
+                string valueToString = "";
+                switch (value)
+                {
+                    case IconAlignmentType.Left:
+                    {
+                        valueToString = "LEFT";
+                        break;
+                    }
+                    case IconAlignmentType.Right:
+                    {
+                        valueToString = "RIGHT";
+                        break;
+                    }
+                    case IconAlignmentType.Top:
+                    {
+                        valueToString = "TOP";
+                        break;
+                    }
+                    case IconAlignmentType.Bottom:
+                    {
+                        valueToString = "BOTTOM";
+                        break;
+                    }
+                    default:
+                    {
+                        valueToString = "DEFAULT";
+                        break;
+                    }
+                }
+                SetProperty(PushButton.Property.ICON_ALIGNMENT, new Tizen.NUI.PropertyValue(valueToString));
             }
         }
         /// <summary>
@@ -292,6 +336,33 @@ namespace Tizen.NUI
             }
         }
 
+        /// <summary>
+        /// Enumeration for the alignment modes of the icon.
+        /// </summary>
+        public enum IconAlignmentType
+        {
+            /// <summary>
+            /// Icon located to the left of text.
+            /// </summary>
+            Left,
+            /// <summary>
+            /// Icon located to the right of text.
+            /// </summary>
+            Right,
+            /// <summary>
+            /// Icon located to the top of text.
+            /// </summary>
+            Top,
+            /// <summary>
+            /// Icon located to the bottom of text.
+            /// </summary>
+            Bottom,
+            /// <summary>
+            /// Icon located to the right of text by default.
+            /// </summary>
+            Default = Right
+        }
+
     }
 
 }
index fb93738..045e1a0 100755 (executable)
@@ -442,34 +442,96 @@ namespace Tizen.NUI
         /// <summary>
         /// Direction of scroll bar
         /// </summary>
-        public string ScrollDirection
+        public Direction ScrollDirection
         {
             get
             {
                 string temp;
-                GetProperty(ScrollBar.Property.SCROLL_DIRECTION).Get(out temp);
-                return temp;
+                if (GetProperty(ScrollBar.Property.SCROLL_DIRECTION).Get(out temp) == false)
+                {
+                    //Tizen.Log.Error("NUI", "ScrollDirection get error!");
+                }
+
+                switch (temp)
+                {
+                    case "Vertical":
+                        return Direction.Vertical;
+                    case "Horizontal":
+                        return Direction.Horizontal;
+                    default:
+                        return Direction.Vertical;
+                }
             }
             set
             {
-                SetProperty(ScrollBar.Property.SCROLL_DIRECTION, new Tizen.NUI.PropertyValue(value));
+                string valueToString = "";
+                switch (value)
+                {
+                    case Direction.Vertical:
+                    {
+                        valueToString = "Vertical";
+                        break;
+                    }
+                    case Direction.Horizontal:
+                    {
+                        valueToString = "Horizontal";
+                        break;
+                    }
+                    default:
+                    {
+                        valueToString = "Vertical";
+                        break;
+                    }
+                }
+                SetProperty(ScrollBar.Property.SCROLL_DIRECTION, new Tizen.NUI.PropertyValue(valueToString));
             }
         }
 
         /// <summary>
         /// Indicator height policy.
         /// </summary>
-        public string IndicatorHeightPolicy
+        public IndicatorHeightPolicyType IndicatorHeightPolicy
         {
             get
             {
                 string temp;
-                GetProperty(ScrollBar.Property.INDICATOR_HEIGHT_POLICY).Get(out temp);
-                return temp;
+                if (GetProperty(ScrollBar.Property.INDICATOR_HEIGHT_POLICY).Get(out temp) == false)
+                {
+                    //Tizen.Log.Error("NUI", "IndicatorHeightPolicy get error!");
+                }
+
+                switch (temp)
+                {
+                    case "Variable":
+                        return IndicatorHeightPolicyType.Variable;
+                    case "Fixed":
+                        return IndicatorHeightPolicyType.Fixed;
+                    default:
+                        return IndicatorHeightPolicyType.Variable;
+                }
             }
             set
             {
-                SetProperty(ScrollBar.Property.INDICATOR_HEIGHT_POLICY, new Tizen.NUI.PropertyValue(value));
+                string valueToString = "";
+                switch (value)
+                {
+                    case IndicatorHeightPolicyType.Variable:
+                    {
+                        valueToString = "Variable";
+                        break;
+                    }
+                    case IndicatorHeightPolicyType.Fixed:
+                    {
+                        valueToString = "Fixed";
+                        break;
+                    }
+                    default:
+                    {
+                        valueToString = "Variable";
+                        break;
+                    }
+                }
+                SetProperty(ScrollBar.Property.INDICATOR_HEIGHT_POLICY, new Tizen.NUI.PropertyValue(valueToString));
             }
         }
 
index bb48788..a9e78b9 100755 (executable)
@@ -459,17 +459,55 @@ namespace Tizen.NUI
         /// <summary>
         /// Horizontal alignment property.
         /// </summary>
-        public string HorizontalAlignment
+        public Tizen.NUI.Constants.HorizontalAlignment HorizontalAlignment
         {
             get
             {
                 string temp;
-                GetProperty(TextEditor.Property.HORIZONTAL_ALIGNMENT).Get(out temp);
-                return temp;
+                if (GetProperty(TextEditor.Property.HORIZONTAL_ALIGNMENT).Get(out temp) == false)
+                {
+                    //Tizen.Log.Error("NUI", "HorizontalAlignment get error!");
+                }
+
+                switch (temp)
+                {
+                    case "BEGIN":
+                        return Tizen.NUI.Constants.HorizontalAlignment.HorizontalAlignBegin;
+                    case "CENTER":
+                        return Tizen.NUI.Constants.HorizontalAlignment.HorizontalAlignCenter;
+                    case "END":
+                        return Tizen.NUI.Constants.HorizontalAlignment.HorizontalAlignEnd;
+                    default:
+                        return Tizen.NUI.Constants.HorizontalAlignment.HorizontalAlignBegin;
+                }
             }
             set
             {
-                SetProperty(TextEditor.Property.HORIZONTAL_ALIGNMENT, new Tizen.NUI.PropertyValue(value));
+                string valueToString = "";
+                switch (value)
+                {
+                    case Tizen.NUI.Constants.HorizontalAlignment.HorizontalAlignBegin:
+                    {
+                        valueToString = "BEGIN";
+                        break;
+                    }
+                    case Tizen.NUI.Constants.HorizontalAlignment.HorizontalAlignCenter:
+                    {
+                        valueToString = "CENTER";
+                        break;
+                    }
+                    case Tizen.NUI.Constants.HorizontalAlignment.HorizontalAlignEnd:
+                    {
+                        valueToString = "END";
+                        break;
+                    }
+                    default:
+                    {
+                        valueToString = "BEGIN";
+                        break;
+                    }
+                }
+                SetProperty(TextEditor.Property.HORIZONTAL_ALIGNMENT, new Tizen.NUI.PropertyValue(valueToString));
             }
         }
 
index f6f0496..6bfe9d8 100755 (executable)
@@ -594,34 +594,110 @@ namespace Tizen.NUI
         /// <summary>
         /// HorizontalAlignment property.
         /// </summary>
-        public string HorizontalAlignment
+        public Tizen.NUI.Constants.HorizontalAlignment HorizontalAlignment
         {
             get
             {
                 string temp;
-                GetProperty(TextField.Property.HORIZONTAL_ALIGNMENT).Get(out temp);
-                return temp;
+                if (GetProperty(TextField.Property.HORIZONTAL_ALIGNMENT).Get(out temp) == false)
+                {
+                    //Tizen.Log.Error("NUI", "HorizontalAlignment get error!");
+                }
+
+                switch (temp)
+                {
+                    case "BEGIN":
+                        return Tizen.NUI.Constants.HorizontalAlignment.HorizontalAlignBegin;
+                    case "CENTER":
+                        return Tizen.NUI.Constants.HorizontalAlignment.HorizontalAlignCenter;
+                    case "END":
+                        return Tizen.NUI.Constants.HorizontalAlignment.HorizontalAlignEnd;
+                    default:
+                        return Tizen.NUI.Constants.HorizontalAlignment.HorizontalAlignBegin;
+                }
             }
             set
             {
-                SetProperty(TextField.Property.HORIZONTAL_ALIGNMENT, new Tizen.NUI.PropertyValue(value));
+                string valueToString = "";
+                switch (value)
+                {
+                    case Tizen.NUI.Constants.HorizontalAlignment.HorizontalAlignBegin:
+                    {
+                        valueToString = "BEGIN";
+                        break;
+                    }
+                    case Tizen.NUI.Constants.HorizontalAlignment.HorizontalAlignCenter:
+                    {
+                        valueToString = "CENTER";
+                        break;
+                    }
+                    case Tizen.NUI.Constants.HorizontalAlignment.HorizontalAlignEnd:
+                    {
+                        valueToString = "END";
+                        break;
+                    }
+                    default:
+                    {
+                        valueToString = "BEGIN";
+                        break;
+                    }
+                }
+                SetProperty(TextField.Property.HORIZONTAL_ALIGNMENT, new Tizen.NUI.PropertyValue(valueToString));
             }
         }
 
         /// <summary>
         /// VerticalAlignment property.
         /// </summary>
-        public string VerticalAlignment
+        public Tizen.NUI.Constants.VerticalAlignment VerticalAlignment
         {
             get
             {
                 string temp;
-                GetProperty(TextField.Property.VERTICAL_ALIGNMENT).Get(out temp);
-                return temp;
+                if (GetProperty(TextField.Property.VERTICAL_ALIGNMENT).Get(out temp) == false)
+                {
+                    //Tizen.Log.Error("NUI", "VerticalAlignment get error!");
+                }
+
+                switch (temp)
+                {
+                    case "TOP":
+                        return Tizen.NUI.Constants.VerticalAlignment.VerticalAlignTop;
+                    case "CENTER":
+                        return Tizen.NUI.Constants.VerticalAlignment.VerticalAlignCenter;
+                    case "BOTTOM":
+                        return Tizen.NUI.Constants.VerticalAlignment.VerticalAlignBottom;
+                    default:
+                        return Tizen.NUI.Constants.VerticalAlignment.VerticalAlignBottom;
+                }
             }
             set
             {
-                SetProperty(TextField.Property.VERTICAL_ALIGNMENT, new Tizen.NUI.PropertyValue(value));
+                string valueToString = "";
+                switch (value)
+                {
+                    case Tizen.NUI.Constants.VerticalAlignment.VerticalAlignTop:
+                    {
+                        valueToString = "TOP";
+                        break;
+                    }
+                    case Tizen.NUI.Constants.VerticalAlignment.VerticalAlignCenter:
+                    {
+                        valueToString = "CENTER";
+                        break;
+                    }
+                    case Tizen.NUI.Constants.VerticalAlignment.VerticalAlignBottom:
+                    {
+                        valueToString = "BOTTOM";
+                        break;
+                    }
+                    default:
+                    {
+                        valueToString = "BOTTOM";
+                        break;
+                    }
+                }
+                SetProperty(TextField.Property.VERTICAL_ALIGNMENT, new Tizen.NUI.PropertyValue(valueToString));
             }
         }
 
index bef9af1..adf4d72 100755 (executable)
@@ -307,17 +307,54 @@ namespace Tizen.NUI
         /// HorizontalAlignment property.<br>
         /// The line horizontal alignment.<br>
         /// </summary>
-        public string HorizontalAlignment
+        public Tizen.NUI.Constants.HorizontalAlignment HorizontalAlignment
         {
             get
             {
                 string temp;
-                GetProperty(TextLabel.Property.HORIZONTAL_ALIGNMENT).Get(out temp);
-                return temp;
+                if (GetProperty(TextLabel.Property.HORIZONTAL_ALIGNMENT).Get(out temp) == false)
+                {
+                    //Tizen.Log.Error("NUI", "HorizontalAlignment get error!");
+                }
+                switch (temp)
+                {
+                    case "BEGIN":
+                        return Tizen.NUI.Constants.HorizontalAlignment.HorizontalAlignBegin;
+                    case "CENTER":
+                        return Tizen.NUI.Constants.HorizontalAlignment.HorizontalAlignCenter;
+                    case "END":
+                        return Tizen.NUI.Constants.HorizontalAlignment.HorizontalAlignEnd;
+                    default:
+                        return Tizen.NUI.Constants.HorizontalAlignment.HorizontalAlignBegin;
+                }
             }
             set
             {
-                SetProperty(TextLabel.Property.HORIZONTAL_ALIGNMENT, new Tizen.NUI.PropertyValue(value));
+                string valueToString = "";
+                switch (value)
+                {
+                    case Tizen.NUI.Constants.HorizontalAlignment.HorizontalAlignBegin:
+                    {
+                        valueToString = "BEGIN";
+                        break;
+                    }
+                    case Tizen.NUI.Constants.HorizontalAlignment.HorizontalAlignCenter:
+                    {
+                        valueToString = "CENTER";
+                        break;
+                    }
+                    case Tizen.NUI.Constants.HorizontalAlignment.HorizontalAlignEnd:
+                    {
+                        valueToString = "END";
+                        break;
+                    }
+                    default:
+                    {
+                        valueToString = "BEGIN";
+                        break;
+                    }
+                }
+                SetProperty(TextLabel.Property.HORIZONTAL_ALIGNMENT, new Tizen.NUI.PropertyValue(valueToString));
             }
         }
 
@@ -325,17 +362,55 @@ namespace Tizen.NUI
         /// VerticalAlignment property.<br>
         /// The line vertical alignment.<br>
         /// </summary>
-        public string VerticalAlignment
+        public Tizen.NUI.Constants.VerticalAlignment VerticalAlignment
         {
             get
             {
                 string temp;
-                GetProperty(TextLabel.Property.VERTICAL_ALIGNMENT).Get(out temp);
-                return temp;
+                if (GetProperty(TextLabel.Property.VERTICAL_ALIGNMENT).Get(out temp) == false)
+                {
+                    //Tizen.Log.Error("NUI", "VerticalAlignment get error!");
+                }
+
+                switch (temp)
+                {
+                    case "TOP":
+                        return Tizen.NUI.Constants.VerticalAlignment.VerticalAlignTop;
+                    case "CENTER":
+                        return Tizen.NUI.Constants.VerticalAlignment.VerticalAlignCenter;
+                    case "BOTTOM":
+                        return Tizen.NUI.Constants.VerticalAlignment.VerticalAlignBottom;
+                    default:
+                        return Tizen.NUI.Constants.VerticalAlignment.VerticalAlignBottom;
+                }
             }
             set
             {
-                SetProperty(TextLabel.Property.VERTICAL_ALIGNMENT, new Tizen.NUI.PropertyValue(value));
+                string valueToString = "";
+                switch (value)
+                {
+                    case Tizen.NUI.Constants.VerticalAlignment.VerticalAlignTop:
+                    {
+                        valueToString = "TOP";
+                        break;
+                    }
+                    case Tizen.NUI.Constants.VerticalAlignment.VerticalAlignCenter:
+                    {
+                        valueToString = "CENTER";
+                        break;
+                    }
+                    case Tizen.NUI.Constants.VerticalAlignment.VerticalAlignBottom:
+                    {
+                        valueToString = "BOTTOM";
+                        break;
+                    }
+                    default:
+                    {
+                        valueToString = "BOTTOM";
+                        break;
+                    }
+                }
+                SetProperty(TextLabel.Property.VERTICAL_ALIGNMENT, new Tizen.NUI.PropertyValue(valueToString));
             }
         }
 
@@ -629,4 +704,42 @@ namespace Tizen.NUI
 
     }
 
+    /// <summary>
+    /// Enumeration for the text horizontal aligning.
+    /// </summary>
+    public enum HorizontalAlignment
+    {
+        /// <summary>
+        /// Texts place at the begin of horizontal direction.
+        /// </summary>
+        HorizontalAlignBegin,
+        /// <summary>
+        /// Texts place at the center of horizontal direction.
+        /// </summary>
+        HorizontalAlignCenter,
+        /// <summary>
+        /// Texts place at the end of horizontal direction.
+        /// </summary>
+        HorizontalAlignEnd
+    }
+
+    /// <summary>
+    /// Enumeration for the text horizontal aligning.
+    /// </summary>
+    public enum VerticalAlignment
+    {
+        /// <summary>
+        /// Texts place at the top of vertical direction.
+        /// </summary>
+        VerticalAlignTop,
+        /// <summary>
+        /// Texts place at the center of vertical direction.
+        /// </summary>
+        VerticalAlignCenter,
+        /// <summary>
+        /// Texts place at the bottom of vertical direction.
+        /// </summary>
+        VerticalAlignBottom
+    }
+
 }
index 42bd8da..385ba60 100755 (executable)
@@ -956,52 +956,92 @@ namespace Tizen.NUI
         /// <summary>
         /// The current state of the view.
         /// </summary>
-        public string State
+        public States State
         {
             get
             {
                 int temp = 0;
-                GetProperty(View.Property.STATE).Get(ref temp);
+                if (GetProperty(View.Property.STATE).Get(ref temp) == false)
+                {
+                    //Tizen.Log.Error("NUI", "State get error!");
+                }
                 switch (temp)
                 {
                     case 0:
                     {
-                        return "NORMAL";
+                        return States.Normal;
                     }
                     case 1:
                     {
-                        return "FOCUSED";
+                        return States.Focused;
                     }
                     case 2:
                     {
-                        return "DISABLED";
+                        return States.Disabled;
                     }
                     default:
                     {
-                        return "";
+                        return States.Normal;
                     }
                 }
             }
             set
             {
-                SetProperty(View.Property.STATE, new Tizen.NUI.PropertyValue(value));
+                SetProperty(View.Property.STATE, new Tizen.NUI.PropertyValue((int)value));
             }
         }
 
         /// <summary>
         /// The current sub state of the view.
         /// </summary>
-        public string SubState
+        public States SubState
         {
             get
             {
                 string temp;
-                GetProperty(View.Property.SUB_STATE).Get(out temp);
-                return temp;
+                if (GetProperty(View.Property.SUB_STATE).Get(out temp) == false)
+                {
+                    //Tizen.Log.Error("NUI", "subState get error!");
+                }
+                switch (temp)
+                {
+                    case "NORMAL":
+                        return States.Normal;
+                    case "FOCUSED":
+                        return States.Focused;
+                    case "DISABLED":
+                        return States.Disabled;
+                    default:
+                        return States.Normal;
+                }
             }
             set
             {
-                SetProperty(View.Property.SUB_STATE, new Tizen.NUI.PropertyValue(value));
+                string valueToString = "";
+                switch (value)
+                {
+                    case States.Normal:
+                    {
+                        valueToString = "NORMAL";
+                        break;
+                    }
+                    case States.Focused:
+                    {
+                        valueToString = "FOCUSED";
+                        break;
+                    }
+                    case States.Disabled:
+                    {
+                        valueToString = "DISABLED";
+                        break;
+                    }
+                    default:
+                    {
+                        valueToString = "NORMAL";
+                        break;
+                    }
+                }
+                SetProperty(View.Property.SUB_STATE, new Tizen.NUI.PropertyValue(valueToString));
             }
         }
 
@@ -1198,34 +1238,110 @@ namespace Tizen.NUI
         /// <summary>
         /// The horizontal alignment of this child inside the cells, if not set, default value is 'left'
         /// </summary>
-        public string CellHorizontalAlignment
+        public Tizen.NUI.HorizontalAlignmentType CellHorizontalAlignment
         {
             get
             {
                 string temp;
-                GetProperty(TableView.ChildProperty.CELL_HORIZONTAL_ALIGNMENT).Get(out temp);
-                return temp;
+                if (GetProperty(TableView.ChildProperty.CELL_HORIZONTAL_ALIGNMENT).Get(out temp) == false)
+                {
+                    //Tizen.Log.Error("NUI", "CellHorizontalAlignment get error!");
+                }
+
+                switch (temp)
+                {
+                    case "left":
+                        return Tizen.NUI.HorizontalAlignmentType.Left;
+                    case "center":
+                        return Tizen.NUI.HorizontalAlignmentType.Center;
+                    case "right":
+                        return Tizen.NUI.HorizontalAlignmentType.Right;
+                    default:
+                        return Tizen.NUI.HorizontalAlignmentType.Left;
+                }
             }
             set
             {
-                SetProperty(TableView.ChildProperty.CELL_HORIZONTAL_ALIGNMENT, new Tizen.NUI.PropertyValue(value));
+                string valueToString = "";
+                switch (value)
+                {
+                    case Tizen.NUI.HorizontalAlignmentType.Left:
+                    {
+                        valueToString = "left";
+                        break;
+                    }
+                    case Tizen.NUI.HorizontalAlignmentType.Center:
+                    {
+                        valueToString = "center";
+                        break;
+                    }
+                    case Tizen.NUI.HorizontalAlignmentType.Right:
+                    {
+                        valueToString = "right";
+                        break;
+                    }
+                    default:
+                    {
+                        valueToString = "left";
+                        break;
+                    }
+                }
+                SetProperty(TableView.ChildProperty.CELL_HORIZONTAL_ALIGNMENT, new Tizen.NUI.PropertyValue(valueToString));
             }
         }
 
         /// <summary>
         /// The vertical alignment of this child inside the cells, if not set, default value is 'top'
         /// </summary>
-        public string CellVerticalAlignment
+        public Tizen.NUI.VerticalAlignmentType CellVerticalAlignment
         {
             get
             {
                 string temp;
                 GetProperty(TableView.ChildProperty.CELL_VERTICAL_ALIGNMENT).Get(out temp);
-                return temp;
+                {
+                    //Tizen.Log.Error("NUI", "CellVerticalAlignment get error!");
+                }
+
+                switch (temp)
+                {
+                    case "top":
+                        return Tizen.NUI.VerticalAlignmentType.Top;
+                    case "center":
+                        return Tizen.NUI.VerticalAlignmentType.Center;
+                    case "bottom":
+                        return Tizen.NUI.VerticalAlignmentType.Bottom;
+                    default:
+                        return Tizen.NUI.VerticalAlignmentType.Top;
+                }
             }
             set
             {
-                SetProperty(TableView.ChildProperty.CELL_VERTICAL_ALIGNMENT, new Tizen.NUI.PropertyValue(value));
+                string valueToString = "";
+                switch (value)
+                {
+                    case Tizen.NUI.VerticalAlignmentType.Top:
+                    {
+                        valueToString = "top";
+                        break;
+                    }
+                    case Tizen.NUI.VerticalAlignmentType.Center:
+                    {
+                        valueToString = "center";
+                        break;
+                    }
+                    case Tizen.NUI.VerticalAlignmentType.Bottom:
+                    {
+                        valueToString = "bottom";
+                        break;
+                    }
+                    default:
+                    {
+                        valueToString = "top";
+                        break;
+                    }
+                }
+                SetProperty(TableView.ChildProperty.CELL_VERTICAL_ALIGNMENT, new Tizen.NUI.PropertyValue(valueToString));
             }
         }
 
@@ -1332,6 +1448,24 @@ namespace Tizen.NUI
             }
         }
 
+        /// <summary>
+        /// Enumeration for describing the states of view.
+        /// </summary>
+        public enum States
+        {
+            /// <summary>
+            /// Normal state
+            /// </summary>
+            Normal,
+            /// <summary>
+            /// Focused state
+            /// </summary>
+            Focused,
+            /// <summary>
+            /// Disabled state
+            /// </summary>
+            Disabled
+        }
     }
 
 }
index 143c889..e16ea3c 100755 (executable)
@@ -555,15 +555,47 @@ namespace Tizen.NUI
         /// Get or set the line horizontal alignment.<br>
         /// If not specified, the default is BEGIN.<br>
         /// </summary>
-        public string HorizontalAlignment
-        {
-            get
-            {
-                return _horizontalAlignment;
-            }
-            set
-            {
-                _horizontalAlignment = value;
+        public Tizen.NUI.Constants.HorizontalAlignment HorizontalAlignment
+        {
+            get
+            {
+                switch (_horizontalAlignment)
+                {
+                    case "BEGIN":
+                        return Tizen.NUI.Constants.HorizontalAlignment.HorizontalAlignBegin;
+                    case "CENTER":
+                        return Tizen.NUI.Constants.HorizontalAlignment.HorizontalAlignCenter;
+                    case "END":
+                        return Tizen.NUI.Constants.HorizontalAlignment.HorizontalAlignEnd;
+                    default:
+                        return Tizen.NUI.Constants.HorizontalAlignment.HorizontalAlignBegin;
+                }
+            }
+            set
+            {
+                switch (value)
+                {
+                    case Tizen.NUI.Constants.HorizontalAlignment.HorizontalAlignBegin:
+                    {
+                        _horizontalAlignment = "BEGIN";
+                        break;
+                    }
+                    case Tizen.NUI.Constants.HorizontalAlignment.HorizontalAlignCenter:
+                    {
+                        _horizontalAlignment = "CENTER";
+                        break;
+                    }
+                    case Tizen.NUI.Constants.HorizontalAlignment.HorizontalAlignEnd:
+                    {
+                        _horizontalAlignment = "END";
+                        break;
+                    }
+                    default:
+                    {
+                        _horizontalAlignment = "BEGIN";
+                        break;
+                    }
+                }
                 UpdateVisual();
             }
         }
@@ -572,15 +604,47 @@ namespace Tizen.NUI
         /// Get or set the line vertical alignment.<br>
         /// If not specified, the default is TOP.<br>
         /// </summary>
-        public string VerticalAlignment
-        {
-            get
-            {
-                return _verticalAlignment;
-            }
-            set
-            {
-                _verticalAlignment = value;
+        public Tizen.NUI.Constants.VerticalAlignment VerticalAlignment
+        {
+            get
+            {
+                switch (_verticalAlignment)
+                {
+                    case "TOP":
+                        return Tizen.NUI.Constants.VerticalAlignment.VerticalAlignTop;
+                    case "CENTER":
+                        return Tizen.NUI.Constants.VerticalAlignment.VerticalAlignCenter;
+                    case "BOTTOM":
+                        return Tizen.NUI.Constants.VerticalAlignment.VerticalAlignBottom;
+                    default:
+                        return Tizen.NUI.Constants.VerticalAlignment.VerticalAlignBottom;
+                }
+            }
+            set
+            {
+                switch (value)
+                {
+                    case Tizen.NUI.Constants.VerticalAlignment.VerticalAlignTop:
+                    {
+                        _verticalAlignment = "TOP";
+                        break;
+                    }
+                    case Tizen.NUI.Constants.VerticalAlignment.VerticalAlignCenter:
+                    {
+                        _verticalAlignment = "CENTER";
+                        break;
+                    }
+                    case Tizen.NUI.Constants.VerticalAlignment.VerticalAlignBottom:
+                    {
+                        _verticalAlignment = "BOTTOM";
+                        break;
+                    }
+                    default:
+                    {
+                        _verticalAlignment = "TOP";
+                        break;
+                    }
+                }
                 UpdateVisual();
             }
         }