Show / Hide Table of Contents

Class GridList

Represents a Cegui gridlist

Inheritance
Object
Element
GuiElement
GridList
Inherited Members
GuiElement.Visible
GuiElement.Alpha
GuiElement.Enabled
GuiElement.StandardFont
GuiElement.CustomFont
GuiElement.Position
GuiElement.RelativePosition
GuiElement.Size
GuiElement.RelativeSize
GuiElement.Content
GuiElement.BringToFront()
GuiElement.MoveToBack()
GuiElement.Blur()
GuiElement.Focus()
GuiElement.SetProperty(String, String)
GuiElement.GetProperty(String)
GuiElement.OnBlur
GuiElement.OnFocus
GuiElement.OnClick
GuiElement.OnDoubleClick
GuiElement.OnMouseDown
GuiElement.OnMouseUp
GuiElement.OnMove
GuiElement.OnResize
GuiElement.OnMouseEnter
GuiElement.OnMouseLeave
GuiElement.OnMouseMove
GuiElement.OnMouseWheel
Element.element
Element.Root
Element.MTAElement
Element.Type
Element.ID
Element.Exists
Element.ChildCount
Element.Parent
Element.CallPropagationEnabled
Element.SetData(String, Object, Boolean)
Element.GetData(String, Boolean)
Element.TryGetData(String, Object, Boolean)
Element.GetData<T>(String, Boolean)
Element.TryGetData<T>(String, T, Boolean)
Element.Destroy()
Element.GetChild(Int32)
Element.GetChildren(String)
Element.GetByID(String, Int32)
Element.ListenForEvent(String, Boolean, String)
Element.HandleEvent(String, MtaElement, Object, Object, Object, Object, Object, Object, Object, Object)
Element.OnDestroy
Object.Equals(Object)
Object.Equals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
Object.ToString()
Namespace: Slipe.Client.Gui
Assembly: SlipeClient.dll
Syntax
[DefaultElementClass(ElementType.GuiGridList)]
public class GridList : GuiElement

Constructors

| Improve this Doc View Source

GridList(Vector2, Vector2, Boolean, GuiElement)

Create a new gridlist

Declaration
public GridList(Vector2 position, Vector2 dimensions, bool relative = false, GuiElement parent = null)
Parameters
Type Name Description
Vector2 position
Vector2 dimensions
Boolean relative
GuiElement parent

Properties

| Improve this Doc View Source

ColumnCount

Get the amount of columns

Declaration
public int ColumnCount { get; }
Property Value
Type Description
Int32
| Improve this Doc View Source

HorizontalScrollPosition

Get and set the horizontal scroll position (0-100)

Declaration
public float HorizontalScrollPosition { get; set; }
Property Value
Type Description
Single
| Improve this Doc View Source

RowCount

Get the amount of rows

Declaration
public int RowCount { get; }
Property Value
Type Description
Int32
| Improve this Doc View Source

SelectedCount

Get the amount of selected items, returns null if nothing is selected.

Declaration
public int SelectedCount { get; }
Property Value
Type Description
Int32
| Improve this Doc View Source

SelectedItem

Declaration
public GridItem SelectedItem { get; set; }
Property Value
Type Description
GridItem
| Improve this Doc View Source

SelectedItems

Get an array of all the selected items

Declaration
public GridItem[] SelectedItems { get; }
Property Value
Type Description
GridItem[]
| Improve this Doc View Source

SelectionMode

Set the selection mode of this gridlist

Declaration
public SelectionMode SelectionMode { get; set; }
Property Value
Type Description
SelectionMode
| Improve this Doc View Source

SortingEnabled

Get and set if this gridlist is sortable

Declaration
public bool SortingEnabled { get; set; }
Property Value
Type Description
Boolean
| Improve this Doc View Source

VerticalScrollPosition

Get and set the vertical scroll position (0-100)

Declaration
public float VerticalScrollPosition { get; set; }
Property Value
Type Description
Single

Methods

| Improve this Doc View Source

AddColumn(String, Single)

Add a new column to this gridlist

Declaration
public GridColumn AddColumn(string title, float width)
Parameters
Type Name Description
String title
Single width
Returns
Type Description
GridColumn
| Improve this Doc View Source

AddRow()

Add a new row to this gridlist

Declaration
public GridRow AddRow()
Returns
Type Description
GridRow
| Improve this Doc View Source

AddRowAfter(GridRow)

Create a new row after an existing row

Declaration
public GridRow AddRowAfter(GridRow row)
Parameters
Type Name Description
GridRow row
Returns
Type Description
GridRow
| Improve this Doc View Source

AddTopRow()

Create a new row at the top of the list

Declaration
public GridRow AddTopRow()
Returns
Type Description
GridRow
| Improve this Doc View Source

Clear()

Clear this gridlist

Declaration
public bool Clear()
Returns
Type Description
Boolean
| Improve this Doc View Source

GetItem(GridColumn, GridRow)

Get a grid item from a column and row

Declaration
public GridItem GetItem(GridColumn column, GridRow row)
Parameters
Type Name Description
GridColumn column
GridRow row
Returns
Type Description
GridItem
| Improve this Doc View Source

RemoveColumn(GridColumn)

Remove a grid column

Declaration
public bool RemoveColumn(GridColumn column)
Parameters
Type Name Description
GridColumn column
Returns
Type Description
Boolean
| Improve this Doc View Source

RemoveRow(GridRow)

Remove a grid row

Declaration
public bool RemoveRow(GridRow row)
Parameters
Type Name Description
GridRow row
Returns
Type Description
Boolean
| Improve this Doc View Source

UseScrollBars(Boolean, Boolean)

Change if horizontal/vertical scrollbars should be used

Declaration
public bool UseScrollBars(bool horizontal, bool vertical)
Parameters
Type Name Description
Boolean horizontal
Boolean vertical
Returns
Type Description
Boolean
  • Improve this Doc
  • View Source
Back to top Generated by DocFX