Class UIComponent
- Namespace
- UILib
- Assembly
- UILib.dll
The base class which components that can be placed on the UI inherit from.
public abstract class UIComponent : UIObject
- Inheritance
-
UIComponent
- Derived
- Inherited Members
Methods
ClampString(string, int, bool)
A helper method for cutting down the size of strings.
If addEllipses is true, the text will be cut down even more
to ensure it doesn't exceed max characters, i.e. max characters
is the maximum possible size of the string.
public string ClampString(string text, int max, bool addEllipses = true)
Parameters
textstringThe text to clamp
maxintThe maximum permitted length of the text
addEllipsesboolWhether to add ellipses