Add comments for API reference of part 4
[platform/core/csapi/tizenfx.git] / src / Tizen.NUI / src / public / TableView.cs
1 /** Copyright (c) 2017 Samsung Electronics Co., Ltd.
2 *
3 * Licensed under the Apache License, Version 2.0 (the "License");
4 * you may not use this file except in compliance with the License.
5 * You may obtain a copy of the License at
6 *
7 * http://www.apache.org/licenses/LICENSE-2.0
8 *
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS,
11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 * See the License for the specific language governing permissions and
13 * limitations under the License.
14 *
15 */
16 // This File has been auto-generated by SWIG and then modified using DALi Ruby Scripts
17 //------------------------------------------------------------------------------
18 // <auto-generated />
19 //
20 // This file was automatically generated by SWIG (http://www.swig.org).
21 // Version 3.0.9
22 //
23 // Do not make changes to this file unless you know what you are doing--modify
24 // the SWIG interface file instead.
25 //------------------------------------------------------------------------------
26
27 namespace Tizen.NUI
28 {
29     /// <summary>
30     /// TableView is a layout container for aligning child actors in a grid like layout.
31     /// TableView constrains the x and y position and width and height of the child actors.
32     /// z position and depth are left intact so that 3D model actors can also be laid out
33     /// in a grid without loosing their depth scaling.
34     /// </summary>
35     public class TableView : View
36     {
37         private global::System.Runtime.InteropServices.HandleRef swigCPtr;
38
39         internal TableView(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.TableView_SWIGUpcast(cPtr), cMemoryOwn)
40         {
41             swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
42         }
43
44         internal static global::System.Runtime.InteropServices.HandleRef getCPtr(TableView obj)
45         {
46             return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
47         }
48
49         ~TableView()
50         {
51             DisposeQueue.Instance.Add(this);
52         }
53
54         /// <summary>
55         /// Dispose.
56         /// <summary>
57         public override void Dispose()
58         {
59             if (!Stage.IsInstalled())
60             {
61                 DisposeQueue.Instance.Add(this);
62                 return;
63             }
64
65             lock (this)
66             {
67                 if (swigCPtr.Handle != global::System.IntPtr.Zero)
68                 {
69                     if (swigCMemOwn)
70                     {
71                         swigCMemOwn = false;
72                         NDalicPINVOKE.delete_TableView(swigCPtr);
73                     }
74                     swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
75                 }
76                 global::System.GC.SuppressFinalize(this);
77                 base.Dispose();
78             }
79         }
80
81
82         internal class Property : global::System.IDisposable
83         {
84             private global::System.Runtime.InteropServices.HandleRef swigCPtr;
85             protected bool swigCMemOwn;
86
87             internal Property(global::System.IntPtr cPtr, bool cMemoryOwn)
88             {
89                 swigCMemOwn = cMemoryOwn;
90                 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
91             }
92
93             internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Property obj)
94             {
95                 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
96             }
97
98             ~Property()
99             {
100                 Dispose();
101             }
102
103             public virtual void Dispose()
104             {
105                 lock (this)
106                 {
107                     if (swigCPtr.Handle != global::System.IntPtr.Zero)
108                     {
109                         if (swigCMemOwn)
110                         {
111                             swigCMemOwn = false;
112                             NDalicPINVOKE.delete_TableView_Property(swigCPtr);
113                         }
114                         swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
115                     }
116                     global::System.GC.SuppressFinalize(this);
117                 }
118             }
119
120             public Property() : this(NDalicPINVOKE.new_TableView_Property(), true)
121             {
122                 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
123             }
124
125             internal static readonly int ROWS = NDalicPINVOKE.TableView_Property_ROWS_get();
126             internal static readonly int COLUMNS = NDalicPINVOKE.TableView_Property_COLUMNS_get();
127             internal static readonly int CELL_PADDING = NDalicPINVOKE.TableView_Property_CELL_PADDING_get();
128             internal static readonly int LAYOUT_ROWS = NDalicPINVOKE.TableView_Property_LAYOUT_ROWS_get();
129             internal static readonly int LAYOUT_COLUMNS = NDalicPINVOKE.TableView_Property_LAYOUT_COLUMNS_get();
130
131         }
132
133         internal class ChildProperty : global::System.IDisposable
134         {
135             private global::System.Runtime.InteropServices.HandleRef swigCPtr;
136             protected bool swigCMemOwn;
137
138             internal ChildProperty(global::System.IntPtr cPtr, bool cMemoryOwn)
139             {
140                 swigCMemOwn = cMemoryOwn;
141                 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
142             }
143
144             internal static global::System.Runtime.InteropServices.HandleRef getCPtr(ChildProperty obj)
145             {
146                 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
147             }
148
149             ~ChildProperty()
150             {
151                 Dispose();
152             }
153
154             public virtual void Dispose()
155             {
156                 lock (this)
157                 {
158                     if (swigCPtr.Handle != global::System.IntPtr.Zero)
159                     {
160                         if (swigCMemOwn)
161                         {
162                             swigCMemOwn = false;
163                             NDalicPINVOKE.delete_TableView_ChildProperty(swigCPtr);
164                         }
165                         swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
166                     }
167                     global::System.GC.SuppressFinalize(this);
168                 }
169             }
170
171             public ChildProperty() : this(NDalicPINVOKE.new_TableView_ChildProperty(), true)
172             {
173                 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
174             }
175
176             internal static readonly int CELL_INDEX = NDalicPINVOKE.TableView_ChildProperty_CELL_INDEX_get();
177             internal static readonly int ROW_SPAN = NDalicPINVOKE.TableView_ChildProperty_ROW_SPAN_get();
178             internal static readonly int COLUMN_SPAN = NDalicPINVOKE.TableView_ChildProperty_COLUMN_SPAN_get();
179             internal static readonly int CELL_HORIZONTAL_ALIGNMENT = NDalicPINVOKE.TableView_ChildProperty_CELL_HORIZONTAL_ALIGNMENT_get();
180             internal static readonly int CELL_VERTICAL_ALIGNMENT = NDalicPINVOKE.TableView_ChildProperty_CELL_VERTICAL_ALIGNMENT_get();
181
182         }
183
184         /// <summary>
185         /// Class to specify layout position for child actor.
186         /// </summary>
187         public class CellPosition : global::System.IDisposable
188         {
189             private global::System.Runtime.InteropServices.HandleRef swigCPtr;
190             protected bool swigCMemOwn;
191
192             internal CellPosition(global::System.IntPtr cPtr, bool cMemoryOwn)
193             {
194                 swigCMemOwn = cMemoryOwn;
195                 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
196             }
197
198             internal static global::System.Runtime.InteropServices.HandleRef getCPtr(CellPosition obj)
199             {
200                 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
201             }
202
203             ~CellPosition()
204             {
205                 Dispose();
206             }
207
208             /// <summary>
209             /// Dispose
210             /// </summary>
211             public virtual void Dispose()
212             {
213                 lock (this)
214                 {
215                     if (swigCPtr.Handle != global::System.IntPtr.Zero)
216                     {
217                         if (swigCMemOwn)
218                         {
219                             swigCMemOwn = false;
220                             NDalicPINVOKE.delete_TableView_CellPosition(swigCPtr);
221                         }
222                         swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
223                     }
224                     global::System.GC.SuppressFinalize(this);
225                 }
226             }
227
228             /// <summary>
229             /// Constructor.
230             /// </summary>
231             public CellPosition(uint rowIndex, uint columnIndex, uint rowSpan, uint columnSpan) : this(NDalicPINVOKE.new_TableView_CellPosition__SWIG_0(rowIndex, columnIndex, rowSpan, columnSpan), true)
232             {
233                 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
234             }
235
236             /// <summary>
237             /// Constructor.
238             /// </summary>
239             public CellPosition(uint rowIndex, uint columnIndex, uint rowSpan) : this(NDalicPINVOKE.new_TableView_CellPosition__SWIG_1(rowIndex, columnIndex, rowSpan), true)
240             {
241                 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
242             }
243
244             /// <summary>
245             /// Constructor.
246             /// </summary>
247             public CellPosition(uint rowIndex, uint columnIndex) : this(NDalicPINVOKE.new_TableView_CellPosition__SWIG_2(rowIndex, columnIndex), true)
248             {
249                 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
250             }
251
252             /// <summary>
253             /// Constructor.
254             /// </summary>
255             public CellPosition(uint rowIndex) : this(NDalicPINVOKE.new_TableView_CellPosition__SWIG_3(rowIndex), true)
256             {
257                 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
258             }
259
260             /// <summary>
261             /// Constructor to initialise values to defaults for convenience.
262             /// </summary>
263             public CellPosition() : this(NDalicPINVOKE.new_TableView_CellPosition__SWIG_4(), true)
264             {
265                 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
266             }
267
268             /// <summary>
269             /// Row index.
270             /// </summary>
271             public uint rowIndex
272             {
273                 set
274                 {
275                     NDalicPINVOKE.TableView_CellPosition_rowIndex_set(swigCPtr, value);
276                     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
277                 }
278                 get
279                 {
280                     uint ret = NDalicPINVOKE.TableView_CellPosition_rowIndex_get(swigCPtr);
281                     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
282                     return ret;
283                 }
284             }
285
286             /// <summary>
287             /// Column index.
288             /// </summary>
289             public uint columnIndex
290             {
291                 set
292                 {
293                     NDalicPINVOKE.TableView_CellPosition_columnIndex_set(swigCPtr, value);
294                     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
295                 }
296                 get
297                 {
298                     uint ret = NDalicPINVOKE.TableView_CellPosition_columnIndex_get(swigCPtr);
299                     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
300                     return ret;
301                 }
302             }
303
304             /// <summary>
305             /// Row span.
306             /// </summary>
307             public uint rowSpan
308             {
309                 set
310                 {
311                     NDalicPINVOKE.TableView_CellPosition_rowSpan_set(swigCPtr, value);
312                     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
313                 }
314                 get
315                 {
316                     uint ret = NDalicPINVOKE.TableView_CellPosition_rowSpan_get(swigCPtr);
317                     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
318                     return ret;
319                 }
320             }
321
322             /// <summary>
323             /// Column span.
324             /// </summary>
325             public uint columnSpan
326             {
327                 set
328                 {
329                     NDalicPINVOKE.TableView_CellPosition_columnSpan_set(swigCPtr, value);
330                     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
331                 }
332                 get
333                 {
334                     uint ret = NDalicPINVOKE.TableView_CellPosition_columnSpan_get(swigCPtr);
335                     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
336                     return ret;
337                 }
338             }
339
340         }
341
342         /// <summary>
343         /// Creates the TableView control.
344         /// </summary>
345         public TableView(uint initialRows, uint initialColumns) : this(NDalicPINVOKE.TableView_New(initialRows, initialColumns), true)
346         {
347             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
348
349         }
350
351         /// <summary>
352         /// Copy constructor. Creates another handle that points to the same real object.
353         /// </summary>
354         public TableView(TableView handle) : this(NDalicPINVOKE.new_TableView__SWIG_1(TableView.getCPtr(handle)), true)
355         {
356             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
357         }
358
359         /// <summary>
360         /// Changes this handle to point to another real object.
361         /// </summary>
362         public TableView Assign(TableView handle)
363         {
364             TableView ret = new TableView(NDalicPINVOKE.TableView_Assign(swigCPtr, TableView.getCPtr(handle)), false);
365             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
366             return ret;
367         }
368
369         /// <summary>
370         /// Downcasts a handle to TableView handle.
371         /// </summary>
372         public new static TableView DownCast(BaseHandle handle)
373         {
374             TableView ret = new TableView(NDalicPINVOKE.TableView_DownCast(BaseHandle.getCPtr(handle)), true);
375             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
376             return ret;
377         }
378
379         /// <summary>
380         /// Adds a child to the table.
381         /// </summary>
382         public bool AddChild(Actor child, TableView.CellPosition position)
383         {
384             bool ret = NDalicPINVOKE.TableView_AddChild(swigCPtr, Actor.getCPtr(child), TableView.CellPosition.getCPtr(position));
385             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
386             return ret;
387         }
388
389         /// <summary>
390         /// Returns a child from the given layout position.
391         /// </summary>
392         public Actor GetChildAt(TableView.CellPosition position)
393         {
394             Actor ret = new Actor(NDalicPINVOKE.TableView_GetChildAt(swigCPtr, TableView.CellPosition.getCPtr(position)), true);
395             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
396             return ret;
397         }
398
399         /// <summary>
400         /// Removes a child from the given layout position.
401         /// </summary>
402         public Actor RemoveChildAt(TableView.CellPosition position)
403         {
404             Actor ret = new Actor(NDalicPINVOKE.TableView_RemoveChildAt(swigCPtr, TableView.CellPosition.getCPtr(position)), true);
405             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
406             return ret;
407         }
408
409         /// <summary>
410         /// Finds the child's layout position.
411         /// </summary>
412         public bool FindChildPosition(Actor child, TableView.CellPosition position)
413         {
414             bool ret = NDalicPINVOKE.TableView_FindChildPosition(swigCPtr, Actor.getCPtr(child), TableView.CellPosition.getCPtr(position));
415             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
416             return ret;
417         }
418
419         /// <summary>
420         /// Inserts a new row to given index.
421         /// </summary>
422         public void InsertRow(uint rowIndex)
423         {
424             NDalicPINVOKE.TableView_InsertRow(swigCPtr, rowIndex);
425             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
426         }
427
428         /// <summary>
429         /// Deletes a row from the given index.
430         /// </summary>
431         public void DeleteRow(uint rowIndex)
432         {
433             NDalicPINVOKE.TableView_DeleteRow__SWIG_0(swigCPtr, rowIndex);
434             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
435         }
436
437         internal void DeleteRow(uint rowIndex, ActorContainer removed)
438         {
439             NDalicPINVOKE.TableView_DeleteRow__SWIG_1(swigCPtr, rowIndex, ActorContainer.getCPtr(removed));
440             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
441         }
442
443         /// <summary>
444         /// Inserts a new column to the given index.
445         /// </summary>
446         public void InsertColumn(uint columnIndex)
447         {
448             NDalicPINVOKE.TableView_InsertColumn(swigCPtr, columnIndex);
449             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
450         }
451
452         /// <summary>
453         /// Deletes a column from the given index.
454         /// </summary>
455         public void DeleteColumn(uint columnIndex)
456         {
457             NDalicPINVOKE.TableView_DeleteColumn__SWIG_0(swigCPtr, columnIndex);
458             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
459         }
460
461         internal void DeleteColumn(uint columnIndex, ActorContainer removed)
462         {
463             NDalicPINVOKE.TableView_DeleteColumn__SWIG_1(swigCPtr, columnIndex, ActorContainer.getCPtr(removed));
464             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
465         }
466
467         /// <summary>
468         /// Resizes the TableView.
469         /// </summary>
470         public void Resize(uint rows, uint columns)
471         {
472             NDalicPINVOKE.TableView_Resize__SWIG_0(swigCPtr, rows, columns);
473             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
474         }
475
476         internal void Resize(uint rows, uint columns, ActorContainer removed)
477         {
478             NDalicPINVOKE.TableView_Resize__SWIG_1(swigCPtr, rows, columns, ActorContainer.getCPtr(removed));
479             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
480         }
481
482         /// <summary>
483         /// Sets horizontal and vertical padding between cells.
484         /// </summary>
485         public void SetCellPadding(Size2D padding)
486         {
487             NDalicPINVOKE.TableView_SetCellPadding(swigCPtr, Size2D.getCPtr(padding));
488             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
489         }
490
491         /// <summary>
492         /// Gets the current padding as width and height.
493         /// </summary>
494         public Vector2 GetCellPadding()
495         {
496             Vector2 ret = new Vector2(NDalicPINVOKE.TableView_GetCellPadding(swigCPtr), true);
497             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
498             return ret;
499         }
500
501         /// <summary>
502         /// Specifies this row as fitting its height to its children.
503         /// </summary>
504         public void SetFitHeight(uint rowIndex)
505         {
506             NDalicPINVOKE.TableView_SetFitHeight(swigCPtr, rowIndex);
507             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
508         }
509
510         /// <summary>
511         /// Checks if the row is a fit row.
512         /// </summary>
513         public bool IsFitHeight(uint rowIndex)
514         {
515             bool ret = NDalicPINVOKE.TableView_IsFitHeight(swigCPtr, rowIndex);
516             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
517             return ret;
518         }
519
520         /// <summary>
521         /// Specifies this column as fitting its width to its children.
522         /// </summary>
523         public void SetFitWidth(uint columnIndex)
524         {
525             NDalicPINVOKE.TableView_SetFitWidth(swigCPtr, columnIndex);
526             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
527         }
528
529         /// <summary>
530         /// Checks if the column is a fit column.
531         /// </summary>
532         public bool IsFitWidth(uint columnIndex)
533         {
534             bool ret = NDalicPINVOKE.TableView_IsFitWidth(swigCPtr, columnIndex);
535             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
536             return ret;
537         }
538
539         /// <summary>
540         /// Sets a row to have fixed height.
541         /// </summary>
542         public void SetFixedHeight(uint rowIndex, float height)
543         {
544             NDalicPINVOKE.TableView_SetFixedHeight(swigCPtr, rowIndex, height);
545             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
546         }
547
548         /// <summary>
549         /// Gets a row's fixed height.
550         /// </summary>
551         public float GetFixedHeight(uint rowIndex)
552         {
553             float ret = NDalicPINVOKE.TableView_GetFixedHeight(swigCPtr, rowIndex);
554             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
555             return ret;
556         }
557
558         /// <summary>
559         /// Sets a row to have relative height. Relative height means percentage of
560         /// the remainder of the table height after subtracting Padding and Fixed height rows.
561         /// Setting a relative height of 0 has no effect.
562         /// </summary>
563         public void SetRelativeHeight(uint rowIndex, float heightPercentage)
564         {
565             NDalicPINVOKE.TableView_SetRelativeHeight(swigCPtr, rowIndex, heightPercentage);
566             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
567         }
568
569         /// <summary>
570         /// Gets a row's relative height.
571         /// </summary>
572         public float GetRelativeHeight(uint rowIndex)
573         {
574             float ret = NDalicPINVOKE.TableView_GetRelativeHeight(swigCPtr, rowIndex);
575             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
576             return ret;
577         }
578
579         /// <summary>
580         /// Sets a column to have fixed width.
581         /// </summary>
582         public void SetFixedWidth(uint columnIndex, float width)
583         {
584             NDalicPINVOKE.TableView_SetFixedWidth(swigCPtr, columnIndex, width);
585             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
586         }
587
588         /// <summary>
589         /// Gets a column's fixed width.
590         /// </summary>
591         public float GetFixedWidth(uint columnIndex)
592         {
593             float ret = NDalicPINVOKE.TableView_GetFixedWidth(swigCPtr, columnIndex);
594             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
595             return ret;
596         }
597
598         /// <summary>
599         /// Sets a column to have relative width. Relative width means percentage of
600         /// the remainder of table width after subtracting Padding and Fixed width columns.
601         /// Setting a relative width of 0 has no effect.
602         /// </summary>
603         public void SetRelativeWidth(uint columnIndex, float widthPercentage)
604         {
605             NDalicPINVOKE.TableView_SetRelativeWidth(swigCPtr, columnIndex, widthPercentage);
606             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
607         }
608
609         /// <summary>
610         /// Gets a column's relative width.
611         /// </summary>
612         public float GetRelativeWidth(uint columnIndex)
613         {
614             float ret = NDalicPINVOKE.TableView_GetRelativeWidth(swigCPtr, columnIndex);
615             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
616             return ret;
617         }
618
619         /// <summary>
620         /// Gets the amount of rows in the table.
621         /// </summary>
622         public uint GetRows()
623         {
624             uint ret = NDalicPINVOKE.TableView_GetRows(swigCPtr);
625             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
626             return ret;
627         }
628
629         /// <summary>
630         /// Gets the amount of columns in the table.
631         /// </summary>
632         public uint GetColumns()
633         {
634             uint ret = NDalicPINVOKE.TableView_GetColumns(swigCPtr);
635             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
636             return ret;
637         }
638
639         /// <summary>
640         /// Sets the alignment on a cell.
641         /// </summary>
642         public void SetCellAlignment(TableView.CellPosition position, HorizontalAlignmentType horizontal, VerticalAlignmentType vertical)
643         {
644             NDalicPINVOKE.TableView_SetCellAlignment(swigCPtr, TableView.CellPosition.getCPtr(position), (int)horizontal, (int)vertical);
645             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
646         }
647
648         internal enum PropertyRange
649         {
650             PROPERTY_START_INDEX = PropertyRanges.PROPERTY_REGISTRATION_START_INDEX,
651             PROPERTY_END_INDEX = View.PropertyRange.PROPERTY_START_INDEX + 1000,
652             CHILD_PROPERTY_START_INDEX = PropertyRanges.CHILD_PROPERTY_REGISTRATION_START_INDEX,
653             CHILD_PROPERTY_END_INDEX = PropertyRanges.CHILD_PROPERTY_REGISTRATION_START_INDEX + 1000
654         }
655
656         /// <summary>
657         /// Layout policy.
658         /// </summary>
659         public enum LayoutPolicy
660         {
661             Fixed,
662             Relative,
663             Fill,
664             Fit
665         }
666
667         /// <summary>
668         /// Rows property.
669         /// </summary>
670         public int Rows
671         {
672             get
673             {
674                 int temp = 0;
675                 GetProperty(TableView.Property.ROWS).Get(ref temp);
676                 return temp;
677             }
678             set
679             {
680                 SetProperty(TableView.Property.ROWS, new Tizen.NUI.PropertyValue(value));
681             }
682         }
683
684         /// <summary>
685         /// Columns property.
686         /// </summary>
687         public int Columns
688         {
689             get
690             {
691                 int temp = 0;
692                 GetProperty(TableView.Property.COLUMNS).Get(ref temp);
693                 return temp;
694             }
695             set
696             {
697                 SetProperty(TableView.Property.COLUMNS, new Tizen.NUI.PropertyValue(value));
698             }
699         }
700
701         /// <summary>
702         /// Cell padding property.
703         /// </summary>
704         public Vector2 CellPadding
705         {
706             get
707             {
708                 Vector2 temp = new Vector2(0.0f, 0.0f);
709                 GetProperty(TableView.Property.CELL_PADDING).Get(temp);
710                 return temp;
711             }
712             set
713             {
714                 SetProperty(TableView.Property.CELL_PADDING, new Tizen.NUI.PropertyValue(value));
715             }
716         }
717
718         /// <summary>
719         /// Layout rows property.
720         /// </summary>
721         public PropertyMap LayoutRows
722         {
723             get
724             {
725                 PropertyMap temp = new PropertyMap();
726                 GetProperty(TableView.Property.LAYOUT_ROWS).Get(temp);
727                 return temp;
728             }
729             set
730             {
731                 SetProperty(TableView.Property.LAYOUT_ROWS, new Tizen.NUI.PropertyValue(value));
732             }
733         }
734
735         /// <summary>
736         /// Layout columns property.
737         /// </summary>
738         public PropertyMap LayoutColumns
739         {
740             get
741             {
742                 PropertyMap temp = new PropertyMap();
743                 GetProperty(TableView.Property.LAYOUT_COLUMNS).Get(temp);
744                 return temp;
745             }
746             set
747             {
748                 SetProperty(TableView.Property.LAYOUT_COLUMNS, new Tizen.NUI.PropertyValue(value));
749             }
750         }
751
752     }
753
754     /// <summary>
755     /// HorizontalAlignmentType.
756     /// </summary>
757     public enum HorizontalAlignmentType
758     {
759         Left,
760         Center,
761         Right
762     }
763
764     /// <summary>
765     /// VerticalAlignmentType.
766     /// </summary>
767     public enum VerticalAlignmentType
768     {
769         Top,
770         Center,
771         Bottom
772     }
773
774 }