Search Results for

    Show / Hide Table of Contents

    Class ParagraphUnitCollection

    A KeyBasedCollection<TKey, TValue> of ParagraphUnits. Adds support for setting the parent elements and additonal helper properties.

    Inheritance
    Object
    KeyBasedCollection<String, ParagraphUnit>
    ParagraphUnitCollection
    Implements
    IList<ParagraphUnit>
    ICollection<ParagraphUnit>
    IEnumerable<ParagraphUnit>
    IEnumerable
    IEquatable<KeyBasedCollection<String, ParagraphUnit>>
    Inherited Members
    KeyBasedCollection<String, ParagraphUnit>.ThreadSafeListHandler
    KeyBasedCollection<String, ParagraphUnit>.KeyMap
    KeyBasedCollection<String, ParagraphUnit>.OnItemAdded(ParagraphUnit)
    KeyBasedCollection<String, ParagraphUnit>.ForEach(Action<ParagraphUnit>)
    KeyBasedCollection<String, ParagraphUnit>.Equals(KeyBasedCollection<String, ParagraphUnit>)
    KeyBasedCollection<String, ParagraphUnit>.Equals(Object)
    KeyBasedCollection<String, ParagraphUnit>.GetHashCode()
    KeyBasedCollection<String, ParagraphUnit>.TryGetValue(String)
    KeyBasedCollection<String, ParagraphUnit>.Add(ParagraphUnit)
    KeyBasedCollection<String, ParagraphUnit>.Clear()
    KeyBasedCollection<String, ParagraphUnit>.GetKeyFor(ParagraphUnit)
    KeyBasedCollection<String, ParagraphUnit>.Contains(ParagraphUnit)
    KeyBasedCollection<String, ParagraphUnit>.Contains(String)
    KeyBasedCollection<String, ParagraphUnit>.ContainsKey(String)
    KeyBasedCollection<String, ParagraphUnit>.CopyTo(ParagraphUnit[], Int32)
    KeyBasedCollection<String, ParagraphUnit>.IndexOf(ParagraphUnit)
    KeyBasedCollection<String, ParagraphUnit>.Insert(Int32, ParagraphUnit)
    KeyBasedCollection<String, ParagraphUnit>.Remove(ParagraphUnit)
    KeyBasedCollection<String, ParagraphUnit>.Remove(String)
    KeyBasedCollection<String, ParagraphUnit>.RemoveAt(Int32)
    KeyBasedCollection<String, ParagraphUnit>.GetEnumerator()
    KeyBasedCollection<String, ParagraphUnit>.IEnumerable.GetEnumerator()
    KeyBasedCollection<String, ParagraphUnit>.Item[String]
    KeyBasedCollection<String, ParagraphUnit>.Item[Int32]
    KeyBasedCollection<String, ParagraphUnit>.Count
    KeyBasedCollection<String, ParagraphUnit>.IsReadOnly
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: Sdl.LanguagePlatform.TranslationMemoryApi.LiteBCM.Collection
    Assembly: Sdl.LanguagePlatform.TranslationMemoryApi.dll
    Syntax
    public class ParagraphUnitCollection : KeyBasedCollection<string, ParagraphUnit>, IList<ParagraphUnit>, ICollection<ParagraphUnit>, IEnumerable<ParagraphUnit>, IEnumerable, IEquatable<KeyBasedCollection<string, ParagraphUnit>>

    Constructors

    ParagraphUnitCollection()

    Initializes a new instance of the ParagraphUnitCollection class.

    Declaration
    public ParagraphUnitCollection()

    ParagraphUnitCollection(IList<ParagraphUnit>)

    Initializes a new instance of the ParagraphUnitCollection class.

    Declaration
    public ParagraphUnitCollection(IList<ParagraphUnit> paragraphUnits)
    Parameters
    Type Name Description
    IList<ParagraphUnit> paragraphUnits

    A pre-populated list with the paragraph units to use for the initialization

    Properties

    AllSegmentPairs

    Gets all segment pairs.

    Declaration
    public IEnumerable<SegmentPair> AllSegmentPairs { get; }
    Property Value
    Type Description
    IEnumerable<SegmentPair>

    All segment pairs.

    ParentFile

    Gets or sets the parent file.

    Declaration
    public File ParentFile { get; }
    Property Value
    Type Description
    File

    The parent file.

    SegmentCount

    Gets the segment count.

    Declaration
    public int SegmentCount { get; }
    Property Value
    Type Description
    Int32

    The segment count.

    Methods

    OnItemAdded(ParagraphUnit)

    Ensures the newly added item has the correct parent file references set.

    Declaration
    protected override void OnItemAdded(ParagraphUnit item)
    Parameters
    Type Name Description
    ParagraphUnit item

    The ParagraphUnit item that was just added to the collection.

    Overrides
    Sdl.LanguagePlatform.TranslationMemoryApi.LiteBCM.Collection.KeyBasedCollection<System.String, Sdl.LanguagePlatform.TranslationMemoryApi.LiteBCM.ParagraphUnit>.OnItemAdded(Sdl.LanguagePlatform.TranslationMemoryApi.LiteBCM.ParagraphUnit)

    Implements

    System.Collections.Generic.IList<T>
    System.Collections.Generic.ICollection<T>
    System.Collections.Generic.IEnumerable<T>
    System.Collections.IEnumerable
    System.IEquatable<T>
    In this article
    Back to top Generated by DocFX