Show / Hide Table of Contents

Class FormatCollection

Represents a collection of formats used by the TextObject and objects.

Inheritance
System.Object
System.Collections.CollectionBase
FormatCollection
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)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: FastReport.Format
Assembly: FastReport.OpenSource.dll
Syntax
public class FormatCollection : CollectionBase, IList, ICollection, IEnumerable, IFRSerializable

Properties

Item[Int32]

Gets or sets the element at the specified index.

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

Index of an element.

Property Value
Type Description
FormatBase

The element at the specified index.

Methods

Add(FormatBase)

Adds an object to the end of this collection.

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

Object to add.

Returns
Type Description
System.Int32

Index of the added object.

AddRange(FormatBase[])

Adds the specified elements to the end of this collection.

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

Array of elements to add.

Assign(FormatCollection)

Copies formats from another collection.

Declaration
public void Assign(FormatCollection collection)
Parameters
Type Name Description
FormatCollection collection

Collection to copy from.

Contains(FormatBase)

Determines whether an element is in the collection.

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

The object to locate in the collection.

Returns
Type Description
System.Boolean

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

Deserialize(FRReader)

Deserializes the object.

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

Reader object.

Equals(Object)

Declaration
public override bool Equals(object obj)
Parameters
Type Name Description
System.Object obj
Returns
Type Description
System.Boolean
Overrides
System.Object.Equals(System.Object)

GetHashCode()

Declaration
public override int GetHashCode()
Returns
Type Description
System.Int32
Overrides
System.Object.GetHashCode()

IndexOf(FormatBase)

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

Declaration
public int IndexOf(FormatBase value)
Parameters
Type Name Description
FormatBase 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.

Insert(Int32, FormatBase)

Inserts an object into this collection at the specified index.

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

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

FormatBase value

The object to insert.

Remove(FormatBase)

Removes the specified object from the collection.

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

Object to remove.

Serialize(FRWriter)

Serializes the object.

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

Writer object.

Implements

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