2 * Copyright(c) 2017 Samsung Electronics Co., Ltd.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
19 using System.ComponentModel;
20 using System.Runtime.InteropServices;
21 using Tizen.NUI.Binding;
23 namespace Tizen.NUI.BaseComponents
27 /// TableView is a layout container for aligning child actors in a grid like layout.<br />
28 /// TableView constraints the X and the Y position and the width and the height of the child actors.<br />
29 /// The Z position and depth are left intact so that the 3D model actors can also be laid out
30 /// in a grid without loosing their depth scaling.<br />
32 /// <since_tizen> 3 </since_tizen>
33 public class TableView : View
35 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
36 [EditorBrowsable(EditorBrowsableState.Never)]
37 public static readonly BindableProperty RowsProperty = BindableProperty.Create("Rows", typeof(int), typeof(TableView), default(int), propertyChanged: (bindable, oldValue, newValue) =>
39 var tableView = (TableView)bindable;
42 Tizen.NUI.Object.SetProperty(tableView.swigCPtr, TableView.Property.ROWS, new Tizen.NUI.PropertyValue((int)newValue));
45 defaultValueCreator: (bindable) =>
47 var tableView = (TableView)bindable;
49 Tizen.NUI.Object.GetProperty(tableView.swigCPtr, TableView.Property.ROWS).Get(out temp);
52 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
53 [EditorBrowsable(EditorBrowsableState.Never)]
54 public static readonly BindableProperty ColumnsProperty = BindableProperty.Create("Columns", typeof(int), typeof(TableView), default(int), propertyChanged: (bindable, oldValue, newValue) =>
56 var tableView = (TableView)bindable;
59 Tizen.NUI.Object.SetProperty(tableView.swigCPtr, TableView.Property.COLUMNS, new Tizen.NUI.PropertyValue((int)newValue));
62 defaultValueCreator: (bindable) =>
64 var tableView = (TableView)bindable;
66 Tizen.NUI.Object.GetProperty(tableView.swigCPtr, TableView.Property.COLUMNS).Get(out temp);
69 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
70 [EditorBrowsable(EditorBrowsableState.Never)]
71 public static readonly BindableProperty CellPaddingProperty = BindableProperty.Create("CellPadding", typeof(Vector2), typeof(TableView), null, propertyChanged: (bindable, oldValue, newValue) =>
73 var tableView = (TableView)bindable;
76 Tizen.NUI.Object.SetProperty(tableView.swigCPtr, TableView.Property.CELL_PADDING, new Tizen.NUI.PropertyValue((Vector2)newValue));
79 defaultValueCreator: (bindable) =>
81 var tableView = (TableView)bindable;
82 Vector2 temp = new Vector2(0.0f, 0.0f);
83 Tizen.NUI.Object.GetProperty(tableView.swigCPtr, TableView.Property.CELL_PADDING).Get(temp);
86 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
87 [EditorBrowsable(EditorBrowsableState.Never)]
88 public static readonly BindableProperty LayoutRowsProperty = BindableProperty.Create("LayoutRows", typeof(PropertyMap), typeof(TableView), null, propertyChanged: (bindable, oldValue, newValue) =>
90 var tableView = (TableView)bindable;
93 Tizen.NUI.Object.SetProperty(tableView.swigCPtr, TableView.Property.LAYOUT_ROWS, new Tizen.NUI.PropertyValue((PropertyMap)newValue));
96 defaultValueCreator: (bindable) =>
98 var tableView = (TableView)bindable;
99 PropertyMap temp = new PropertyMap();
100 Tizen.NUI.Object.GetProperty(tableView.swigCPtr, TableView.Property.LAYOUT_ROWS).Get(temp);
103 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
104 [EditorBrowsable(EditorBrowsableState.Never)]
105 public static readonly BindableProperty LayoutColumnsProperty = BindableProperty.Create("LayoutColumns", typeof(PropertyMap), typeof(TableView), null, propertyChanged: (bindable, oldValue, newValue) =>
107 var tableView = (TableView)bindable;
108 if (newValue != null)
110 Tizen.NUI.Object.SetProperty(tableView.swigCPtr, TableView.Property.LAYOUT_COLUMNS, new Tizen.NUI.PropertyValue((PropertyMap)newValue));
113 defaultValueCreator: (bindable) =>
115 var tableView = (TableView)bindable;
116 PropertyMap temp = new PropertyMap();
117 Tizen.NUI.Object.GetProperty(tableView.swigCPtr, TableView.Property.LAYOUT_COLUMNS).Get(temp);
121 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
124 /// Creates the default TableView view.
126 public TableView() : this(Interop.TableView.TableView_New(1, 1), true)
128 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
132 /// Creates the TableView view.
134 /// <param name="initialRows">Initial rows for the table.</param>
135 /// <param name="initialColumns">Initial columns for the table.</param>
136 /// <since_tizen> 3 </since_tizen>
137 public TableView(uint initialRows, uint initialColumns) : this(Interop.TableView.TableView_New(initialRows, initialColumns), true)
139 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
144 /// The Copy constructor. Creates another handle that points to the same real object.
146 /// <param name="handle">Handle to copy from.</param>
147 /// <since_tizen> 3 </since_tizen>
148 public TableView(TableView handle) : this(Interop.TableView.new_TableView__SWIG_1(TableView.getCPtr(handle)), true)
150 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
153 internal TableView(global::System.IntPtr cPtr, bool cMemoryOwn) : base(Interop.TableView.TableView_SWIGUpcast(cPtr), cMemoryOwn)
155 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
159 /// Enumeration for describing how the size of a row or column has been set.
161 /// <since_tizen> 3 </since_tizen>
162 public enum LayoutPolicy
165 /// Fixed with the given value.
167 /// <since_tizen> 3 </since_tizen>
170 /// Calculated as percentage of the remainder after subtracting Padding and Fixed height/width.
172 /// <since_tizen> 3 </since_tizen>
175 /// Default policy, get the remainder of the 100% (after subtracting Fixed, Fit and Relative height/ width) divided evenly between 'fill' rows/columns.
177 /// <since_tizen> 3 </since_tizen>
180 /// Fit around its children.
182 /// <since_tizen> 3 </since_tizen>
187 /// The amount of rows in the table.
189 /// <since_tizen> 3 </since_tizen>
194 return (int)GetValue(RowsProperty);
198 SetValue(RowsProperty, value);
199 NotifyPropertyChanged();
203 /// The amount of columns in the table.
205 /// <since_tizen> 3 </since_tizen>
210 return (int)GetValue(ColumnsProperty);
214 SetValue(ColumnsProperty, value);
215 NotifyPropertyChanged();
219 /// Padding between cells.
221 /// <since_tizen> 3 </since_tizen>
222 public Vector2 CellPadding
226 return (Vector2)GetValue(CellPaddingProperty);
230 SetValue(CellPaddingProperty, value);
231 NotifyPropertyChanged();
236 /// The number of layout rows.
238 /// <since_tizen> 3 </since_tizen>
239 public PropertyMap LayoutRows
243 return (PropertyMap)GetValue(LayoutRowsProperty);
247 SetValue(LayoutRowsProperty, value);
248 NotifyPropertyChanged();
253 /// The number of layout columns.
255 /// <since_tizen> 3 </since_tizen>
256 public PropertyMap LayoutColumns
260 return (PropertyMap)GetValue(LayoutColumnsProperty);
264 SetValue(LayoutColumnsProperty, value);
265 NotifyPropertyChanged();
271 /// Adds a child to the table.<br />
272 /// If the row or column index is outside the table, the table gets resized bigger.<br />
274 /// <param name="child">The child to add.</param>
275 /// <param name="position">The position for the child.</param>
276 /// <returns>True if the addition succeeded, and false if the cell is already occupied.</returns>
277 /// <since_tizen> 3 </since_tizen>
278 public bool AddChild(View child, TableView.CellPosition position)
280 bool ret = Interop.TableView.TableView_AddChild(swigCPtr, View.getCPtr(child), TableView.CellPosition.getCPtr(position));
282 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
287 /// Returns a child from the given layout position.
289 /// <param name="position">The position in the table.</param>
290 /// <returns>Child that was in the cell or an uninitialized handle.</returns>
291 /// <since_tizen> 3 </since_tizen>
292 public View GetChildAt(TableView.CellPosition position)
294 //to fix memory leak issue, match the handle count with native side.
295 IntPtr cPtr = Interop.TableView.TableView_GetChildAt(swigCPtr, TableView.CellPosition.getCPtr(position));
296 HandleRef CPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
297 View ret = Registry.GetManagedBaseHandleFromNativePtr(CPtr.Handle) as View;
298 Interop.BaseHandle.delete_BaseHandle(CPtr);
299 CPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
301 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
306 /// Removes a child from the given layout position.
308 /// <param name="position">The position for the child to remove.</param>
309 /// <returns>Child that was removed or an uninitialized handle.</returns>
310 /// <since_tizen> 3 </since_tizen>
311 public View RemoveChildAt(TableView.CellPosition position)
313 //to fix memory leak issue, match the handle count with native side.
314 IntPtr cPtr = Interop.TableView.TableView_RemoveChildAt(swigCPtr, TableView.CellPosition.getCPtr(position));
315 HandleRef CPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
316 View ret = Registry.GetManagedBaseHandleFromNativePtr(CPtr.Handle) as View;
317 Interop.BaseHandle.delete_BaseHandle(CPtr);
318 CPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
320 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
322 Children.Remove(ret);
328 /// Finds the child's layout position.
330 /// <param name="child">The child to search for.</param>
331 /// <param name="position">The position for the child.</param>
332 /// <returns>True if the child was included in this TableView.</returns>
333 /// <since_tizen> 3 </since_tizen>
334 public bool FindChildPosition(View child, TableView.CellPosition position)
336 bool ret = Interop.TableView.TableView_FindChildPosition(swigCPtr, View.getCPtr(child), TableView.CellPosition.getCPtr(position));
337 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
342 /// Inserts a new row to the given index.
344 /// <param name="rowIndex">The rowIndex of the new row.</param>
345 /// <since_tizen> 3 </since_tizen>
346 public void InsertRow(uint rowIndex)
348 Interop.TableView.TableView_InsertRow(swigCPtr, rowIndex);
349 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
353 /// Deletes a row from the given index.<br />
354 /// Removed elements are deleted.<br />
356 /// <param name="rowIndex">The rowIndex of the row to delete.</param>
357 /// <since_tizen> 3 </since_tizen>
358 public void DeleteRow(uint rowIndex)
360 Interop.TableView.TableView_DeleteRow__SWIG_0(swigCPtr, rowIndex);
361 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
365 /// Inserts a new column to the given index.
367 /// <param name="columnIndex">The columnIndex of the new column.</param>
368 /// <since_tizen> 3 </since_tizen>
369 public void InsertColumn(uint columnIndex)
371 Interop.TableView.TableView_InsertColumn(swigCPtr, columnIndex);
372 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
376 /// Deletes a column from the given index.<br />
377 /// Removed elements are deleted.<br />
379 /// <param name="columnIndex">The columnIndex of the column to delete.</param>
380 /// <since_tizen> 3 </since_tizen>
381 public void DeleteColumn(uint columnIndex)
383 Interop.TableView.TableView_DeleteColumn__SWIG_0(swigCPtr, columnIndex);
384 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
388 /// Resizes the TableView.
390 /// <param name="rows">The rows for the table.</param>
391 /// <param name="columns">The columns for the table.</param>
392 /// <since_tizen> 3 </since_tizen>
393 public void Resize(uint rows, uint columns)
395 Interop.TableView.TableView_Resize__SWIG_0(swigCPtr, rows, columns);
396 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
400 /// Sets the horizontal and the vertical padding between cells.
402 /// <param name="padding">Width and height.</param>
403 /// <since_tizen> 3 </since_tizen>
404 public void SetCellPadding(Size2D padding)
406 Interop.TableView.TableView_SetCellPadding(swigCPtr, Size2D.getCPtr(padding));
407 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
411 /// Gets the current padding as width and height.
413 /// <returns>The current padding as width and height.</returns>
414 /// <since_tizen> 3 </since_tizen>
415 public Vector2 GetCellPadding()
417 Vector2 ret = new Vector2(Interop.TableView.TableView_GetCellPadding(swigCPtr), true);
418 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
423 /// Specifies this row as fitting its height to its children.
425 /// <param name="rowIndex">The row to set.</param>
426 /// <since_tizen> 3 </since_tizen>
427 public void SetFitHeight(uint rowIndex)
429 Interop.TableView.TableView_SetFitHeight(swigCPtr, rowIndex);
430 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
434 /// Checks if the row is a fit row.
436 /// <param name="rowIndex">The row to check.</param>
437 /// <returns>True if the row is fit.</returns>
438 /// <since_tizen> 3 </since_tizen>
439 public bool IsFitHeight(uint rowIndex)
441 bool ret = Interop.TableView.TableView_IsFitHeight(swigCPtr, rowIndex);
442 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
447 /// Specifies this column as fitting its width to its children.
449 /// <param name="columnIndex">The column to set.</param>
450 /// <since_tizen> 3 </since_tizen>
451 public void SetFitWidth(uint columnIndex)
453 Interop.TableView.TableView_SetFitWidth(swigCPtr, columnIndex);
454 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
458 /// Checks if the column is a fit column.
460 /// <param name="columnIndex">The column to check.</param>
461 /// <returns>True if the column is fit.</returns>
462 /// <since_tizen> 3 </since_tizen>
463 public bool IsFitWidth(uint columnIndex)
465 bool ret = Interop.TableView.TableView_IsFitWidth(swigCPtr, columnIndex);
466 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
471 /// Sets a row to have a fixed height.<br />
472 /// Setting a fixed height of 0 has no effect.<br />
474 /// <param name="rowIndex">The rowIndex for row with a fixed height.</param>
475 /// <param name="height">The height in world coordinate units.</param>
476 /// <since_tizen> 3 </since_tizen>
477 public void SetFixedHeight(uint rowIndex, float height)
479 Interop.TableView.TableView_SetFixedHeight(swigCPtr, rowIndex, height);
480 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
484 /// Gets a row's fixed height.
486 /// <param name="rowIndex">The row index with a fixed height.</param>
487 /// <returns>height The height in world coordinate units.</returns>
488 /// <since_tizen> 3 </since_tizen>
489 public float GetFixedHeight(uint rowIndex)
491 float ret = Interop.TableView.TableView_GetFixedHeight(swigCPtr, rowIndex);
492 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
497 /// Sets a row to have a relative height. Relative height means percentage of
498 /// the remainder of the table height after subtracting padding and fixed height rows.<br />
499 /// Setting a relative height of 0 has no effect.<br />
501 /// <param name="rowIndex">The rowIndex for row with a relative height.</param>
502 /// <param name="heightPercentage">The height percentage between 0.0f and 1.0f.</param>
503 /// <since_tizen> 3 </since_tizen>
504 public void SetRelativeHeight(uint rowIndex, float heightPercentage)
506 Interop.TableView.TableView_SetRelativeHeight(swigCPtr, rowIndex, heightPercentage);
507 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
511 /// Gets a row's relative height.
513 /// <param name="rowIndex">The row index with a relative height.</param>
514 /// <returns>Height in percentage units, between 0.0f and 1.0f.</returns>
515 /// <since_tizen> 3 </since_tizen>
516 public float GetRelativeHeight(uint rowIndex)
518 float ret = Interop.TableView.TableView_GetRelativeHeight(swigCPtr, rowIndex);
519 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
524 /// Sets a column to have a fixed width.<br />
525 /// Setting a fixed width of 0 has no effect.<br />
527 /// <param name="columnIndex">The columnIndex for column with a fixed width.</param>
528 /// <param name="width">The width in world coordinate units.</param>
529 /// <since_tizen> 3 </since_tizen>
530 public void SetFixedWidth(uint columnIndex, float width)
532 Interop.TableView.TableView_SetFixedWidth(swigCPtr, columnIndex, width);
533 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
537 /// Gets a column's fixed width.
539 /// <param name="columnIndex">The column index with a fixed width.</param>
540 /// <returns>Width in world coordinate units.</returns>
541 /// <since_tizen> 3 </since_tizen>
542 public float GetFixedWidth(uint columnIndex)
544 float ret = Interop.TableView.TableView_GetFixedWidth(swigCPtr, columnIndex);
545 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
550 /// Sets a column to have a relative width. Relative width means percentage of
551 /// the remainder of the table width after subtracting padding and fixed width columns.<br />
552 /// Setting a relative width of 0 has no effect.<br />
554 /// <param name="columnIndex">The columnIndex for column with a fixed width.</param>
555 /// <param name="widthPercentage">The widthPercentage between 0.0f and 1.0f.</param>
556 /// <since_tizen> 3 </since_tizen>
557 public void SetRelativeWidth(uint columnIndex, float widthPercentage)
559 Interop.TableView.TableView_SetRelativeWidth(swigCPtr, columnIndex, widthPercentage);
560 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
564 /// Gets a column's relative width.
566 /// <param name="columnIndex">The column index with a relative width.</param>
567 /// <returns>Width in percentage units, between 0.0f and 1.0f.</returns>
568 /// <since_tizen> 3 </since_tizen>
569 public float GetRelativeWidth(uint columnIndex)
571 float ret = Interop.TableView.TableView_GetRelativeWidth(swigCPtr, columnIndex);
572 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
577 /// Sets the alignment on a cell.<br />
578 /// Cells without calling this function have the default values of left and top respectively.<br />
580 /// <param name="position">The cell to set alignment on.</param>
581 /// <param name="horizontal">The horizontal alignment.</param>
582 /// <param name="vertical">The vertical alignment.</param>
583 /// <since_tizen> 3 </since_tizen>
584 public void SetCellAlignment(TableView.CellPosition position, HorizontalAlignmentType horizontal, VerticalAlignmentType vertical)
586 Interop.TableView.TableView_SetCellAlignment(swigCPtr, TableView.CellPosition.getCPtr(position), (int)horizontal, (int)vertical);
587 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
590 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(TableView obj)
592 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
598 /// <param name="type">The dispose type</param>
599 /// <since_tizen> 3 </since_tizen>
600 protected override void Dispose(DisposeTypes type)
607 //Release your own unmanaged resources here.
608 //You should not access any managed member here except static instance.
609 //because the execution order of Finalizes is non-deterministic.
611 if (swigCPtr.Handle != global::System.IntPtr.Zero)
616 Interop.TableView.delete_TableView(swigCPtr);
618 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
625 /// Class to specify the layout position for the child view.
627 /// <since_tizen> 3 </since_tizen>
628 public class CellPosition : Disposable
633 /// <since_tizen> 3 </since_tizen>
634 protected bool swigCMemOwn;
635 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
640 /// <param name="rowIndex">The row index initialized.</param>
641 /// <param name="columnIndex">The column index initialized.</param>
642 /// <param name="rowSpan">The row span initialized.</param>
643 /// <param name="columnSpan">The column span initialized.</param>
644 /// <since_tizen> 3 </since_tizen>
645 public CellPosition(uint rowIndex, uint columnIndex, uint rowSpan, uint columnSpan) : this(Interop.TableView.new_TableView_CellPosition__SWIG_0(rowIndex, columnIndex, rowSpan, columnSpan), true)
647 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
651 /// The constructor to initialize values to defaults for convenience.
653 /// <param name="rowIndex">The row index initialized.</param>
654 /// <param name="columnIndex">The column index initialized.</param>
655 /// <param name="rowSpan">The row span initialized.</param>
656 /// <since_tizen> 3 </since_tizen>
657 public CellPosition(uint rowIndex, uint columnIndex, uint rowSpan) : this(Interop.TableView.new_TableView_CellPosition__SWIG_1(rowIndex, columnIndex, rowSpan), true)
659 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
663 /// The constructor to initialize values to defaults for convenience.
665 /// <param name="rowIndex">The row index initialized.</param>
666 /// <param name="columnIndex">The column index initialized.</param>
667 /// <since_tizen> 3 </since_tizen>
668 public CellPosition(uint rowIndex, uint columnIndex) : this(Interop.TableView.new_TableView_CellPosition__SWIG_2(rowIndex, columnIndex), true)
670 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
674 /// The constructor to initialize values to default for convenience.
676 /// <param name="rowIndex">The row index initialized.</param>
677 /// <since_tizen> 3 </since_tizen>
678 public CellPosition(uint rowIndex) : this(Interop.TableView.new_TableView_CellPosition__SWIG_3(rowIndex), true)
680 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
684 /// The default constructor.
686 /// <since_tizen> 3 </since_tizen>
687 public CellPosition() : this(Interop.TableView.new_TableView_CellPosition__SWIG_4(), true)
689 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
692 internal CellPosition(global::System.IntPtr cPtr, bool cMemoryOwn)
694 swigCMemOwn = cMemoryOwn;
695 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
699 /// The index of a row.
701 /// <since_tizen> 3 </since_tizen>
702 [Obsolete("Please do not use! This will be deprecated! Please use RowIndex instead!")]
703 [EditorBrowsable(EditorBrowsableState.Never)]
708 Interop.TableView.TableView_CellPosition_rowIndex_set(swigCPtr, value);
709 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
713 uint ret = Interop.TableView.TableView_CellPosition_rowIndex_get(swigCPtr);
714 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
720 /// The index or position of a row.
722 /// <since_tizen> 5 </since_tizen>
727 uint ret = Interop.TableView.TableView_CellPosition_rowIndex_get(swigCPtr);
728 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
735 /// The index of a column.
737 /// <since_tizen> 3 </since_tizen>
738 [Obsolete("Please do not use! This will be deprecated! Please use ColumnIndex instead!")]
739 [EditorBrowsable(EditorBrowsableState.Never)]
740 public uint columnIndex
744 Interop.TableView.TableView_CellPosition_columnIndex_set(swigCPtr, value);
745 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
749 uint ret = Interop.TableView.TableView_CellPosition_columnIndex_get(swigCPtr);
750 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
756 /// The index or position of a column.
758 /// <since_tizen> 5 </since_tizen>
759 public uint ColumnIndex
763 uint ret = Interop.TableView.TableView_CellPosition_columnIndex_get(swigCPtr);
764 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
770 /// The span of a row.
772 /// <since_tizen> 3 </since_tizen>
773 [Obsolete("Please do not use! This will be deprecated! Please use RowSpan instead!")]
774 [EditorBrowsable(EditorBrowsableState.Never)]
779 Interop.TableView.TableView_CellPosition_rowSpan_set(swigCPtr, value);
780 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
784 uint ret = Interop.TableView.TableView_CellPosition_rowSpan_get(swigCPtr);
785 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
791 /// The span of a row.
793 /// <since_tizen> 5 </since_tizen>
798 uint ret = Interop.TableView.TableView_CellPosition_rowSpan_get(swigCPtr);
799 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
805 /// The span of a column.
807 /// <since_tizen> 3 </since_tizen>
808 [Obsolete("Please do not use! This will be deprecated! Please use ColumnSpan instead!")]
809 [EditorBrowsable(EditorBrowsableState.Never)]
810 public uint columnSpan
814 Interop.TableView.TableView_CellPosition_columnSpan_set(swigCPtr, value);
815 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
819 uint ret = Interop.TableView.TableView_CellPosition_columnSpan_get(swigCPtr);
820 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
826 /// The span of a column.
828 /// <since_tizen> 5 </since_tizen>
829 public uint ColumnSpan
833 uint ret = Interop.TableView.TableView_CellPosition_columnSpan_get(swigCPtr);
834 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
839 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(CellPosition obj)
841 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
847 /// <param name="type">DisposeTypes</param>
848 /// <since_tizen> 3 </since_tizen>
849 protected override void Dispose(DisposeTypes type)
856 //Release your own unmanaged resources here.
857 //You should not access any managed member here except static instance.
858 //because the execution order of Finalizes is non-deterministic.
860 if (swigCPtr.Handle != global::System.IntPtr.Zero)
865 Interop.TableView.delete_TableView_CellPosition(swigCPtr);
867 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
873 internal new class Property
875 internal static readonly int ROWS = Interop.TableView.TableView_Property_ROWS_get();
876 internal static readonly int COLUMNS = Interop.TableView.TableView_Property_COLUMNS_get();
877 internal static readonly int CELL_PADDING = Interop.TableView.TableView_Property_CELL_PADDING_get();
878 internal static readonly int LAYOUT_ROWS = Interop.TableView.TableView_Property_LAYOUT_ROWS_get();
879 internal static readonly int LAYOUT_COLUMNS = Interop.TableView.TableView_Property_LAYOUT_COLUMNS_get();
882 internal class ChildProperty
884 internal static readonly int CELL_INDEX = Interop.TableView.TableView_ChildProperty_CELL_INDEX_get();
885 internal static readonly int ROW_SPAN = Interop.TableView.TableView_ChildProperty_ROW_SPAN_get();
886 internal static readonly int COLUMN_SPAN = Interop.TableView.TableView_ChildProperty_COLUMN_SPAN_get();
887 internal static readonly int CELL_HORIZONTAL_ALIGNMENT = Interop.TableView.TableView_ChildProperty_CELL_HORIZONTAL_ALIGNMENT_get();
888 internal static readonly int CELL_VERTICAL_ALIGNMENT = Interop.TableView.TableView_ChildProperty_CELL_VERTICAL_ALIGNMENT_get();