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. The DOM generates a session-unique ID when it creates the document element. You can specify your own ID.

Tag for the document element, specified as a character vector.

The DOM generates a session-unique tag when it creates the document element. Structure the tag as class:id, where class is the class of the element and id is the value of the Id property. You can specify a tag to replace the generated tag. Specifying your own tag can make it easier 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).