Table of Contents

Class SeparatedStringCollection

Namespace
combit.Reporting.Dom
Assembly
combit.ListLabel31.CrossPlatform.dll

Represents a string collection backed by a single separator-joined string property of a DomItem. Modifications automatically update the underlying property value.

public class SeparatedStringCollection : Collection<string>, IList<string>, ICollection<string>, IReadOnlyList<string>, IReadOnlyCollection<string>, IEnumerable<string>, IList, ICollection, IEnumerable
Inheritance
SeparatedStringCollection
Implements
Inherited Members

Constructors

SeparatedStringCollection(DomItem, string)

Creates a tab separated collection wrapper.

public SeparatedStringCollection(DomItem parent, string propertyName)

Parameters

parent DomItem
propertyName string

SeparatedStringCollection(DomItem, string, string)

Creates a collection wrapper using a custom separator.

public SeparatedStringCollection(DomItem parent, string propertyName, string separator)

Parameters

parent DomItem
propertyName string
separator string

Methods

CopyFrom(SeparatedStringCollection)

Copies the content of another separated string collection.

public void CopyFrom(SeparatedStringCollection source)

Parameters

source SeparatedStringCollection

InsertItem(int, string)

Inserts an element into the Collection<T> at the specified index.

protected override void InsertItem(int index, string item)

Parameters

index int

The zero-based index at which item should be inserted.

item string

The object to insert. The value can be null for reference types.

Exceptions

ArgumentOutOfRangeException
   <code class="paramref">index</code> is less than zero.  

-or-

index is greater than Count.

RemoveItem(int)

Removes the element at the specified index of the Collection<T>.

protected override void RemoveItem(int index)

Parameters

index int

The zero-based index of the element to remove.

Exceptions

ArgumentOutOfRangeException
   <code class="paramref">index</code> is less than zero.  

-or-

index is equal to or greater than Count.