1.[NUI 276] c# nui visual high level class refactorying.
[platform/core/csapi/nui.git] / Tizen.NUI / src / public / UIComponents / TextLabel.cs
index 3de2162..dd0254d 100755 (executable)
@@ -321,13 +321,13 @@ namespace Tizen.NUI.UIComponents
                 switch (temp)
                 {
                     case "BEGIN":
-                        return HorizontalAlignment.HorizontalAlignBegin;
+                        return HorizontalAlignment.Begin;
                     case "CENTER":
-                        return HorizontalAlignment.HorizontalAlignCenter;
+                        return HorizontalAlignment.Center;
                     case "END":
-                        return HorizontalAlignment.HorizontalAlignEnd;
+                        return HorizontalAlignment.End;
                     default:
-                        return HorizontalAlignment.HorizontalAlignBegin;
+                        return HorizontalAlignment.Begin;
                 }
             }
             set
@@ -335,17 +335,17 @@ namespace Tizen.NUI.UIComponents
                 string valueToString = "";
                 switch (value)
                 {
-                    case HorizontalAlignment.HorizontalAlignBegin:
+                    case HorizontalAlignment.Begin:
                     {
                         valueToString = "BEGIN";
                         break;
                     }
-                    case HorizontalAlignment.HorizontalAlignCenter:
+                    case HorizontalAlignment.Center:
                     {
                         valueToString = "CENTER";
                         break;
                     }
-                    case HorizontalAlignment.HorizontalAlignEnd:
+                    case HorizontalAlignment.End:
                     {
                         valueToString = "END";
                         break;
@@ -379,13 +379,13 @@ namespace Tizen.NUI.UIComponents
                 switch (temp)
                 {
                     case "TOP":
-                        return VerticalAlignment.VerticalAlignTop;
+                        return VerticalAlignment.Top;
                     case "CENTER":
-                        return VerticalAlignment.VerticalAlignCenter;
+                        return VerticalAlignment.Center;
                     case "BOTTOM":
-                        return VerticalAlignment.VerticalAlignBottom;
+                        return VerticalAlignment.Bottom;
                     default:
-                        return VerticalAlignment.VerticalAlignBottom;
+                        return VerticalAlignment.Bottom;
                 }
             }
             set
@@ -393,17 +393,17 @@ namespace Tizen.NUI.UIComponents
                 string valueToString = "";
                 switch (value)
                 {
-                    case VerticalAlignment.VerticalAlignTop:
+                    case VerticalAlignment.Top:
                     {
                         valueToString = "TOP";
                         break;
                     }
-                    case VerticalAlignment.VerticalAlignCenter:
+                    case VerticalAlignment.Center:
                     {
                         valueToString = "CENTER";
                         break;
                     }
-                    case VerticalAlignment.VerticalAlignBottom:
+                    case VerticalAlignment.Bottom:
                     {
                         valueToString = "BOTTOM";
                         break;
@@ -707,43 +707,4 @@ namespace Tizen.NUI.UIComponents
         }
 
     }
-
-    /// <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
-    }
-
 }