Struct TMP_XmlTagStack<T> | TextMesh Pro | 1.3.0
docs.unity.cn
    Show / Hide Table of Contents

    Struct TMP_XmlTagStack<T>

    Structure used to track XML tags of various types.

    Namespace: TMPro
    Syntax
    public struct TMP_XmlTagStack<T>
    Type Parameters
    Name Description
    T

    Constructors

    TMP_XmlTagStack(T[])

    Constructor to create a new item stack.

    Declaration
    public TMP_XmlTagStack(T[] tagStack)
    Parameters
    Type Name Description
    T[] tagStack

    Fields

    index

    Declaration
    public int index
    Field Value
    Type Description
    Int32

    itemStack

    Declaration
    public T[] itemStack
    Field Value
    Type Description
    T[]

    Methods

    Add(T)

    Function to add a new item to the stack.

    Declaration
    public void Add(T item)
    Parameters
    Type Name Description
    T item

    Clear()

    Function to clear and reset stack to first item.

    Declaration
    public void Clear()

    CurrentItem()

    Declaration
    public T CurrentItem()
    Returns
    Type Description
    T

    Pop()

    Declaration
    public T Pop()
    Returns
    Type Description
    T

    PreviousItem()

    Function to retrieve the previous item without affecting the stack.

    Declaration
    public T PreviousItem()
    Returns
    Type Description
    T

    Push(T)

    Declaration
    public void Push(T item)
    Parameters
    Type Name Description
    T item

    Remove()

    Function to retrieve an item from the stack.

    Declaration
    public T Remove()
    Returns
    Type Description
    T

    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
    Back to top Copyright © 2019 Unity Technologies
    Generated by DocFX