Main Content

mlreportgen.dom.FontSize class

Package: mlreportgen.dom

Description

Specifies the size of a font.

The mlreportgen.dom.FontSize class is a handle class.

Creation

Description

fontSizeObj = FontSize() creates a 12-point font.

fontSizeObj = FontSize(sizeStr) creates the specified font size.

Input Arguments

expand all

Font size, specified in the format valueUnits. Units is an abbreviation for the units. The following abbreviations are valid:

  • px — pixels (default)

  • cm — centimeters

  • in — inches

  • mm — millimeters

  • pc — picas

  • pt — points

Properties

expand all

ID for this document element, specified as a character vector or string scalar. The DOM generates a session-unique ID when it creates the document element. You can specify your own ID.

Attributes:

GetAccess
public
SetAccess
public
NonCopyable
true

Data Types: char | string

Tag for this document element, specified as a character vector or string scalar.

The DOM generates a session-unique tag as part of the creation of this object. The generated tag has the form CLASS:ID, where CLASS is the object class and ID is the value of the Id property of the object. Specifying your own tag value can help you to identify where an issue occurred during document generation.

Attributes:

GetAccess
public
SetAccess
public
NonCopyable
true

Data Types: char | string

Font size, in the form valueUnits. Units is an abbreviation for the units. The following abbreviations are valid:

  • px — pixels (default)

  • cm — centimeters

  • in — inches

  • mm — millimeters

  • pc — picas

  • pt — points

Version History

Introduced in R2014b