Class LinearLayout
Definition
- Assembly:
- Tizen.NUI.dll
This class implements a linear box layout, automatically handling right to left or left to right direction change.
C#Copypublic class LinearLayout : LayoutGroup, IDisposable, ILayoutParent
- Inheritance
- Implements
- 
      System.IDisposable
Constructors
Declaration
C#Copypublic LinearLayout()
Properties
Declaration
C#Copypublic Size2D CellPadding { get; set; }
Property Value
| Type | Description | 
|---|---|
| Size2D | 
Declaration
C#Copypublic HorizontalAlignment HorizontalAlignment { get; set; }
Property Value
| Type | Description | 
|---|---|
| HorizontalAlignment | 
Declaration
C#Copy[Obsolete("This has been deprecated in API9 and will be removed in API11. Use HorizontalAlignment and VerticalAlignment properties instead.")] public LinearLayout.Alignment LinearAlignment { get; set; }
Property Value
| Type | Description | 
|---|---|
| LinearLayout.Alignment | 
Declaration
C#Copypublic LinearLayout.Orientation LinearOrientation { get; set; }
Property Value
| Type | Description | 
|---|---|
| LinearLayout.Orientation | 
Declaration
C#Copypublic VerticalAlignment VerticalAlignment { get; set; }
Property Value
| Type | Description | 
|---|---|
| VerticalAlignment | 
Methods
    
      View Source
    
    
     
  
  
  OnLayout(bool, LayoutLength, LayoutLength, LayoutLength, LayoutLength)
Layout should assign a size and position to each of its children.
Declaration
C#Copyprotected override void OnLayout(bool changed, LayoutLength left, LayoutLength top, LayoutLength right, LayoutLength bottom)
Parameters
| Type | Name | Description | 
|---|---|---|
| bool | changed | This is a new size or position for this layout. | 
| LayoutLength | left | Left position, relative to parent. | 
| LayoutLength | top | Top position, relative to parent. | 
| LayoutLength | right | Right position, relative to parent. | 
| LayoutLength | bottom | Bottom position, relative to parent. | 
Overrides
    
      View Source
    
    
     
  
  
  OnMeasure(MeasureSpecification, MeasureSpecification)
Measure the layout and its content to determine the measured width and the measured height.
Declaration
C#Copyprotected override void OnMeasure(MeasureSpecification widthMeasureSpec, MeasureSpecification heightMeasureSpec)
Parameters
| Type | Name | Description | 
|---|---|---|
| MeasureSpecification | widthMeasureSpec | horizontal space requirements as imposed by the parent. | 
| MeasureSpecification | heightMeasureSpec | vertical space requirements as imposed by the parent. | 
Overrides
Implements
      System.IDisposable