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

Definition

Namespace:Telerik.WinControls.UI.Export.ExcelML

Assembly:TelerikData.dll

Syntax:

C#
public class StylesCollection : IStylesCollection, IList, ICollection, IEnumerable

Inheritance: objectStylesCollection

Implements: ICollectionIEnumerableIListIStylesCollection

Constructors

C#
public StylesCollection()
C#
public StylesCollection(IList list)
Parameters:listIList

Properties

C#
public virtual int Count { get; }
C#
public virtual bool IsFixedSize { get; }
C#
public virtual bool IsReadOnly { get; }
C#
public virtual bool IsSynchronized { get; }
C#
public virtual object SyncRoot { get; }

Gets or sets the style element at the specified index.

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

The zero-based index of the style element to get or set.

Property Value:

The style element at the specified index.

Implements: IStylesCollection.this[int]

Methods

Adds a style element to the collection.

C#
public virtual int Add(SingleStyleElement value)
Parameters:valueSingleStyleElement

The style element to add.

Returns:

int

The zero-based index at which the style is inserted.

Implements: IStylesCollection.Add(SingleStyleElement)

C#
public virtual void Clear()

Determines whether the collection contains the specified style element.

C#
public virtual bool Contains(SingleStyleElement value)
Parameters:valueSingleStyleElement

The style element to locate.

Returns:

bool

true if the style is found; otherwise, false.

Implements: IStylesCollection.Contains(SingleStyleElement)

Copies the style elements to an array, starting at the specified index.

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

The destination array.

indexint

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

Implements: IStylesCollection.CopyTo(SingleStyleElement[], int)

C#
public virtual IEnumerator GetEnumerator()
Returns:

IEnumerator

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

C#
public virtual int IndexOf(SingleStyleElement value)
Parameters:valueSingleStyleElement

The style element to locate.

Returns:

int

The zero-based index of the style element, or -1 if it is not found.

Implements: IStylesCollection.IndexOf(SingleStyleElement)

Inserts a style element at the specified index.

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

The zero-based index at which the style is inserted.

valueSingleStyleElement

The style element to insert.

Implements: IStylesCollection.Insert(int, SingleStyleElement)

Removes the specified style element from the collection.

C#
public virtual void Remove(SingleStyleElement value)
Parameters:valueSingleStyleElement

The style element to remove.

Implements: IStylesCollection.Remove(SingleStyleElement)

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