[NUI] Fix comments according to document review
[platform/core/csapi/tizenfx.git] / src / Tizen.NUI / src / public / Common / Vector2.cs
index 92a1abe..68115d8 100755 (executable)
@@ -200,23 +200,22 @@ namespace Tizen.NUI
         /// The x component.
         /// </summary>
         /// <remarks>
-        /// The setter is deprecated in API8 and will be removed in API10. Please use new Vector2(...) constructor.
+        /// The setter is deprecated in API8 and will be removed in API10. Use new Vector2(...) constructor.
         /// </remarks>
         /// <code>
         /// // DO NOT use like the followings!
         /// Vector2 vector2 = new Vector2();
         /// vector2.X = 0.1f; 
-        /// // Please USE like this
+        /// // USE like this
         /// float x = 0.1f, y = 0.5f;
         /// Vector2 vector2 = new Vector2(x, y);
         /// </code>
         /// <since_tizen> 3 </since_tizen>
         public float X
         {
+            [Obsolete("Do not use this setter, that is deprecated in API8 and will be removed in API10. Use new Vector2(...) constructor")]
             set
             {
-                Tizen.Log.Fatal("NUI", "Please do not use this setter, Deprecated in API8, will be removed in API10. please use new Vector2(...) constructor");
-
                 Interop.Vector2.XSet(SwigCPtr, value);
                 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
 
@@ -234,23 +233,22 @@ namespace Tizen.NUI
         /// The width.
         /// </summary>
         /// <remarks>
-        /// The setter is deprecated in API8 and will be removed in API10. Please use new Vector2(...) constructor.
+        /// The setter is deprecated in API8 and will be removed in API10. Use new Vector2(...) constructor.
         /// </remarks>
         /// <code>
         /// // DO NOT use like the followings!
         /// Vector2 vector2 = new Vector2();
         /// vector2.Width = 1.0f; 
-        /// // Please USE like this
+        /// // USE like this
         /// float width = 1.0f, height = 2.0f;
         /// Vector2 vector2 = new Vector2(x, y);
         /// </code>
         /// <since_tizen> 3 </since_tizen>
         public float Width
         {
+            [Obsolete("Do not use this setter, that is deprecated in API8 and will be removed in API10. Use new Vector2(...) constructor")]
             set
             {
-                Tizen.Log.Fatal("NUI", "Please do not use this setter, Deprecated in API8, will be removed in API10. please use new Vector2(...) constructor");
-
                 Interop.Vector2.WidthSet(SwigCPtr, value);
                 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
 
@@ -268,23 +266,22 @@ namespace Tizen.NUI
         /// The y component.
         /// </summary>
         /// <remarks>
-        /// The setter is deprecated in API8 and will be removed in API10. Please use new Vector2(...) constructor.
+        /// The setter is deprecated in API8 and will be removed in API10. Use new Vector2(...) constructor.
         /// </remarks>
         /// <code>
         /// // DO NOT use like the followings!
         /// Vector2 vector2 = new Vector2();
         /// vector2.Y = 0.5f; 
-        /// // Please USE like this
+        /// // USE like this
         /// float x = 0.1f, y = 0.5f;
         /// Vector2 vector2 = new Vector2(x, y);
         /// </code>
         /// <since_tizen> 3 </since_tizen>
         public float Y
         {
+            [Obsolete("Do not use this setter, that is deprecated in API8 and will be removed in API10. Use new Vector2(...) constructor")]
             set
             {
-                Tizen.Log.Fatal("NUI", "Please do not use this setter, Deprecated in API8, will be removed in API10. please use new Vector2(...) constructor");
-
                 Interop.Vector2.YSet(SwigCPtr, value);
                 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
 
@@ -302,23 +299,22 @@ namespace Tizen.NUI
         /// The height.
         /// </summary>
         /// <remarks>
-        /// The setter is deprecated in API8 and will be removed in API10. Please use new Vector2(...) constructor.
+        /// The setter is deprecated in API8 and will be removed in API10. Use new Vector2(...) constructor.
         /// </remarks>
         /// <code>
         /// // DO NOT use like the followings!
         /// Vector2 vector2 = new Vector2();
         /// vector2.Height = 2.0f; 
-        /// // Please USE like this
+        /// // USE like this
         /// float width = 1.0f, height = 2.0f;
         /// Vector2 vector2 = new Vector2(x, y);
         /// </code>
         /// <since_tizen> 3 </since_tizen>
         public float Height
         {
+            [Obsolete("Do not use this setter, that is deprecated in API8 and will be removed in API10. Use new Vector2(...) constructor")]
             set
             {
-                Tizen.Log.Fatal("NUI", "Please do not use this setter, Deprecated in API8, will be removed in API10. please use new Vector2(...) constructor");
-
                 Interop.Vector2.HeightSet(SwigCPtr, value);
                 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
 
@@ -514,11 +510,6 @@ namespace Tizen.NUI
             return ret;
         }
 
-        internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Vector2 obj)
-        {
-            return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.SwigCPtr;
-        }
-
         internal SWIGTYPE_p_float AsFloat()
         {
             global::System.IntPtr cPtr = Interop.Vector2.AsFloat(SwigCPtr);