Main Content

mlreportgen.dom.HAlign class

Package: 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

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

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