Struct TMP_RichTextTagStack<T>
Structure used to track XML tags of various types.
Namespace: TMPro
Syntax
public struct TMP_RichTextTagStack<T>
Type Parameters
Constructors
TMP_RichTextTagStack(T[])
Constructor to create a new item stack.
Declaration
public TMP_RichTextTagStack(T[] tagStack)
Parameters
Type |
Name |
Description |
T[] |
tagStack |
|
TMP_RichTextTagStack(Int32)
Constructor for a new item stack with the given capacity.
Declaration
public TMP_RichTextTagStack(int capacity)
Parameters
Type |
Name |
Description |
Int32 |
capacity |
|
Fields
m_Index
Declaration
Field Value
m_ItemStack
Declaration
Field Value
Methods
Add(T)
Function to add a new item to the stack.
Declaration
Parameters
Type |
Name |
Description |
T |
item |
|
Clear()
Function to clear and reset stack to first item.
Declaration
CurrentItem()
Declaration
Returns
Peek()
Declaration
Returns
Pop()
Declaration
Returns
PreviousItem()
Function to retrieve the previous item without affecting the stack.
Declaration
Returns
Push(T)
Declaration
Parameters
Type |
Name |
Description |
T |
item |
|
Remove()
Function to retrieve an item from the stack.
Declaration
Returns
SetDefault(T)
Function to set the first item on the stack and reset index.
Declaration
public void SetDefault(T item)
Parameters
Type |
Name |
Description |
T |
item |
|