Main Content

mlreportgen.dom.HAlign Class

Namespace: mlreportgen.dom

Specify horizontal alignment of document object

Description

Specifies horizontal alignment of a document object.

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

Creation

Description

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'

Properties

expand all

Object identifier for the mlreportgen.dom.HAlign object, specified as a character vector or string scalar. The DOM API generates a session-unique identifier when it creates the document element object. You can specify your own value for Id.

Attributes:

NonCopyable
true

Data Types: char | string

Tag for the mlreportgen.dom.HAlign object, specified as a character vector or string scalar. The DOM API 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. Specify your own tag value to help you identify where to look when an issue occurs during document generation.

Attributes:

NonCopyable
true

Data Types: char | string

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).

Version History

Introduced in R2014b