Class FormatItem | Localization | 0.8.1-preview
docs.unity.cn
    Show / Hide Table of Contents

    Class FormatItem

    Base class that represents a substring of text from a parsed format string.

    Inheritance
    Object
    FormatItem
    Format
    LiteralText
    Placeholder
    Selector
    Namespace: UnityEngine.Localization.SmartFormat.Core.Parsing
    Syntax
    public abstract class FormatItem

    Constructors

    FormatItem(SmartSettings, String, Int32, Int32)

    Declaration
    protected FormatItem(SmartSettings smartSettings, string baseString, int startIndex, int endIndex)
    Parameters
    Type Name Description
    SmartSettings smartSettings
    String baseString
    Int32 startIndex
    Int32 endIndex

    FormatItem(SmartSettings, FormatItem, Int32)

    Declaration
    protected FormatItem(SmartSettings smartSettings, FormatItem parent, int startIndex)
    Parameters
    Type Name Description
    SmartSettings smartSettings
    FormatItem parent
    Int32 startIndex

    Fields

    baseString

    Declaration
    public readonly string baseString
    Field Value
    Type Description
    String

    endIndex

    Declaration
    public int endIndex
    Field Value
    Type Description
    Int32

    SmartSettings

    Declaration
    protected SmartSettings SmartSettings
    Field Value
    Type Description
    SmartSettings

    startIndex

    Declaration
    public int startIndex
    Field Value
    Type Description
    Int32

    Properties

    RawText

    Retrieves the raw text that this item represents.

    Declaration
    public string RawText { get; }
    Property Value
    Type Description
    String

    Methods

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    String
    Overrides
    Object.ToString()
    Back to top Copyright © 2020 Unity Technologies
    Generated by DocFX
    on Wednesday, August 19, 2020