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 within a vertical or horizontal stacking correctly
Inherited Members
Namespace: LemonEdge.Client.Core.Views.DefaultLayouts.Core
Assembly: LemonEdge.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 |
---|---|
int | 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 |
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 |
---|---|
int | 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 |