docs.unity3d.com
    Show / Hide Table of Contents

    Interface ITranslationUnitCollection

    Holds a collection of ITranslationUnit.

    Namespace: UnityEditor.Localization.Plugins.XLIFF.Common
    Syntax
    public interface ITranslationUnitCollection

    Properties

    TranslationUnitCount

    The number of translation units in the collection.

    Declaration
    int TranslationUnitCount { get; }
    Property Value
    Type Description
    Int32

    Methods

    AddNewTranslationUnit()

    Adds a new translation unit to the collection and returns it.

    Declaration
    ITranslationUnit AddNewTranslationUnit()
    Returns
    Type Description
    ITranslationUnit

    The newly created translation unit.

    AddTranslationUnit(ITranslationUnit)

    Adds the translation unit to the collection.

    Declaration
    void AddTranslationUnit(ITranslationUnit tu)
    Parameters
    Type Name Description
    ITranslationUnit tu

    The translation unit to add to the collection.

    GetTranslationUnit(Int32)

    Returns the translation unit for the selected index.

    Declaration
    ITranslationUnit GetTranslationUnit(int index)
    Parameters
    Type Name Description
    Int32 index

    The index of the translation unit to return.

    Returns
    Type Description
    ITranslationUnit

    The translation unit or null if one does not exist for the selected index.

    RemoveTranslationUnit(ITranslationUnit)

    Removes the translation unit from the collection.

    Declaration
    void RemoveTranslationUnit(ITranslationUnit tu)
    Parameters
    Type Name Description
    ITranslationUnit tu
    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