2 * Copyright(c) 2019 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(nameof(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(nameof(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(nameof(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(nameof(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(nameof(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);
123 /// Creates the default TableView view.
125 public TableView() : this(Interop.TableView.TableView_New(1, 1), true)
127 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
131 /// Creates the TableView view.
133 /// <param name="initialRows">Initial rows for the table.</param>
134 /// <param name="initialColumns">Initial columns for the table.</param>
135 /// <since_tizen> 3 </since_tizen>
136 public TableView(uint initialRows, uint initialColumns) : this(Interop.TableView.TableView_New(initialRows, initialColumns), true)
138 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
143 /// The Copy constructor. Creates another handle that points to the same real object.
145 /// <param name="handle">Handle to copy from.</param>
146 /// <since_tizen> 3 </since_tizen>
147 public TableView(TableView handle) : this(Interop.TableView.new_TableView__SWIG_1(TableView.getCPtr(handle)), true)
149 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
152 internal TableView(global::System.IntPtr cPtr, bool cMemoryOwn) : base(Interop.TableView.TableView_SWIGUpcast(cPtr), cMemoryOwn)
157 /// Enumeration for describing how the size of a row or column has been set.
159 /// <since_tizen> 3 </since_tizen>
160 public enum LayoutPolicy
163 /// Fixed with the given value.
165 /// <since_tizen> 3 </since_tizen>
168 /// Calculated as percentage of the remainder after subtracting Padding and Fixed height/width.
170 /// <since_tizen> 3 </since_tizen>
173 /// Default policy, get the remainder of the 100% (after subtracting Fixed, Fit and Relative height/ width) divided evenly between 'fill' rows/columns.
175 /// <since_tizen> 3 </since_tizen>
178 /// Fit around its children.
180 /// <since_tizen> 3 </since_tizen>
185 /// The amount of rows in the table.
187 /// <since_tizen> 3 </since_tizen>
192 return (int)GetValue(RowsProperty);
196 SetValue(RowsProperty, value);
197 NotifyPropertyChanged();
201 /// The amount of columns in the table.
203 /// <since_tizen> 3 </since_tizen>
208 return (int)GetValue(ColumnsProperty);
212 SetValue(ColumnsProperty, value);
213 NotifyPropertyChanged();
217 /// Padding between cells.
219 /// <since_tizen> 3 </since_tizen>
220 public Vector2 CellPadding
224 return (Vector2)GetValue(CellPaddingProperty);
228 SetValue(CellPaddingProperty, value);
229 NotifyPropertyChanged();
234 /// The number of layout rows.
236 /// <since_tizen> 3 </since_tizen>
237 public PropertyMap LayoutRows
241 return (PropertyMap)GetValue(LayoutRowsProperty);
245 SetValue(LayoutRowsProperty, value);
246 NotifyPropertyChanged();
251 /// The number of layout columns.
253 /// <since_tizen> 3 </since_tizen>
254 public PropertyMap LayoutColumns
258 return (PropertyMap)GetValue(LayoutColumnsProperty);
262 SetValue(LayoutColumnsProperty, value);
263 NotifyPropertyChanged();
269 /// Adds a child to the table.<br />
270 /// If the row or column index is outside the table, the table gets resized bigger.<br />
272 /// <param name="child">The child to add.</param>
273 /// <param name="position">The position for the child.</param>
274 /// <returns>True if the addition succeeded, and false if the cell is already occupied.</returns>
275 /// <since_tizen> 3 </since_tizen>
276 public bool AddChild(View child, TableView.CellPosition position)
278 bool ret = Interop.TableView.TableView_AddChild(swigCPtr, View.getCPtr(child), TableView.CellPosition.getCPtr(position));
280 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
285 /// Returns a child from the given layout position.
287 /// <param name="position">The position in the table.</param>
288 /// <returns>Child that was in the cell or an uninitialized handle.</returns>
289 /// <since_tizen> 3 </since_tizen>
290 public View GetChildAt(TableView.CellPosition position)
292 //to fix memory leak issue, match the handle count with native side.
293 IntPtr cPtr = Interop.TableView.TableView_GetChildAt(swigCPtr, TableView.CellPosition.getCPtr(position));
294 HandleRef CPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
295 View ret = Registry.GetManagedBaseHandleFromNativePtr(CPtr.Handle) as View;
296 Interop.BaseHandle.delete_BaseHandle(CPtr);
297 CPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
299 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
304 /// Removes a child from the given layout position.
306 /// <param name="position">The position for the child to remove.</param>
307 /// <returns>Child that was removed or an uninitialized handle.</returns>
308 /// <since_tizen> 3 </since_tizen>
309 public View RemoveChildAt(TableView.CellPosition position)
311 //to fix memory leak issue, match the handle count with native side.
312 IntPtr cPtr = Interop.TableView.TableView_RemoveChildAt(swigCPtr, TableView.CellPosition.getCPtr(position));
313 View ret = this.GetInstanceSafely<View>(cPtr);
314 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
316 Children.Remove(ret);
322 /// Finds the child's layout position.
324 /// <param name="child">The child to search for.</param>
325 /// <param name="position">The position for the child.</param>
326 /// <returns>True if the child was included in this TableView.</returns>
327 /// <since_tizen> 3 </since_tizen>
328 public bool FindChildPosition(View child, TableView.CellPosition position)
330 bool ret = Interop.TableView.TableView_FindChildPosition(swigCPtr, View.getCPtr(child), TableView.CellPosition.getCPtr(position));
331 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
336 /// Inserts a new row to the given index.
338 /// <param name="rowIndex">The rowIndex of the new row.</param>
339 /// <since_tizen> 3 </since_tizen>
340 public void InsertRow(uint rowIndex)
342 Interop.TableView.TableView_InsertRow(swigCPtr, rowIndex);
343 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
347 /// Deletes a row from the given index.<br />
348 /// Removed elements are deleted.<br />
350 /// <param name="rowIndex">The rowIndex of the row to delete.</param>
351 /// <since_tizen> 3 </since_tizen>
352 public void DeleteRow(uint rowIndex)
354 Interop.TableView.TableView_DeleteRow__SWIG_0(swigCPtr, rowIndex);
355 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
359 /// Inserts a new column to the given index.
361 /// <param name="columnIndex">The columnIndex of the new column.</param>
362 /// <since_tizen> 3 </since_tizen>
363 public void InsertColumn(uint columnIndex)
365 Interop.TableView.TableView_InsertColumn(swigCPtr, columnIndex);
366 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
370 /// Deletes a column from the given index.<br />
371 /// Removed elements are deleted.<br />
373 /// <param name="columnIndex">The columnIndex of the column to delete.</param>
374 /// <since_tizen> 3 </since_tizen>
375 public void DeleteColumn(uint columnIndex)
377 Interop.TableView.TableView_DeleteColumn__SWIG_0(swigCPtr, columnIndex);
378 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
382 /// Resizes the TableView.
384 /// <param name="rows">The rows for the table.</param>
385 /// <param name="columns">The columns for the table.</param>
386 /// <since_tizen> 3 </since_tizen>
387 public void Resize(uint rows, uint columns)
389 Interop.TableView.TableView_Resize__SWIG_0(swigCPtr, rows, columns);
390 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
394 /// Sets the horizontal and the vertical padding between cells.
396 /// <param name="padding">Width and height.</param>
397 /// <since_tizen> 3 </since_tizen>
398 public void SetCellPadding(Size2D padding)
400 Interop.TableView.TableView_SetCellPadding(swigCPtr, Size2D.getCPtr(padding));
401 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
405 /// Gets the current padding as width and height.
407 /// <returns>The current padding as width and height.</returns>
408 /// <since_tizen> 3 </since_tizen>
409 public Vector2 GetCellPadding()
411 Vector2 ret = new Vector2(Interop.TableView.TableView_GetCellPadding(swigCPtr), true);
412 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
417 /// Specifies this row as fitting its height to its children.
419 /// <param name="rowIndex">The row to set.</param>
420 /// <since_tizen> 3 </since_tizen>
421 public void SetFitHeight(uint rowIndex)
423 Interop.TableView.TableView_SetFitHeight(swigCPtr, rowIndex);
424 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
428 /// Checks if the row is a fit row.
430 /// <param name="rowIndex">The row to check.</param>
431 /// <returns>True if the row is fit.</returns>
432 /// <since_tizen> 3 </since_tizen>
433 public bool IsFitHeight(uint rowIndex)
435 bool ret = Interop.TableView.TableView_IsFitHeight(swigCPtr, rowIndex);
436 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
441 /// Specifies this column as fitting its width to its children.
443 /// <param name="columnIndex">The column to set.</param>
444 /// <since_tizen> 3 </since_tizen>
445 public void SetFitWidth(uint columnIndex)
447 Interop.TableView.TableView_SetFitWidth(swigCPtr, columnIndex);
448 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
452 /// Checks if the column is a fit column.
454 /// <param name="columnIndex">The column to check.</param>
455 /// <returns>True if the column is fit.</returns>
456 /// <since_tizen> 3 </since_tizen>
457 public bool IsFitWidth(uint columnIndex)
459 bool ret = Interop.TableView.TableView_IsFitWidth(swigCPtr, columnIndex);
460 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
465 /// Sets a row to have a fixed height.<br />
466 /// Setting a fixed height of 0 has no effect.<br />
468 /// <param name="rowIndex">The rowIndex for row with a fixed height.</param>
469 /// <param name="height">The height in world coordinate units.</param>
470 /// <since_tizen> 3 </since_tizen>
471 public void SetFixedHeight(uint rowIndex, float height)
473 Interop.TableView.TableView_SetFixedHeight(swigCPtr, rowIndex, height);
474 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
478 /// Gets a row's fixed height.
480 /// <param name="rowIndex">The row index with a fixed height.</param>
481 /// <returns>height The height in world coordinate units.</returns>
482 /// <since_tizen> 3 </since_tizen>
483 public float GetFixedHeight(uint rowIndex)
485 float ret = Interop.TableView.TableView_GetFixedHeight(swigCPtr, rowIndex);
486 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
491 /// Sets a row to have a relative height. Relative height means percentage of
492 /// the remainder of the table height after subtracting padding and fixed height rows.<br />
493 /// Setting a relative height of 0 has no effect.<br />
495 /// <param name="rowIndex">The rowIndex for row with a relative height.</param>
496 /// <param name="heightPercentage">The height percentage between 0.0f and 1.0f.</param>
497 /// <since_tizen> 3 </since_tizen>
498 public void SetRelativeHeight(uint rowIndex, float heightPercentage)
500 Interop.TableView.TableView_SetRelativeHeight(swigCPtr, rowIndex, heightPercentage);
501 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
505 /// Gets a row's relative height.
507 /// <param name="rowIndex">The row index with a relative height.</param>
508 /// <returns>Height in percentage units, between 0.0f and 1.0f.</returns>
509 /// <since_tizen> 3 </since_tizen>
510 public float GetRelativeHeight(uint rowIndex)
512 float ret = Interop.TableView.TableView_GetRelativeHeight(swigCPtr, rowIndex);
513 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
518 /// Sets a column to have a fixed width.<br />
519 /// Setting a fixed width of 0 has no effect.<br />
521 /// <param name="columnIndex">The columnIndex for column with a fixed width.</param>
522 /// <param name="width">The width in world coordinate units.</param>
523 /// <since_tizen> 3 </since_tizen>
524 public void SetFixedWidth(uint columnIndex, float width)
526 Interop.TableView.TableView_SetFixedWidth(swigCPtr, columnIndex, width);
527 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
531 /// Gets a column's fixed width.
533 /// <param name="columnIndex">The column index with a fixed width.</param>
534 /// <returns>Width in world coordinate units.</returns>
535 /// <since_tizen> 3 </since_tizen>
536 public float GetFixedWidth(uint columnIndex)
538 float ret = Interop.TableView.TableView_GetFixedWidth(swigCPtr, columnIndex);
539 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
544 /// Sets a column to have a relative width. Relative width means percentage of
545 /// the remainder of the table width after subtracting padding and fixed width columns.<br />
546 /// Setting a relative width of 0 has no effect.<br />
548 /// <param name="columnIndex">The columnIndex for column with a fixed width.</param>
549 /// <param name="widthPercentage">The widthPercentage between 0.0f and 1.0f.</param>
550 /// <since_tizen> 3 </since_tizen>
551 public void SetRelativeWidth(uint columnIndex, float widthPercentage)
553 Interop.TableView.TableView_SetRelativeWidth(swigCPtr, columnIndex, widthPercentage);
554 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
558 /// Gets a column's relative width.
560 /// <param name="columnIndex">The column index with a relative width.</param>
561 /// <returns>Width in percentage units, between 0.0f and 1.0f.</returns>
562 /// <since_tizen> 3 </since_tizen>
563 public float GetRelativeWidth(uint columnIndex)
565 float ret = Interop.TableView.TableView_GetRelativeWidth(swigCPtr, columnIndex);
566 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
571 /// Sets the alignment on a cell.<br />
572 /// Cells without calling this function have the default values of left and top respectively.<br />
574 /// <param name="position">The cell to set alignment on.</param>
575 /// <param name="horizontal">The horizontal alignment.</param>
576 /// <param name="vertical">The vertical alignment.</param>
577 /// <since_tizen> 3 </since_tizen>
578 public void SetCellAlignment(TableView.CellPosition position, HorizontalAlignmentType horizontal, VerticalAlignmentType vertical)
580 Interop.TableView.TableView_SetCellAlignment(swigCPtr, TableView.CellPosition.getCPtr(position), (int)horizontal, (int)vertical);
581 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
584 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(TableView obj)
586 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
589 /// This will not be public opened.
590 [EditorBrowsable(EditorBrowsableState.Never)]
591 protected override void ReleaseSwigCPtr(System.Runtime.InteropServices.HandleRef swigCPtr)
593 Interop.TableView.delete_TableView(swigCPtr);
597 /// Class to specify the layout position for the child view.
599 /// <since_tizen> 3 </since_tizen>
600 public class CellPosition : Disposable
605 /// <param name="rowIndex">The row index initialized.</param>
606 /// <param name="columnIndex">The column index initialized.</param>
607 /// <param name="rowSpan">The row span initialized.</param>
608 /// <param name="columnSpan">The column span initialized.</param>
609 /// <since_tizen> 3 </since_tizen>
610 public CellPosition(uint rowIndex, uint columnIndex, uint rowSpan, uint columnSpan) : this(Interop.TableView.new_TableView_CellPosition__SWIG_0(rowIndex, columnIndex, rowSpan, columnSpan), true)
612 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
616 /// The constructor to initialize values to defaults for convenience.
618 /// <param name="rowIndex">The row index initialized.</param>
619 /// <param name="columnIndex">The column index initialized.</param>
620 /// <param name="rowSpan">The row span initialized.</param>
621 /// <since_tizen> 3 </since_tizen>
622 public CellPosition(uint rowIndex, uint columnIndex, uint rowSpan) : this(Interop.TableView.new_TableView_CellPosition__SWIG_1(rowIndex, columnIndex, rowSpan), true)
624 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
628 /// The constructor to initialize values to defaults for convenience.
630 /// <param name="rowIndex">The row index initialized.</param>
631 /// <param name="columnIndex">The column index initialized.</param>
632 /// <since_tizen> 3 </since_tizen>
633 public CellPosition(uint rowIndex, uint columnIndex) : this(Interop.TableView.new_TableView_CellPosition__SWIG_2(rowIndex, columnIndex), true)
635 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
639 /// The constructor to initialize values to default for convenience.
641 /// <param name="rowIndex">The row index initialized.</param>
642 /// <since_tizen> 3 </since_tizen>
643 public CellPosition(uint rowIndex) : this(Interop.TableView.new_TableView_CellPosition__SWIG_3(rowIndex), true)
645 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
649 /// The default constructor.
651 /// <since_tizen> 3 </since_tizen>
652 public CellPosition() : this(Interop.TableView.new_TableView_CellPosition__SWIG_4(), true)
654 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
657 internal CellPosition(global::System.IntPtr cPtr, bool cMemoryOwn) : base(cPtr, cMemoryOwn)
662 /// The index of a row.
664 /// <since_tizen> 3 </since_tizen>
665 [Obsolete("Please do not use! This will be deprecated! Please use RowIndex instead!")]
666 [EditorBrowsable(EditorBrowsableState.Never)]
671 Interop.TableView.TableView_CellPosition_rowIndex_set(swigCPtr, value);
672 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
676 uint ret = Interop.TableView.TableView_CellPosition_rowIndex_get(swigCPtr);
677 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
683 /// The index or position of a row.
685 /// <since_tizen> 5 </since_tizen>
690 uint ret = Interop.TableView.TableView_CellPosition_rowIndex_get(swigCPtr);
691 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
698 /// The index of a column.
700 /// <since_tizen> 3 </since_tizen>
701 [Obsolete("Please do not use! This will be deprecated! Please use ColumnIndex instead!")]
702 [EditorBrowsable(EditorBrowsableState.Never)]
703 public uint columnIndex
707 Interop.TableView.TableView_CellPosition_columnIndex_set(swigCPtr, value);
708 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
712 uint ret = Interop.TableView.TableView_CellPosition_columnIndex_get(swigCPtr);
713 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
719 /// The index or position of a column.
721 /// <since_tizen> 5 </since_tizen>
722 public uint ColumnIndex
726 uint ret = Interop.TableView.TableView_CellPosition_columnIndex_get(swigCPtr);
727 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
733 /// The span of a row.
735 /// <since_tizen> 3 </since_tizen>
736 [Obsolete("Please do not use! This will be deprecated! Please use RowSpan instead!")]
737 [EditorBrowsable(EditorBrowsableState.Never)]
742 Interop.TableView.TableView_CellPosition_rowSpan_set(swigCPtr, value);
743 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
747 uint ret = Interop.TableView.TableView_CellPosition_rowSpan_get(swigCPtr);
748 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
754 /// The span of a row.
756 /// <since_tizen> 5 </since_tizen>
761 uint ret = Interop.TableView.TableView_CellPosition_rowSpan_get(swigCPtr);
762 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
768 /// The span of a column.
770 /// <since_tizen> 3 </since_tizen>
771 [Obsolete("Please do not use! This will be deprecated! Please use ColumnSpan instead!")]
772 [EditorBrowsable(EditorBrowsableState.Never)]
773 public uint columnSpan
777 Interop.TableView.TableView_CellPosition_columnSpan_set(swigCPtr, value);
778 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
782 uint ret = Interop.TableView.TableView_CellPosition_columnSpan_get(swigCPtr);
783 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
789 /// The span of a column.
791 /// <since_tizen> 5 </since_tizen>
792 public uint ColumnSpan
796 uint ret = Interop.TableView.TableView_CellPosition_columnSpan_get(swigCPtr);
797 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
802 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(CellPosition obj)
804 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
807 /// This will not be public opened.
808 [EditorBrowsable(EditorBrowsableState.Never)]
809 protected override void ReleaseSwigCPtr(System.Runtime.InteropServices.HandleRef swigCPtr)
811 Interop.TableView.delete_TableView_CellPosition(swigCPtr);
815 internal new class Property
817 internal static readonly int ROWS = Interop.TableView.TableView_Property_ROWS_get();
818 internal static readonly int COLUMNS = Interop.TableView.TableView_Property_COLUMNS_get();
819 internal static readonly int CELL_PADDING = Interop.TableView.TableView_Property_CELL_PADDING_get();
820 internal static readonly int LAYOUT_ROWS = Interop.TableView.TableView_Property_LAYOUT_ROWS_get();
821 internal static readonly int LAYOUT_COLUMNS = Interop.TableView.TableView_Property_LAYOUT_COLUMNS_get();
824 internal class ChildProperty
826 internal static readonly int CELL_INDEX = Interop.TableView.TableView_ChildProperty_CELL_INDEX_get();
827 internal static readonly int ROW_SPAN = Interop.TableView.TableView_ChildProperty_ROW_SPAN_get();
828 internal static readonly int COLUMN_SPAN = Interop.TableView.TableView_ChildProperty_COLUMN_SPAN_get();
829 internal static readonly int CELL_HORIZONTAL_ALIGNMENT = Interop.TableView.TableView_ChildProperty_CELL_HORIZONTAL_ALIGNMENT_get();
830 internal static readonly int CELL_VERTICAL_ALIGNMENT = Interop.TableView.TableView_ChildProperty_CELL_VERTICAL_ALIGNMENT_get();