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
SeparatedStringCollection(DomItem, string, string)
Creates a collection wrapper using a custom separator.
public SeparatedStringCollection(DomItem parent, string propertyName, string separator)
Parameters
Methods
CopyFrom(SeparatedStringCollection)
Copies the content of another separated string collection.
public void CopyFrom(SeparatedStringCollection source)
Parameters
sourceSeparatedStringCollection
InsertItem(int, string)
Inserts an element into the Collection<T> at the specified index.
protected override void InsertItem(int index, string item)
Parameters
indexintThe zero-based index at which
itemshould be inserted.itemstringThe object to insert. The value can be null for reference types.
Exceptions
- ArgumentOutOfRangeException
<code class="paramref">index</code> is less than zero.-or-
indexis greater than Count.
RemoveItem(int)
Removes the element at the specified index of the Collection<T>.
protected override void RemoveItem(int index)
Parameters
indexintThe zero-based index of the element to remove.
Exceptions
- ArgumentOutOfRangeException
<code class="paramref">index</code> is less than zero.-or-
indexis equal to or greater than Count.