Table of Contents

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

text string

The text to clamp

max int

The maximum permitted length of the text

addEllipses bool

Whether to add ellipses

Returns

string