Show / Hide Table of Contents

Class Label

Represents a Cegui label

Inheritance
Object
Element
GuiElement
Label
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.GuiLabel)]
public class Label : GuiElement

Constructors

| Improve this Doc View Source

Label(Vector2, Vector2, String, Boolean, GuiElement)

Create a label

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

Properties

| Improve this Doc View Source

Color

Get and set the color of this label

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

Extent

Get the width the label has with this text

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

FontHeight

Get the font height

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

Methods

| Improve this Doc View Source

SetHorizontalAlign(HorizontalAlign, Boolean)

Set the horizontal alignment of text

Declaration
public bool SetHorizontalAlign(HorizontalAlign alignment, bool wordWrap = false)
Parameters
Type Name Description
HorizontalAlign alignment
Boolean wordWrap
Returns
Type Description
Boolean
| Improve this Doc View Source

SetVerticalAlign(VerticalAlign)

Set the vertical alignment of text

Declaration
public bool SetVerticalAlign(VerticalAlign alignment)
Parameters
Type Name Description
VerticalAlign alignment
Returns
Type Description
Boolean
  • Improve this Doc
  • View Source
Back to top Generated by DocFX