Class GridLayout

    Definition

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

    [Draft] This class implements a grid layout

    public class GridLayout : LayoutGroup, ILayoutParent
    Inheritance
    object
    LayoutItem
    LayoutGroup
    GridLayout
    Implements
    ILayoutParent

    Constructors

    View Source

    GridLayout()

    [draft] GridLayout Constructor/>

    Declaration
    public GridLayout()

    Properties

    View Source

    Columns

    [Draft] Get/Set the number of columns in the grid

    Declaration
    public int Columns { get; set; }
    Property Value
    Type Description
    int

    Methods

    View Source

    OnLayout(bool, LayoutLength, LayoutLength, LayoutLength, LayoutLength)

    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
    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
    LayoutGroup.OnLayout(bool, LayoutLength, LayoutLength, LayoutLength, LayoutLength)
    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)

    Implements

    ILayoutParent
    • View Source
    Back to top Copyright © 2016-2024 Samsung
    Generated by DocFX