[]
        
(Showing Draft Content)

GrapeCity.Documents.Pdf.FontHandlerCollection

Class FontHandlerCollection

Namespace
GrapeCity.Documents.Pdf
Assembly
GcDocs.Pdf.dll

Represents a collection of FontHandler objects.

public class FontHandlerCollection : KeyedCollection<Font, FontHandler>, IList<FontHandler>, ICollection<FontHandler>, IList, ICollection, IReadOnlyList<FontHandler>, IReadOnlyCollection<FontHandler>, IEnumerable<FontHandler>, IEnumerable
Inheritance
object
System.Collections.ObjectModel.Collection<T><FontHandler>
System.Collections.ObjectModel.KeyedCollection<TKey, TItem><Font, FontHandler>
FontHandlerCollection
Implements
System.Collections.Generic.IList<T><FontHandler>
System.Collections.Generic.ICollection<T><FontHandler>
System.Collections.IList
System.Collections.ICollection
System.Collections.Generic.IReadOnlyList<T><FontHandler>
System.Collections.Generic.IReadOnlyCollection<T><FontHandler>
System.Collections.Generic.IEnumerable<T><FontHandler>
System.Collections.IEnumerable
Inherited Members
System.Collections.ObjectModel.KeyedCollection<GrapeCity.Documents.Text.Font, GrapeCity.Documents.Pdf.FontHandler>.Contains(GrapeCity.Documents.Text.Font)
System.Collections.ObjectModel.KeyedCollection<GrapeCity.Documents.Text.Font, GrapeCity.Documents.Pdf.FontHandler>.TryGetValue(GrapeCity.Documents.Text.Font, out GrapeCity.Documents.Pdf.FontHandler)
System.Collections.ObjectModel.KeyedCollection<GrapeCity.Documents.Text.Font, GrapeCity.Documents.Pdf.FontHandler>.Remove(GrapeCity.Documents.Text.Font)
System.Collections.ObjectModel.KeyedCollection<GrapeCity.Documents.Text.Font, GrapeCity.Documents.Pdf.FontHandler>.ChangeItemKey(GrapeCity.Documents.Pdf.FontHandler, GrapeCity.Documents.Text.Font)
System.Collections.ObjectModel.KeyedCollection<GrapeCity.Documents.Text.Font, GrapeCity.Documents.Pdf.FontHandler>.ClearItems()
System.Collections.ObjectModel.KeyedCollection<GrapeCity.Documents.Text.Font, GrapeCity.Documents.Pdf.FontHandler>.GetKeyForItem(GrapeCity.Documents.Pdf.FontHandler)
System.Collections.ObjectModel.KeyedCollection<GrapeCity.Documents.Text.Font, GrapeCity.Documents.Pdf.FontHandler>.InsertItem(int, GrapeCity.Documents.Pdf.FontHandler)
System.Collections.ObjectModel.KeyedCollection<GrapeCity.Documents.Text.Font, GrapeCity.Documents.Pdf.FontHandler>.RemoveItem(int)
System.Collections.ObjectModel.KeyedCollection<GrapeCity.Documents.Text.Font, GrapeCity.Documents.Pdf.FontHandler>.SetItem(int, GrapeCity.Documents.Pdf.FontHandler)
System.Collections.ObjectModel.KeyedCollection<GrapeCity.Documents.Text.Font, GrapeCity.Documents.Pdf.FontHandler>.Comparer
System.Collections.ObjectModel.KeyedCollection<GrapeCity.Documents.Text.Font, GrapeCity.Documents.Pdf.FontHandler>.this[GrapeCity.Documents.Text.Font]
System.Collections.ObjectModel.KeyedCollection<GrapeCity.Documents.Text.Font, GrapeCity.Documents.Pdf.FontHandler>.Dictionary
System.Collections.ObjectModel.Collection<GrapeCity.Documents.Pdf.FontHandler>.Add(GrapeCity.Documents.Pdf.FontHandler)
System.Collections.ObjectModel.Collection<GrapeCity.Documents.Pdf.FontHandler>.Clear()
System.Collections.ObjectModel.Collection<GrapeCity.Documents.Pdf.FontHandler>.CopyTo(GrapeCity.Documents.Pdf.FontHandler[], int)
System.Collections.ObjectModel.Collection<GrapeCity.Documents.Pdf.FontHandler>.Contains(GrapeCity.Documents.Pdf.FontHandler)
System.Collections.ObjectModel.Collection<GrapeCity.Documents.Pdf.FontHandler>.GetEnumerator()
System.Collections.ObjectModel.Collection<GrapeCity.Documents.Pdf.FontHandler>.IndexOf(GrapeCity.Documents.Pdf.FontHandler)
System.Collections.ObjectModel.Collection<GrapeCity.Documents.Pdf.FontHandler>.Insert(int, GrapeCity.Documents.Pdf.FontHandler)
System.Collections.ObjectModel.Collection<GrapeCity.Documents.Pdf.FontHandler>.Remove(GrapeCity.Documents.Pdf.FontHandler)
System.Collections.ObjectModel.Collection<GrapeCity.Documents.Pdf.FontHandler>.RemoveAt(int)
System.Collections.ObjectModel.Collection<GrapeCity.Documents.Pdf.FontHandler>.Count
System.Collections.ObjectModel.Collection<GrapeCity.Documents.Pdf.FontHandler>.Items
System.Collections.ObjectModel.Collection<GrapeCity.Documents.Pdf.FontHandler>.this[int]
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()

Properties

Doc

Gets the GcPdfDocument that owns this collection.

public GcPdfDocument Doc { get; }

Property Value

GcPdfDocument

HasUsedFonts

Gets a value indicating whether the current collection contains at least one FontHandler object with the UsedInDocument property set.

public bool HasUsedFonts { get; }

Property Value

bool

Methods

ClearItems()

protected override void ClearItems()

GetFontHandler(Font)

Gets an existing FontHandler associated with a specified Font, or creates a new one if such font does not exist.

public FontHandler GetFontHandler(Font font)

Parameters

font Font

The font.

Returns

FontHandler

The existing or newly created PdfFont.

GetKeyForItem(FontHandler)

protected override Font GetKeyForItem(FontHandler item)

Parameters

item FontHandler

Returns

Font

InsertItem(int, FontHandler)

protected override void InsertItem(int index, FontHandler item)

Parameters

index int
item FontHandler

RemoveItem(int)

protected override void RemoveItem(int index)

Parameters

index int

SetItem(int, FontHandler)

protected override void SetItem(int index, FontHandler item)

Parameters

index int
item FontHandler

TryGetFontHandler(Font, out FontHandler)

Gets the FontHandler associated with a specified Font.

public bool TryGetFontHandler(Font font, out FontHandler pdfFont)

Parameters

font Font

The raw font.

pdfFont FontHandler

OUT: the PdfFont object, or null.

Returns

bool

True if a PdfFont was found, false otherwise.