API Reference

Detailed and full API reference helps you master Tekla development

This is the most recent version of Tekla Open API.
For older versions, please visit Tekla Warehouse.

FontAttributes Class

The FontAttributes class contains the basic attributes for fonts.
Inheritance Hierarchy

Namespace:  Tekla.Structures.Drawing
Assembly:  Tekla.Structures.Drawing (in Tekla.Structures.Drawing.dll) Version: 2021.0.0
public sealed class FontAttributes : GenericAttributesBase, 

The FontAttributes type exposes the following members.

  Name Description
Public method FontAttributes
Creates a new font attributes instance. The default color is black, the height is 2.5, the font name is Arial and the values of italic and bold are false.
Public method FontAttributes(DrawingColors, Double, String, Boolean, Boolean)
Creates a new font attributes instance with the given parameters.
  Name Description
Public property Bold
Whether the font is bold.
Public property Color
The color of the font.
Public property Height
The height of the font (in millimeters).
Public property Italic
Whether the font is italic.
Public property Name
The name of the font.
  Name Description
Public method Clone
Creates a new object that is a copy of the current instance.
Public method IsEqual
Compares the current object with an object of the same type.
(Overrides GenericAttributesBaseIsEqual(Object).)
See Also