Class Table
Table control with columns and rows.
Implements
Namespace: FlaxEditor.GUI
Assembly: FlaxEngine.CSharp.dll
Syntax
public class Table : ContainerControl, IComparable, IDrawableConstructors
Table()
Properties
Columns
Gets or sets the columns description.
Declaration
public ColumnDefinition[] Columns { get; set; }Property Value
| FlaxEditor.GUI.ColumnDefinition[] 
 | 
HeaderHeight
Gets or sets the height of the table column headers.
Declaration
public float HeaderHeight { get; set; }Property Value
| System.Single 
 | 
Splits
The column split values. Specified per column as normalized value to range [0;1]. Actual column width is calculated by multiplication of split value and table width.
Declaration
public float[] Splits { get; set; }Property Value
| System.Single[] 
 | 
Methods
Draw()
Draw the control and the children.
Declaration
public override void Draw()Overrides
DrawColumn(ref Rectangle, Int32)
Draws the column.
Declaration
protected virtual void DrawColumn(ref Rectangle rect, int columnIndex)Parameters
| Rectangle
        rect The header area rectangle. | 
| System.Int32
        columnIndex The zero-based index of the column. | 
GetColumnWidth(Int32)
Gets the actual column width (in pixels).
Declaration
public float GetColumnWidth(int columnIndex)Parameters
| System.Int32
        columnIndex Zero-based index of the column. | 
Returns
| System.Single The column width in pixels. | 
OnEndMouseCapture()
When mouse goes up/down not over the control but it has user focus so remove that focus from it (used by scroll bars, sliders etc.)
Declaration
public override void OnEndMouseCapture()Overrides
OnMouseDown(Float2, MouseButton)
When mouse goes down over control's area
Declaration
public override bool OnMouseDown(Float2 location, MouseButton button)Parameters
| Float2
        location Mouse location in Control Space | 
| MouseButton
        button Mouse buttons state (flags) | 
Returns
| System.Boolean True if event has been handled, otherwise false | 
Overrides
OnMouseMove(Float2)
When mouse moves over control's area
Declaration
public override void OnMouseMove(Float2 location)Parameters
| Float2
        location Mouse location in Control Space | 
Overrides
OnMouseUp(Float2, MouseButton)
When mouse goes up over control's area
Declaration
public override bool OnMouseUp(Float2 location, MouseButton button)Parameters
| Float2
        location Mouse location in Control Space | 
| MouseButton
        button Mouse buttons state (flags) | 
Returns
| System.Boolean True if event has been handled, otherwise false | 
Overrides
PerformLayoutAfterChildren()
Perform layout for that container control after performing it for child controls.
Declaration
protected override void PerformLayoutAfterChildren()