Class LinearLayoutManager
A LinearLayoutManager implementation which provides linear layout.
Inheritance
System.Object
LinearLayoutManager
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Tizen.UIExtensions.ElmSharp
Assembly: Tizen.UIExtensions.ElmSharp.dll
Syntax
public class LinearLayoutManager : ICollectionViewLayoutManager
Constructors
LinearLayoutManager(Boolean)
Initializes a new instance of the LinearLayoutManager class.
Declaration
public LinearLayoutManager(bool isHorizontal)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | isHorizontal | Layout orientation |
LinearLayoutManager(Boolean, ItemSizingStrategy)
Initializes a new instance of the LinearLayoutManager class.
Declaration
public LinearLayoutManager(bool isHorizontal, ItemSizingStrategy sizingStrategy)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | isHorizontal | Layout orientation |
ItemSizingStrategy | sizingStrategy | Item size measuring strategy |
LinearLayoutManager(Boolean, ItemSizingStrategy, Int32)
Initializes a new instance of the LinearLayoutManager class.
Declaration
public LinearLayoutManager(bool isHorizontal, ItemSizingStrategy sizingStrategy, int itemSpacing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | isHorizontal | Layout orientation |
ItemSizingStrategy | sizingStrategy | Item size measuring strategy |
System.Int32 | itemSpacing | A space size between items |
Properties
CollectionView
CollectionView that interact with layout manager.
Declaration
public ICollectionViewController CollectionView { get; set; }
Property Value
Type | Description |
---|---|
ICollectionViewController |
IsHorizontal
Whether the item is a layout horizontally.
Declaration
public bool IsHorizontal { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
ItemSpacing
A space size between items.
Declaration
public int ItemSpacing { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Methods
GetItemBound(Int32)
Declaration
public Rect GetItemBound(int index)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index |
Returns
Type | Description |
---|---|
Rect |
GetScrollBlockSize()
Declaration
public int GetScrollBlockSize()
Returns
Type | Description |
---|---|
System.Int32 |
GetScrollCanvasSize()
Declaration
public Size GetScrollCanvasSize()
Returns
Type | Description |
---|---|
Size |
GetVisibleItemIndex(Int32, Int32)
Declaration
public int GetVisibleItemIndex(int x, int y)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | x | |
System.Int32 | y |
Returns
Type | Description |
---|---|
System.Int32 |
ItemInserted(Int32)
Declaration
public void ItemInserted(int inserted)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | inserted |
ItemMeasureInvalidated(Int32)
Declaration
public void ItemMeasureInvalidated(int index)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index |
ItemRemoved(Int32)
Declaration
public void ItemRemoved(int removed)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | removed |
ItemSourceUpdated()
Declaration
public void ItemSourceUpdated()
ItemUpdated(Int32)
Declaration
public void ItemUpdated(int index)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index |
LayoutItems(Rect, Boolean)
Declaration
public void LayoutItems(Rect bound, bool force)
Parameters
Type | Name | Description |
---|---|---|
Rect | bound | |
System.Boolean | force |
Reset()
Declaration
public void Reset()
SetFooter(Nullable<EvasObject>, Size)
Declaration
public void SetFooter(EvasObject? footer, Size size)
Parameters
Type | Name | Description |
---|---|---|
System.Nullable<EvasObject> | footer | |
Size | size |
SetHeader(Nullable<EvasObject>, Size)
Declaration
public void SetHeader(EvasObject? header, Size size)
Parameters
Type | Name | Description |
---|---|---|
System.Nullable<EvasObject> | header | |
Size | size |
SizeAllocated(Size)
Declaration
public void SizeAllocated(Size size)
Parameters
Type | Name | Description |
---|---|---|
Size | size |