ExportFontTable
A table supporting a mapping of Revit font names to font names that will be set in the target export format.
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.
System.Object
Autodesk.Revit.DB.ExportFontTable
public class ExportFontTable : IEnumerable<KeyValuePair<ExportFontKey, ExportFontInfo>>,
IDisposable
| Name | Return Type | Description |
|---|---|---|
| ExportFontTable() | None | Constructs a new ExportFontTable with default values. |
| Name | Return Type | Description |
|---|---|---|
| Add(ExportFontKey, ExportFontInfo) | None | Inserts a (key,info) pair into Export font table. |
| Clear() | None | Removes all contents stored in the table. |
| ContainsKey(ExportFontKey) | bool | Checks whether a font key exists in the table. |
| Dispose() | None | Releases all resources used by the |
| GetBasicIEnumerator() | IEnumerator | Returns an enumerator that iterates through a collection. |
| GetEnumerator() | IEnumerator | Returns an enumerator that iterates through a collection. |
| GetExportFontInfo(ExportFontKey) | ExportFontInfo | Gets a copy of the font info associated to the input font key. |
| GetFontTableIterator() | ExportFontTableIterator | Returns a FontTableIterator that iterates through the collection. |
| GetKeys() | IList<ExportFontKey> | Returns a collection of the keys stored in this table. |
| GetValues() | IList<ExportFontInfo> | Returns a collection of the values stored in this table. |
| Remove(ExportFontKey) | None | Removes the pair (key, info) by font key. |
| Name | Return Type | Description |
|---|---|---|
| Count | int | Count of the items contained in the collection. |
| IsValidObject | bool | Specifies whether the .NET object represents a valid Revit entity. |
| Item | ExportFontInfo | A copy of the for the font's . |