ExportFontTable Class

A table supporting a mapping of Revit font names to font names that will be set in the target export format.
Inheritance Hierarchy
SystemObject
  Autodesk.Revit.DBExportFontTable

Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntax
public class ExportFontTable : IEnumerable<KeyValuePair<ExportFontKey, ExportFontInfo>>, 
	IDisposable

The ExportFontTable type exposes the following members.

Constructors
 NameDescription
Public methodExportFontTable Constructs a new ExportFontTable with default values.
Top
Properties
 NameDescription
Public propertyCount Count of the items contained in the collection.
Public propertyIsValidObject Specifies whether the .NET object represents a valid Revit entity.
Public propertyItem A copy of the ExportFontInfo for the font's ExportFontKey.
Top
Methods
 NameDescription
Public methodAdd Inserts a (key,info) pair into Export font table.
Public methodClear Removes all contents stored in the table.
Public methodContainsKey Checks whether a font key exists in the table.
Public methodDisposeReleases all resources used by the ExportFontTable
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodGetBasicIEnumeratorReturns an enumerator that iterates through a collection.
Public methodGetEnumeratorReturns an enumerator that iterates through a collection.
Public methodGetExportFontInfo Gets a copy of the font info associated to the input font key.
Public methodGetFontTableIteratorReturns a FontTableIterator that iterates through the collection.
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetKeys Returns a collection of the keys stored in this table.
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodGetValues Returns a collection of the values stored in this table.
Public methodRemove Removes the pair (key, info) by font key.
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
Remarks

This table is structured as a mapping from ExportFontKey to ExportFontInfo members. The ExportFontKey contains the identification information for the font table: the Revit font name. The ExportFontInfo contains the font name to use in the export format.

The table can be accessed via direct iteration as a collection of KeyValuePairs, or by traversal of the stored keys obtained from GetKeys(), or via specific lookup of a key constructed externally. In all cases, the ExportFontInfo returned will be a copy of the ExportFontInfo from the table. In order to make changes to the ExportFontInfo and use those settings during export, set the modified ExportFontInfo back into the table using the same key.

See Also