mlreportgen.dom.HAlign class

Package: mlreportgen.dom
Superclasses:

Specify horizontal alignment of document object

Description

Specifies horizontal alignment of a document object.

Construction

alignObj = HAlign() creates an alignment object having the value 'left'.

alignObj = HAlign(value) creates an alignment object having the specified value.

Input Arguments

expand all

Horizontal alignment of a document object, specified as one of these values:

  • 'center'

  • 'left'

  • 'right'

  • 'justify'

Output Arguments

expand all

Horizontal alignment, represented by an mlreportgen.dom.HAlign object.

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.

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.

Horizontal alignment, specified as one of these values:

  • 'center' — Center object between the sides of the container

  • 'left' — Align object to the left side of the container

  • 'right' — Align object to the right side of the container

  • 'justify' — Align text to the left and right sides of the container, adjusting word and letter spacing and hyphenating as necessary (if hyphenation is enabled).