Class ParagraphUnitCollection
A KeyBasedCollection<TKey, TValue> of ParagraphUnits. Adds support for setting the parent elements and additonal helper properties.
Implements
Inherited Members
Namespace: Sdl.Core.Bcm.BcmModel.Collections
Assembly: Sdl.Core.Bcm.BcmModel.dll
Syntax
public class ParagraphUnitCollection : 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 |
---|---|
System.Collections.Generic.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 |
---|---|
System.Int32 | The segment count. |
Methods
InsertItem(Int32, ParagraphUnit)
Inserts an element into the System.Collections.ObjectModel.KeyedCollection`2 at the specified index.
Declaration
protected override void InsertItem(int index, ParagraphUnit item)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | The zero-based index at which |
ParagraphUnit | item | The object to insert. |
Implements
System.IEquatable<>