[NUI] Fix comments according to document review
[platform/core/csapi/tizenfx.git] / src / Tizen.NUI / src / public / Common / Size.cs
index f687966..ae1d11a 100755 (executable)
@@ -95,23 +95,22 @@ namespace Tizen.NUI
         /// The Width property for the width component of size
         /// </summary>
         /// <remarks>
-        /// The setter is deprecated in API8 and will be removed in API10. Please use new Size(...) constructor.
+        /// The setter is deprecated in API8 and will be removed in API10. Use new Size(...) constructor.
         /// </remarks>
         /// <code>
         /// // DO NOT use like the followings!
         /// Size size = new Size();
         /// size.Width = 0.1f; 
-        /// // Please USE like this
+        /// // USE like this
         /// float width = 0.1f, height = 0.5f, depth = 0.9f;
         /// Size size = new Size(width, height, depth);
         /// </code>
         /// <since_tizen> 5 </since_tizen>
         public float Width
         {
+            [Obsolete("Do not use this setter, that is deprecated in API8 and will be removed in API10. Use new Size(...) constructor")]
             set
             {
-                Tizen.Log.Fatal("NUI", "Please do not use this setter, Deprecated in API8, will be removed in API10. please use new Size(...) constructor");
-
                 Interop.Vector3.WidthSet(SwigCPtr, value);
                 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
 
@@ -129,23 +128,22 @@ namespace Tizen.NUI
         /// The Height property for the height component of size.
         /// </summary>
         /// <remarks>
-        /// The setter is deprecated in API8 and will be removed in API10. Please use new Size(...) constructor.
+        /// The setter is deprecated in API8 and will be removed in API10. Use new Size(...) constructor.
         /// </remarks>
         /// <code>
         /// // DO NOT use like the followings!
         /// Size size = new Size();
         /// size.Height = 0.5f; 
-        /// // Please USE like this
+        /// // USE like this
         /// float width = 0.1f, height = 0.5f, depth = 0.9f;
         /// Size size = new Size(width, height, depth);
         /// </code>
         /// <since_tizen> 5 </since_tizen>
         public float Height
         {
+            [Obsolete("Do not use this setter, that is deprecated in API8 and will be removed in API10. Use new Size(...) constructor")]
             set
             {
-                Tizen.Log.Fatal("NUI", "Please do not use this setter, Deprecated in API8, will be removed in API10. please use new Size(...) constructor");
-
                 Interop.Vector3.HeightSet(SwigCPtr, value);
                 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
 
@@ -163,23 +161,22 @@ namespace Tizen.NUI
         /// The Depth property for the depth component of size.
         /// </summary>
         /// <remarks>
-        /// The setter is deprecated in API8 and will be removed in API10. Please use new Size(...) constructor.
+        /// The setter is deprecated in API8 and will be removed in API10. Use new Size(...) constructor.
         /// </remarks>
         /// <code>
         /// // DO NOT use like the followings!
         /// Size size = new Size();
         /// size.Depth = 0.9f; 
-        /// // Please USE like this
+        /// // USE like this
         /// float width = 0.1f, height = 0.5f, depth = 0.9f;
         /// Size size = new Size(width, height, depth);
         /// </code>
         /// <since_tizen> 5 </since_tizen>
         public float Depth
         {
+            [Obsolete("Do not use this setter, that is deprecated in API8 and will be removed in API10. Use new Size(...) constructor")]
             set
             {
-                Tizen.Log.Fatal("NUI", "Please do not use this setter, Deprecated in API8, will be removed in API10. please use new Size(...) constructor");
-
                 Interop.Vector3.DepthSet(SwigCPtr, value);
                 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
 
@@ -400,11 +397,6 @@ namespace Tizen.NUI
             return ret;
         }
 
-        internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Size obj)
-        {
-            return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.SwigCPtr;
-        }
-
         internal Size(global::System.IntPtr cPtr, bool cMemoryOwn) : base(cPtr, cMemoryOwn)
         {
         }