Class Edit
A Cegui single line text field
Inherited Members
Namespace: Slipe.Client.Gui
Assembly: SlipeClient.dll
Syntax
[DefaultElementClass(ElementType.GuiEdit)]
public class Edit : EditableGuiElement
Constructors
| Improve this Doc View SourceEdit(Vector2, Vector2, String, Boolean, GuiElement, Boolean, Int32)
Create a new edit
Declaration
public Edit(Vector2 position, Vector2 dimensions, string defaultContent, bool relative = false, GuiElement parent = null, bool masked = false, int maxLength = 128)
Parameters
Type | Name | Description |
---|---|---|
Vector2 | position | |
Vector2 | dimensions | |
String | defaultContent | |
Boolean | relative | |
GuiElement | parent | |
Boolean | masked | |
Int32 | maxLength |
Properties
| Improve this Doc View SourceCaretIndex
Get and set the car position within the editbox
Declaration
public int CaretIndex { get; set; }
Property Value
Type | Description |
---|---|
Int32 |
Masked
Get and set if this edit is masked (password input)
Declaration
public bool Masked { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
MaxLength
Get and set the max text length that can be typed within this editbox
Declaration
public int MaxLength { get; set; }
Property Value
Type | Description |
---|---|
Int32 |
ReadOnly
Get and set if this editbox is read-only
Declaration
public bool ReadOnly { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
Events
| Improve this Doc View SourceOnAccepted
Declaration
public event Edit.OnAcceptedHandler OnAccepted
Event Type
Type | Description |
---|---|
Edit.OnAcceptedHandler |