Class FontsCollection
Summary description for FontsCollection.
Implements
Inherited Members
Namespace: Syncfusion.XlsIO.Implementation.Collections
Assembly: Syncfusion.XlsIO.Portable.dll
Syntax
public class FontsCollection : CollectionBaseEx<FontImpl>, IList<FontImpl>, ICollection<FontImpl>, IEnumerable<FontImpl>, IEnumerable, IParentApplication, ICloneParent
Constructors
FontsCollection(IApplication, Object)
Creates collection with specified Application and Parent.
Declaration
public FontsCollection(IApplication application, object parent)
Parameters
Type | Name | Description |
---|---|---|
IApplication | application | Application object for the collection. |
System.Object | parent | Parent object for the collection. |
Properties
Item[Int32]
Returns single font from collection.
Declaration
public IFont this[int index] { get; }
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index |
Property Value
Type |
---|
IFont |
Methods
Add(IFont)
Adds font to collection.
Declaration
public IFont Add(IFont font)
Parameters
Type | Name | Description |
---|---|---|
IFont | font | Font to add. |
Returns
Type | Description |
---|---|
IFont | Added font. |
Add(FontImpl, FontRecord)
Parses font record and adds new font to the collection.
Declaration
public FontImpl Add(FontImpl font, FontRecord record)
Parameters
Type | Name | Description |
---|---|---|
FontImpl | font | |
FontRecord | record | Font record to parse. |
Returns
Type | Description |
---|---|
FontImpl | Added font. |
AddRange(FontsCollection)
Merges fonts with fonts from another fonts collection.
Declaration
public Dictionary<int, int> AddRange(FontsCollection arrFonts)
Parameters
Type | Name | Description |
---|---|---|
FontsCollection | arrFonts | Fonts collection to merge fonts from.. |
Returns
Type | Description |
---|---|
System.Collections.Generic.Dictionary<System.Int32, System.Int32> | Dictionary with updated indexes. |
AddRange(ICollection<Int32>, FontsCollection)
Adds fonts range from other fonts collection.
Declaration
public Dictionary<int, int> AddRange(ICollection<int> colFonts, FontsCollection sourceFonts)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.ICollection<System.Int32> | colFonts | Collection with font indexes to add. |
FontsCollection | sourceFonts | Collection with fonts to add. |
Returns
Type | Description |
---|---|
System.Collections.Generic.Dictionary<System.Int32, System.Int32> | Dictionary with updated fonts indexes: key - old font index, value - new font index. |
Clone(WorkbookImpl)
Creates copy of the fonts collection.
Declaration
public FontsCollection Clone(WorkbookImpl parent)
Parameters
Type | Name | Description |
---|---|---|
WorkbookImpl | parent | Parent workbook for the new collection. |
Returns
Type | Description |
---|---|
FontsCollection | Copy of this collection. |
Contains(FontImpl)
Indicates whether such font is in collection.
Declaration
public bool Contains(FontImpl font)
Parameters
Type | Name | Description |
---|---|---|
FontImpl | font | Font to search. |
Returns
Type | Description |
---|---|
System.Boolean | True if such font is present in the collection, false otherwise. |
ForceAdd(FontImpl)
Forces add to the collection even if same font is already in the collection.
Declaration
public void ForceAdd(FontImpl font)
Parameters
Type | Name | Description |
---|---|---|
FontImpl | font | Font to add. |
InsertDefaultFonts()
Inserts default fonts into collection.
Declaration
public void InsertDefaultFonts()
OnClearComplete()
OnClear is invoked after Clear behavior.
Declaration
protected override void OnClearComplete()
Overrides
Serialize(OffsetArrayList)
Saves fonts collection as a set of biff records.
Declaration
public void Serialize(OffsetArrayList records)
Parameters
Type | Name | Description |
---|---|---|
OffsetArrayList | records | OffssetArrayList that will receive biff records. |