Show / Hide Table of Contents

Class StyleSheet

Represents a collection of the StyleCollection objects.

Inheritance
System.Object
System.Collections.CollectionBase
StyleSheet
Implements
System.Collections.IList
System.Collections.ICollection
System.Collections.IEnumerable
IFRSerializable
Inherited Members
System.Collections.CollectionBase.Clear()
System.Collections.CollectionBase.RemoveAt(System.Int32)
System.Collections.CollectionBase.System.Collections.ICollection.CopyTo(System.Array, System.Int32)
System.Collections.CollectionBase.System.Collections.IList.get_Item(System.Int32)
System.Collections.CollectionBase.System.Collections.IList.set_Item(System.Int32, System.Object)
System.Collections.CollectionBase.System.Collections.IList.Contains(System.Object)
System.Collections.CollectionBase.System.Collections.IList.Add(System.Object)
System.Collections.CollectionBase.System.Collections.IList.Remove(System.Object)
System.Collections.CollectionBase.System.Collections.IList.IndexOf(System.Object)
System.Collections.CollectionBase.System.Collections.IList.Insert(System.Int32, System.Object)
System.Collections.CollectionBase.GetEnumerator()
System.Collections.CollectionBase.OnSet(System.Int32, System.Object, System.Object)
System.Collections.CollectionBase.OnInsert(System.Int32, System.Object)
System.Collections.CollectionBase.OnClear()
System.Collections.CollectionBase.OnRemove(System.Int32, System.Object)
System.Collections.CollectionBase.OnValidate(System.Object)
System.Collections.CollectionBase.OnSetComplete(System.Int32, System.Object, System.Object)
System.Collections.CollectionBase.OnInsertComplete(System.Int32, System.Object)
System.Collections.CollectionBase.OnClearComplete()
System.Collections.CollectionBase.OnRemoveComplete(System.Int32, System.Object)
System.Collections.CollectionBase.InnerList
System.Collections.CollectionBase.List
System.Collections.CollectionBase.Capacity
System.Collections.CollectionBase.Count
System.Collections.CollectionBase.System.Collections.IList.IsReadOnly
System.Collections.CollectionBase.System.Collections.IList.IsFixedSize
System.Collections.CollectionBase.System.Collections.ICollection.IsSynchronized
System.Collections.CollectionBase.System.Collections.ICollection.SyncRoot
System.Collections.CollectionBase.System.Collections.IList.Item[System.Int32]
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: FastReport
Assembly: FastReport.OpenSource.dll
Syntax
public class StyleSheet : CollectionBase, IList, ICollection, IEnumerable, IFRSerializable

Properties

Item[Int32]

Gets or sets the element at the specified index.

Declaration
public StyleCollection this[int index] { get; set; }
Parameters
Type Name Description
System.Int32 index

Index of an element.

Property Value
Type Description
StyleCollection

The element at the specified index.

Methods

Add(StyleCollection)

Adds an object to the end of this collection.

Declaration
public int Add(StyleCollection value)
Parameters
Type Name Description
StyleCollection value

Object to add.

Returns
Type Description
System.Int32

Index of the added object.

AddRange(StyleCollection[])

Adds the specified elements to the end of this collection.

Declaration
public void AddRange(StyleCollection[] range)
Parameters
Type Name Description
StyleCollection[] range

Contains(StyleCollection)

Determines whether an element is in the collection.

Declaration
public bool Contains(StyleCollection value)
Parameters
Type Name Description
StyleCollection value

The object to locate in the collection.

Returns
Type Description
System.Boolean

true if object is found in the collection; otherwise, false.

Contains(String)

Determines whether a style collection with specified name is in the collection.

Declaration
public bool Contains(string value)
Parameters
Type Name Description
System.String value

The style collection name to locate in the collection.

Returns
Type Description
System.Boolean

true if object is found in the collection; otherwise, false.

Deserialize(FRReader)

Deserializes the collection.

Declaration
public void Deserialize(FRReader reader)
Parameters
Type Name Description
FRReader reader

Reader object.

Remarks

This method is for internal use only.

IndexOf(StyleCollection)

Returns the zero-based index of the first occurrence of an object.

Declaration
public int IndexOf(StyleCollection value)
Parameters
Type Name Description
StyleCollection value

The object to locate in the collection.

Returns
Type Description
System.Int32

The zero-based index of the first occurrence of value within the entire collection, if found; otherwise, -1.

IndexOf(String)

Returns the zero-based index of the first occurrence of a style collection with specified name.

Declaration
public int IndexOf(string value)
Parameters
Type Name Description
System.String value

The style collection name to locate in the collection.

Returns
Type Description
System.Int32

The zero-based index of the first occurrence of value within the entire collection, if found; otherwise, -1.

Insert(Int32, StyleCollection)

Inserts an object into this collection at the specified index.

Declaration
public void Insert(int index, StyleCollection value)
Parameters
Type Name Description
System.Int32 index

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

StyleCollection value

The object to insert.

Load(Stream)

Loads the collection from a stream.

Declaration
public void Load(Stream stream)
Parameters
Type Name Description
System.IO.Stream stream

Stream to load from.

Load(String)

Loads the collection from a file with specified name.

Declaration
public void Load(string fileName)
Parameters
Type Name Description
System.String fileName

Name of a file.

Remove(StyleCollection)

Removes the specified object from the collection.

Declaration
public void Remove(StyleCollection value)
Parameters
Type Name Description
StyleCollection value

Object to remove.

Save(Stream)

Saves the collection to a stream.

Declaration
public void Save(Stream stream)
Parameters
Type Name Description
System.IO.Stream stream

Stream to save to.

Save(String)

Saves the collection to a file with specified name.

Declaration
public void Save(string fileName)
Parameters
Type Name Description
System.String fileName

File name to save to.

Serialize(FRWriter)

Serializes the collection.

Declaration
public void Serialize(FRWriter writer)
Parameters
Type Name Description
FRWriter writer

Writer object.

Remarks

This method is for internal use only.

ToArray()

Gets an array containing all collection items.

Declaration
public object[] ToArray()
Returns
Type Description
System.Object[]

An array containing all collection items.

Implements

System.Collections.IList
System.Collections.ICollection
System.Collections.IEnumerable
IFRSerializable
Back to top Generated by DocFX