Class ParagraphUnitCollection
A KeyBasedCollection<TKey, TValue> of ParagraphUnits. Adds support for setting the parent elements and additonal helper properties.
Inheritance
ParagraphUnitCollection
Implements
Inherited Members
Namespace: Sdl.Core.Bcm.BcmModel.Collections
Assembly: Sdl.Core.Bcm.BcmModel.dll
Syntax
public class ParagraphUnitCollection : KeyBasedCollection<string, ParagraphUnit>, IList<ParagraphUnit>, ICollection<ParagraphUnit>, IList, ICollection, IReadOnlyList<ParagraphUnit>, IReadOnlyCollection<ParagraphUnit>, IEnumerable<ParagraphUnit>, IEnumerable, IEquatable<KeyBasedCollection<string, ParagraphUnit>>
Constructors
ParagraphUnitCollection()
Initializes a new instance of the ParagraphUnitCollection class.
Declaration
public ParagraphUnitCollection()
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; set; }
Property Value
| Type | Description |
|---|---|
| File | The parent file. |
SegmentCount
Gets the segment count.
Declaration
public int SegmentCount { get; }
Property Value
| Type | Description |
|---|---|
| int | The segment count. |
Methods
InsertItem(int, ParagraphUnit)
Inserts an element into the KeyedCollection<TKey, TItem> at the specified index.
Declaration
protected override void InsertItem(int index, ParagraphUnit item)
Parameters
| Type | Name | Description |
|---|---|---|
| int | index | The zero-based index at which |
| ParagraphUnit | item | The object to insert. |