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 |
RemoveTranslationUnit(ITranslationUnit)
Removes the translation unit from the collection.
Declaration
void RemoveTranslationUnit(ITranslationUnit tu)
Parameters
| Type | Name | Description |
|---|---|---|
| ITranslationUnit | tu |