Table of Contents

Class FieldOptionCollection

Namespace
Dynamicweb.Ecommerce.Products
Assembly
Dynamicweb.Ecommerce.dll

Represents a collection of field options.

[Serializable]
public class FieldOptionCollection : List<FieldOption>, IList<FieldOption>, ICollection<FieldOption>, IReadOnlyList<FieldOption>, IReadOnlyCollection<FieldOption>, IEnumerable<FieldOption>, IList, ICollection, IEnumerable
Inheritance
FieldOptionCollection
Implements
Inherited Members
Extension Methods

Constructors

FieldOptionCollection()

Initializes new instance of an object.

public FieldOptionCollection()

FieldOptionCollection(IEnumerable<FieldOption>)

Initializes new instance of an object.

public FieldOptionCollection(IEnumerable<FieldOption> items)

Parameters

items IEnumerable<FieldOption>

Items to be initially added into collection.

Properties

Locked

Gets or sets value indicating whether collection is locked.

public bool Locked { get; }

Property Value

bool

Methods

Add(FieldOption)

Adds a field option to this collection.

public void Add(FieldOption item)

Parameters

item FieldOption

The field option.

AddRange(IEnumerable<FieldOption>)

Adds a field options to this collection.

public void AddRange(IEnumerable<FieldOption> collection)

Parameters

collection IEnumerable<FieldOption>

The field options.

Clear()

Clears this collection.

public void Clear()

Insert(int, FieldOption)

Inserts a field option to this collection with specified index.

public void Insert(int index, FieldOption item)

Parameters

index int

The index.

item FieldOption

The field option.

InsertRange(int, IEnumerable<FieldOption>)

Inserts a field options to this collection with specified index.

public void InsertRange(int index, IEnumerable<FieldOption> collection)

Parameters

index int

The index.

collection IEnumerable<FieldOption>

The field options.

Remove(FieldOption)

Removes a field option to this collection.

public bool Remove(FieldOption item)

Parameters

item FieldOption

The field option.

Returns

bool

RemoveAll(Predicate<FieldOption>)

Removes a field options from this collection.

public int RemoveAll(Predicate<FieldOption> match)

Parameters

match Predicate<FieldOption>

The field options.

Returns

int

RemoveAt(int)

Removes a field option by specified index.

public void RemoveAt(int index)

Parameters

index int

The index.

RemoveRange(int, int)

Removes a number field options by specified index.

public void RemoveRange(int index, int count)

Parameters

index int

The index.

count int

The number of options to delete.

To top