Class FormatItem | Localization | 0.9.0-preview
docs.unity3d.com
    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 © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023