Show / Hide Table of Contents

    Class LinearLayout

    Definition

    Namespace:
    Tizen.NUI
    Assembly:
    Tizen.NUI.dll

    [Draft] This class implements a linear box layout, automatically handling right to left or left to right direction change.

    public class LinearLayout : LayoutGroup, IDisposable, ILayoutParent
    Inheritance
    Object
    LayoutItem
    LayoutGroup
    LinearLayout
    Implements
    IDisposable
    ILayoutParent

    Constructors

    View Source

    LinearLayout()

    [Draft] Constructor

    Declaration
    public LinearLayout()
    API Level: 6

    Properties

    View Source

    CellPadding

    [Draft] Get/Set the padding between cells in the layout

    Declaration
    public Size2D CellPadding { get; set; }
    Property Value
    Type Description
    Size2D
    API Level: 6
    View Source

    HorizontalAlignment

    Get/Set the horizontal alignment in the layout

    Declaration
    public HorizontalAlignment HorizontalAlignment { get; set; }
    Property Value
    Type Description
    HorizontalAlignment
    API Level: 9
    View Source

    LinearAlignment

    This has been deprecated in API9 and will be removed in API11. Use HorizontalAlignment and VerticalAlignment properties instead.

    [Draft] Get/Set the alignment in the layout

    Declaration
    [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
    API Level: 6
    View Source

    LinearOrientation

    [Draft] Get/Set the orientation in the layout

    Declaration
    public LinearLayout.Orientation LinearOrientation { get; set; }
    Property Value
    Type Description
    LinearLayout.Orientation
    API Level: 6
    View Source

    VerticalAlignment

    Get/Set the vertical alignment in the layout

    Declaration
    public VerticalAlignment VerticalAlignment { get; set; }
    Property Value
    Type Description
    VerticalAlignment
    API Level: 9

    Methods

    View Source

    OnLayout(Boolean, LayoutLength, LayoutLength, LayoutLength, LayoutLength)

    Layout should assign a size and position to each of its children.

    Declaration
    protected override void OnLayout(bool changed, LayoutLength left, LayoutLength top, LayoutLength right, LayoutLength bottom)
    Parameters
    Type Name Description
    Boolean 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
    LayoutGroup.OnLayout(Boolean, LayoutLength, LayoutLength, LayoutLength, LayoutLength)
    API Level: 6
    View Source

    OnMeasure(MeasureSpecification, MeasureSpecification)

    Measure the layout and its content to determine the measured width and the measured height.

    Declaration
    protected 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
    LayoutGroup.OnMeasure(MeasureSpecification, MeasureSpecification)
    API Level: 6

    Implements

    System.IDisposable
    ILayoutParent
    • View Source
    Back to top Copyright © 2016-2021 Samsung
    Generated by DocFX