73b732193a6d5971311f0b52a4248245da288871
[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
30     public class TableView : View
31     {
32         private global::System.Runtime.InteropServices.HandleRef swigCPtr;
33
34         internal TableView(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.TableView_SWIGUpcast(cPtr), cMemoryOwn)
35         {
36             swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
37         }
38
39         internal static global::System.Runtime.InteropServices.HandleRef getCPtr(TableView obj)
40         {
41             return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
42         }
43
44         ~TableView()
45         {
46             DisposeQueue.Instance.Add(this);
47         }
48
49         public override void Dispose()
50         {
51             if (!Stage.IsInstalled())
52             {
53                 DisposeQueue.Instance.Add(this);
54                 return;
55             }
56
57             lock (this)
58             {
59                 if (swigCPtr.Handle != global::System.IntPtr.Zero)
60                 {
61                     if (swigCMemOwn)
62                     {
63                         swigCMemOwn = false;
64                         NDalicPINVOKE.delete_TableView(swigCPtr);
65                     }
66                     swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
67                 }
68                 global::System.GC.SuppressFinalize(this);
69                 base.Dispose();
70             }
71         }
72
73
74         internal class Property : global::System.IDisposable
75         {
76             private global::System.Runtime.InteropServices.HandleRef swigCPtr;
77             protected bool swigCMemOwn;
78
79             internal Property(global::System.IntPtr cPtr, bool cMemoryOwn)
80             {
81                 swigCMemOwn = cMemoryOwn;
82                 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
83             }
84
85             internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Property obj)
86             {
87                 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
88             }
89
90             ~Property()
91             {
92                 Dispose();
93             }
94
95             public virtual void Dispose()
96             {
97                 lock (this)
98                 {
99                     if (swigCPtr.Handle != global::System.IntPtr.Zero)
100                     {
101                         if (swigCMemOwn)
102                         {
103                             swigCMemOwn = false;
104                             NDalicPINVOKE.delete_TableView_Property(swigCPtr);
105                         }
106                         swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
107                     }
108                     global::System.GC.SuppressFinalize(this);
109                 }
110             }
111
112             public Property() : this(NDalicPINVOKE.new_TableView_Property(), true)
113             {
114                 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
115             }
116
117             internal static readonly int ROWS = NDalicPINVOKE.TableView_Property_ROWS_get();
118             internal static readonly int COLUMNS = NDalicPINVOKE.TableView_Property_COLUMNS_get();
119             internal static readonly int CELL_PADDING = NDalicPINVOKE.TableView_Property_CELL_PADDING_get();
120             internal static readonly int LAYOUT_ROWS = NDalicPINVOKE.TableView_Property_LAYOUT_ROWS_get();
121             internal static readonly int LAYOUT_COLUMNS = NDalicPINVOKE.TableView_Property_LAYOUT_COLUMNS_get();
122
123         }
124
125         internal class ChildProperty : global::System.IDisposable
126         {
127             private global::System.Runtime.InteropServices.HandleRef swigCPtr;
128             protected bool swigCMemOwn;
129
130             internal ChildProperty(global::System.IntPtr cPtr, bool cMemoryOwn)
131             {
132                 swigCMemOwn = cMemoryOwn;
133                 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
134             }
135
136             internal static global::System.Runtime.InteropServices.HandleRef getCPtr(ChildProperty obj)
137             {
138                 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
139             }
140
141             ~ChildProperty()
142             {
143                 Dispose();
144             }
145
146             public virtual void Dispose()
147             {
148                 lock (this)
149                 {
150                     if (swigCPtr.Handle != global::System.IntPtr.Zero)
151                     {
152                         if (swigCMemOwn)
153                         {
154                             swigCMemOwn = false;
155                             NDalicPINVOKE.delete_TableView_ChildProperty(swigCPtr);
156                         }
157                         swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
158                     }
159                     global::System.GC.SuppressFinalize(this);
160                 }
161             }
162
163             public ChildProperty() : this(NDalicPINVOKE.new_TableView_ChildProperty(), true)
164             {
165                 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
166             }
167
168             internal static readonly int CELL_INDEX = NDalicPINVOKE.TableView_ChildProperty_CELL_INDEX_get();
169             internal static readonly int ROW_SPAN = NDalicPINVOKE.TableView_ChildProperty_ROW_SPAN_get();
170             internal static readonly int COLUMN_SPAN = NDalicPINVOKE.TableView_ChildProperty_COLUMN_SPAN_get();
171             internal static readonly int CELL_HORIZONTAL_ALIGNMENT = NDalicPINVOKE.TableView_ChildProperty_CELL_HORIZONTAL_ALIGNMENT_get();
172             internal static readonly int CELL_VERTICAL_ALIGNMENT = NDalicPINVOKE.TableView_ChildProperty_CELL_VERTICAL_ALIGNMENT_get();
173
174         }
175
176         public class CellPosition : global::System.IDisposable
177         {
178             private global::System.Runtime.InteropServices.HandleRef swigCPtr;
179             protected bool swigCMemOwn;
180
181             internal CellPosition(global::System.IntPtr cPtr, bool cMemoryOwn)
182             {
183                 swigCMemOwn = cMemoryOwn;
184                 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
185             }
186
187             internal static global::System.Runtime.InteropServices.HandleRef getCPtr(CellPosition obj)
188             {
189                 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
190             }
191
192             ~CellPosition()
193             {
194                 Dispose();
195             }
196
197             public virtual void Dispose()
198             {
199                 lock (this)
200                 {
201                     if (swigCPtr.Handle != global::System.IntPtr.Zero)
202                     {
203                         if (swigCMemOwn)
204                         {
205                             swigCMemOwn = false;
206                             NDalicPINVOKE.delete_TableView_CellPosition(swigCPtr);
207                         }
208                         swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
209                     }
210                     global::System.GC.SuppressFinalize(this);
211                 }
212             }
213
214             public CellPosition(uint rowIndex, uint columnIndex, uint rowSpan, uint columnSpan) : this(NDalicPINVOKE.new_TableView_CellPosition__SWIG_0(rowIndex, columnIndex, rowSpan, columnSpan), true)
215             {
216                 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
217             }
218
219             public CellPosition(uint rowIndex, uint columnIndex, uint rowSpan) : this(NDalicPINVOKE.new_TableView_CellPosition__SWIG_1(rowIndex, columnIndex, rowSpan), true)
220             {
221                 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
222             }
223
224             public CellPosition(uint rowIndex, uint columnIndex) : this(NDalicPINVOKE.new_TableView_CellPosition__SWIG_2(rowIndex, columnIndex), true)
225             {
226                 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
227             }
228
229             public CellPosition(uint rowIndex) : this(NDalicPINVOKE.new_TableView_CellPosition__SWIG_3(rowIndex), true)
230             {
231                 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
232             }
233
234             public CellPosition() : this(NDalicPINVOKE.new_TableView_CellPosition__SWIG_4(), true)
235             {
236                 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
237             }
238
239             public uint rowIndex
240             {
241                 set
242                 {
243                     NDalicPINVOKE.TableView_CellPosition_rowIndex_set(swigCPtr, value);
244                     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
245                 }
246                 get
247                 {
248                     uint ret = NDalicPINVOKE.TableView_CellPosition_rowIndex_get(swigCPtr);
249                     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
250                     return ret;
251                 }
252             }
253
254             public uint columnIndex
255             {
256                 set
257                 {
258                     NDalicPINVOKE.TableView_CellPosition_columnIndex_set(swigCPtr, value);
259                     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
260                 }
261                 get
262                 {
263                     uint ret = NDalicPINVOKE.TableView_CellPosition_columnIndex_get(swigCPtr);
264                     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
265                     return ret;
266                 }
267             }
268
269             public uint rowSpan
270             {
271                 set
272                 {
273                     NDalicPINVOKE.TableView_CellPosition_rowSpan_set(swigCPtr, value);
274                     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
275                 }
276                 get
277                 {
278                     uint ret = NDalicPINVOKE.TableView_CellPosition_rowSpan_get(swigCPtr);
279                     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
280                     return ret;
281                 }
282             }
283
284             public uint columnSpan
285             {
286                 set
287                 {
288                     NDalicPINVOKE.TableView_CellPosition_columnSpan_set(swigCPtr, value);
289                     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
290                 }
291                 get
292                 {
293                     uint ret = NDalicPINVOKE.TableView_CellPosition_columnSpan_get(swigCPtr);
294                     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
295                     return ret;
296                 }
297             }
298
299         }
300
301         public TableView(uint initialRows, uint initialColumns) : this(NDalicPINVOKE.TableView_New(initialRows, initialColumns), true)
302         {
303             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
304
305         }
306         public TableView(TableView handle) : this(NDalicPINVOKE.new_TableView__SWIG_1(TableView.getCPtr(handle)), true)
307         {
308             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
309         }
310
311         public TableView Assign(TableView handle)
312         {
313             TableView ret = new TableView(NDalicPINVOKE.TableView_Assign(swigCPtr, TableView.getCPtr(handle)), false);
314             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
315             return ret;
316         }
317
318         public new static TableView DownCast(BaseHandle handle)
319         {
320             TableView ret = new TableView(NDalicPINVOKE.TableView_DownCast(BaseHandle.getCPtr(handle)), true);
321             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
322             return ret;
323         }
324
325         public bool AddChild(Actor child, TableView.CellPosition position)
326         {
327             bool ret = NDalicPINVOKE.TableView_AddChild(swigCPtr, Actor.getCPtr(child), TableView.CellPosition.getCPtr(position));
328             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
329             return ret;
330         }
331
332         public Actor GetChildAt(TableView.CellPosition position)
333         {
334             Actor ret = new Actor(NDalicPINVOKE.TableView_GetChildAt(swigCPtr, TableView.CellPosition.getCPtr(position)), true);
335             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
336             return ret;
337         }
338
339         public Actor RemoveChildAt(TableView.CellPosition position)
340         {
341             Actor ret = new Actor(NDalicPINVOKE.TableView_RemoveChildAt(swigCPtr, TableView.CellPosition.getCPtr(position)), true);
342             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
343             return ret;
344         }
345
346         public bool FindChildPosition(Actor child, TableView.CellPosition position)
347         {
348             bool ret = NDalicPINVOKE.TableView_FindChildPosition(swigCPtr, Actor.getCPtr(child), TableView.CellPosition.getCPtr(position));
349             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
350             return ret;
351         }
352
353         public void InsertRow(uint rowIndex)
354         {
355             NDalicPINVOKE.TableView_InsertRow(swigCPtr, rowIndex);
356             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
357         }
358
359         public void DeleteRow(uint rowIndex)
360         {
361             NDalicPINVOKE.TableView_DeleteRow__SWIG_0(swigCPtr, rowIndex);
362             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
363         }
364
365         internal void DeleteRow(uint rowIndex, ActorContainer removed)
366         {
367             NDalicPINVOKE.TableView_DeleteRow__SWIG_1(swigCPtr, rowIndex, ActorContainer.getCPtr(removed));
368             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
369         }
370
371         public void InsertColumn(uint columnIndex)
372         {
373             NDalicPINVOKE.TableView_InsertColumn(swigCPtr, columnIndex);
374             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
375         }
376
377         public void DeleteColumn(uint columnIndex)
378         {
379             NDalicPINVOKE.TableView_DeleteColumn__SWIG_0(swigCPtr, columnIndex);
380             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
381         }
382
383         internal void DeleteColumn(uint columnIndex, ActorContainer removed)
384         {
385             NDalicPINVOKE.TableView_DeleteColumn__SWIG_1(swigCPtr, columnIndex, ActorContainer.getCPtr(removed));
386             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
387         }
388
389         public void Resize(uint rows, uint columns)
390         {
391             NDalicPINVOKE.TableView_Resize__SWIG_0(swigCPtr, rows, columns);
392             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
393         }
394
395         internal void Resize(uint rows, uint columns, ActorContainer removed)
396         {
397             NDalicPINVOKE.TableView_Resize__SWIG_1(swigCPtr, rows, columns, ActorContainer.getCPtr(removed));
398             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
399         }
400
401         public void SetCellPadding(Size2D padding)
402         {
403             NDalicPINVOKE.TableView_SetCellPadding(swigCPtr, Size2D.getCPtr(padding));
404             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
405         }
406
407         public Vector2 GetCellPadding()
408         {
409             Vector2 ret = new Vector2(NDalicPINVOKE.TableView_GetCellPadding(swigCPtr), true);
410             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
411             return ret;
412         }
413
414         public void SetFitHeight(uint rowIndex)
415         {
416             NDalicPINVOKE.TableView_SetFitHeight(swigCPtr, rowIndex);
417             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
418         }
419
420         public bool IsFitHeight(uint rowIndex)
421         {
422             bool ret = NDalicPINVOKE.TableView_IsFitHeight(swigCPtr, rowIndex);
423             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
424             return ret;
425         }
426
427         public void SetFitWidth(uint columnIndex)
428         {
429             NDalicPINVOKE.TableView_SetFitWidth(swigCPtr, columnIndex);
430             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
431         }
432
433         public bool IsFitWidth(uint columnIndex)
434         {
435             bool ret = NDalicPINVOKE.TableView_IsFitWidth(swigCPtr, columnIndex);
436             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
437             return ret;
438         }
439
440         public void SetFixedHeight(uint rowIndex, float height)
441         {
442             NDalicPINVOKE.TableView_SetFixedHeight(swigCPtr, rowIndex, height);
443             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
444         }
445
446         public float GetFixedHeight(uint rowIndex)
447         {
448             float ret = NDalicPINVOKE.TableView_GetFixedHeight(swigCPtr, rowIndex);
449             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
450             return ret;
451         }
452
453         public void SetRelativeHeight(uint rowIndex, float heightPercentage)
454         {
455             NDalicPINVOKE.TableView_SetRelativeHeight(swigCPtr, rowIndex, heightPercentage);
456             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
457         }
458
459         public float GetRelativeHeight(uint rowIndex)
460         {
461             float ret = NDalicPINVOKE.TableView_GetRelativeHeight(swigCPtr, rowIndex);
462             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
463             return ret;
464         }
465
466         public void SetFixedWidth(uint columnIndex, float width)
467         {
468             NDalicPINVOKE.TableView_SetFixedWidth(swigCPtr, columnIndex, width);
469             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
470         }
471
472         public float GetFixedWidth(uint columnIndex)
473         {
474             float ret = NDalicPINVOKE.TableView_GetFixedWidth(swigCPtr, columnIndex);
475             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
476             return ret;
477         }
478
479         public void SetRelativeWidth(uint columnIndex, float widthPercentage)
480         {
481             NDalicPINVOKE.TableView_SetRelativeWidth(swigCPtr, columnIndex, widthPercentage);
482             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
483         }
484
485         public float GetRelativeWidth(uint columnIndex)
486         {
487             float ret = NDalicPINVOKE.TableView_GetRelativeWidth(swigCPtr, columnIndex);
488             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
489             return ret;
490         }
491
492         public uint GetRows()
493         {
494             uint ret = NDalicPINVOKE.TableView_GetRows(swigCPtr);
495             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
496             return ret;
497         }
498
499         public uint GetColumns()
500         {
501             uint ret = NDalicPINVOKE.TableView_GetColumns(swigCPtr);
502             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
503             return ret;
504         }
505
506         public void SetCellAlignment(TableView.CellPosition position, HorizontalAlignmentType horizontal, VerticalAlignmentType vertical)
507         {
508             NDalicPINVOKE.TableView_SetCellAlignment(swigCPtr, TableView.CellPosition.getCPtr(position), (int)horizontal, (int)vertical);
509             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
510         }
511
512         internal enum PropertyRange
513         {
514             PROPERTY_START_INDEX = PropertyRanges.PROPERTY_REGISTRATION_START_INDEX,
515             PROPERTY_END_INDEX = View.PropertyRange.PROPERTY_START_INDEX + 1000,
516             CHILD_PROPERTY_START_INDEX = PropertyRanges.CHILD_PROPERTY_REGISTRATION_START_INDEX,
517             CHILD_PROPERTY_END_INDEX = PropertyRanges.CHILD_PROPERTY_REGISTRATION_START_INDEX + 1000
518         }
519
520         public enum LayoutPolicy
521         {
522             Fixed,
523             Relative,
524             Fill,
525             Fit
526         }
527
528         public int Rows
529         {
530             get
531             {
532                 int temp = 0;
533                 GetProperty(TableView.Property.ROWS).Get(ref temp);
534                 return temp;
535             }
536             set
537             {
538                 SetProperty(TableView.Property.ROWS, new Tizen.NUI.PropertyValue(value));
539             }
540         }
541         public int Columns
542         {
543             get
544             {
545                 int temp = 0;
546                 GetProperty(TableView.Property.COLUMNS).Get(ref temp);
547                 return temp;
548             }
549             set
550             {
551                 SetProperty(TableView.Property.COLUMNS, new Tizen.NUI.PropertyValue(value));
552             }
553         }
554         public Vector2 CellPadding
555         {
556             get
557             {
558                 Vector2 temp = new Vector2(0.0f, 0.0f);
559                 GetProperty(TableView.Property.CELL_PADDING).Get(temp);
560                 return temp;
561             }
562             set
563             {
564                 SetProperty(TableView.Property.CELL_PADDING, new Tizen.NUI.PropertyValue(value));
565             }
566         }
567         public PropertyMap LayoutRows
568         {
569             get
570             {
571                 PropertyMap temp = new PropertyMap();
572                 GetProperty(TableView.Property.LAYOUT_ROWS).Get(temp);
573                 return temp;
574             }
575             set
576             {
577                 SetProperty(TableView.Property.LAYOUT_ROWS, new Tizen.NUI.PropertyValue(value));
578             }
579         }
580         public PropertyMap LayoutColumns
581         {
582             get
583             {
584                 PropertyMap temp = new PropertyMap();
585                 GetProperty(TableView.Property.LAYOUT_COLUMNS).Get(temp);
586                 return temp;
587             }
588             set
589             {
590                 SetProperty(TableView.Property.LAYOUT_COLUMNS, new Tizen.NUI.PropertyValue(value));
591             }
592         }
593
594     }
595     public enum HorizontalAlignmentType
596     {
597         Left,
598         Center,
599         Right
600     }
601     public enum VerticalAlignmentType
602     {
603         Top,
604         Center,
605         Bottom
606     }
607
608 }