New to Telerik UI for WinForms? Start a free 30-day trial

Represents a collection of BorderStyles values used by the ExcelML export pipeline.

Definition

Namespace:Telerik.WinControls.UI.Export.ExcelML

Assembly:TelerikData.dll

Syntax:

C#
public class BorderStylesCollection : IBorderStylesCollection, IList, ICollection, IEnumerable

Inheritance: objectBorderStylesCollection

Implements: IBorderStylesCollectionICollectionIEnumerableIList

Constructors

Initializes a new instance of the BorderStylesCollection class.

C#
public BorderStylesCollection()

Initializes a new instance of the BorderStylesCollection class with the specified backing list.

C#
public BorderStylesCollection(IList list)
Parameters:listIList

The backing list used to store border style values.

Properties

Gets the number of elements contained in the collection.

C#
public virtual int Count { get; }

Gets a value indicating whether the collection has a fixed size.

C#
public virtual bool IsFixedSize { get; }

Gets a value indicating whether the collection is read-only.

C#
public virtual bool IsReadOnly { get; }

Gets a value indicating whether access to the collection is synchronized.

C#
public virtual bool IsSynchronized { get; }

Gets an object that can be used to synchronize access to the collection.

C#
public virtual object SyncRoot { get; }

Gets or sets the border style at the specified index.

C#
public virtual BorderStyles this[int index] { get; set; }
Parameters:indexint

The zero-based index of the border style.

Property Value:

The border style at the specified index.

Implements: IBorderStylesCollection.this[int]

Methods

Adds the specified border style to the collection.

C#
public virtual int Add(BorderStyles value)
Parameters:valueBorderStyles

The border style to add.

Returns:

int

The zero-based index at which the style was added.

Implements: IBorderStylesCollection.Add(BorderStyles)

Removes all border styles from the collection.

C#
public virtual void Clear()

Determines whether the specified border style exists in the collection.

C#
public virtual bool Contains(BorderStyles value)
Parameters:valueBorderStyles

The border style to locate.

Returns:

bool

true if the style is found; otherwise, false.

Implements: IBorderStylesCollection.Contains(BorderStyles)

Copies the elements of the collection to a typed array, starting at the specified index.

C#
public virtual void CopyTo(BorderStyles[] array, int index)
Parameters:arrayBorderStyles[]

The destination array.

indexint

The zero-based index in the destination array at which copying begins.

Implements: IBorderStylesCollection.CopyTo(BorderStyles[], int)

Returns an enumerator that iterates through the collection.

C#
public virtual IEnumerator GetEnumerator()
Returns:

IEnumerator

An enumerator for the collection.

Returns the zero-based index of the specified border style.

C#
public virtual int IndexOf(BorderStyles value)
Parameters:valueBorderStyles

The border style to locate.

Returns:

int

The zero-based index of the style if found; otherwise, -1.

Implements: IBorderStylesCollection.IndexOf(BorderStyles)

Inserts a border style at the specified index.

C#
public virtual void Insert(int index, BorderStyles value)
Parameters:indexint

The zero-based index at which to insert the style.

valueBorderStyles

The border style to insert.

Implements: IBorderStylesCollection.Insert(int, BorderStyles)

Removes the specified border style from the collection.

C#
public virtual void Remove(BorderStyles value)
Parameters:valueBorderStyles

The border style to remove.

Implements: IBorderStylesCollection.Remove(BorderStyles)

Removes the border style at the specified index.

C#
public virtual void RemoveAt(int index)
Parameters:indexint

The zero-based index of the style to remove.