Class LayoutDockPositionOrderer
A helper class for ordering how views should be enumerated in UIs that can not easily dock views/groups and need to ensure they are shown wthin a vertical or horizontal stacking correctly
Inheritance
Inherited Members
Namespace: LemonEdge.Client.Core.Views.DefaultLayouts
Assembly: ClientCore.dll
Syntax
public static class LayoutDockPositionOrderer
Methods
ToHorizontalOrder(LayoutDockPosition)
Indicates the order a view/group should be sorted in, in order for its position to be correctly represented in a horizontally ordered set of items
Declaration
public static int ToHorizontalOrder(this LayoutDockPosition position)
Parameters
Type | Name | Description |
---|---|---|
LayoutDockPosition | position | The position to translate to an order position |
Returns
Type | Description |
---|---|
System.Int32 | The order a view/group should be sorted in, in order for its position to be correctly represented in a horiztonally ordered set of items |
ToVerticalOrder(LayoutDockPosition)
Indicates the order a view/group should be sorted in, in order for its position to be correctly represented in a vertically ordered set of items
Declaration
public static int ToVerticalOrder(this LayoutDockPosition position)
Parameters
Type | Name | Description |
---|---|---|
LayoutDockPosition | position | The position to translate to an order position |
Returns
Type | Description |
---|---|
System.Int32 | The order a view/group should be sorted in, in order for its position to be correctly represented in a vertically ordered set of items |