FontTable

References
public sealed class FontTable : IEnumerable<Font>
Font tables store the list of fonts in a Rhino document. The FontTable is now just a wrapper around the DimStyles table.

Properties

Count

#Since v5.0
public int Count { get; }
Number of fonts in the table.

CurrentIndex

#Since v5.0
public int CurrentIndex { get; }
At all times, there is a "current" font. Unless otherwise specified, new dimension objects are assigned to the current font. The current font is never deleted. Returns: Zero based font index of the current font.

Document

#Since v5.0
public RhinoDoc Document { get; }
Document that owns this table.

Indexers

this[]

#
public Font this[int index] { get; }
Gets the font at a position.
index (int)The index of the font.
A font, or null if no font was not found at that position.

Methods

FindOrCreate

#Since v6.0
public int FindOrCreate(string face, bool bold, bool italic, DimensionStyle template_style)
Get a DimensionStyle with the specified characteristics
face (string)
bold (bool)
italic (bool)
template_style (DimensionStyle)the settings other than face, bold and italic are copied from the template_style

FindOrCreate

#ExampleSince v5.0
public int FindOrCreate(string face, bool bold, bool italic)
Get a DimensionStyle with the specified characteristics the settings other than face, bold and italic are copied from the current style
face (string)
bold (bool)
italic (bool)

GetEnumerator

#Since v5.0
public IEnumerator<Font> GetEnumerator()
Explicit

IEnumerable.GetEnumerator

#Since v5.0
IEnumerator IEnumerable.GetEnumerator()