Main Content

mlreportgen.dom.VAlign Class

Namespace: mlreportgen.dom

Vertical alignment of document object

Description

Use objects of the mlreportgen.dom.VAlign class to specify the vertical alignment of document objects. Use mlreportgen.dom.VAlign objects to specify the vertical alignment of an image in a paragraph in PDF and HTML reports, or to specify the alignment of content in a table entry.

To specify the alignment of content in a table entry, apply an mlreportgen.dom.VAlign object to the style of an mlreportgen.dom.TableEntry object.

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

Creation

Description

vAlignObj = VAlign creates an alignment object having the value "top".

vAlignObj = VAlign(value) creates an alignment object having the specified value.

Input Arguments

expand all

Vertical alignment of a document element, specified as one of these values:

  • "top"

  • "middle"

  • "bottom"

Properties

expand all

Vertical alignment of an object, specified as one of these values:

  • "top"

  • "middle"

  • "bottom"

Attributes:

GetAccess
public
SetAccess
public
NonCopyable
true

Data Types: char | string

Tag, 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. Use this value to help identify where an issue occurs during document generation.

Attributes:

GetAccess
public
SetAccess
public
NonCopyable
true

Data Types: char | string

Object identifier, specified as a character vector or string scalar. The DOM API generates a session-unique identifier when it creates the document element object.

Attributes:

GetAccess
public
SetAccess
public
NonCopyable
true

Data Types: char | string

Limitations

  • You cannot use an mlreportgen.dom.VAlign object to vertically align objects, such as images, on a page. For an example on how to align objects on a page, see Center Image on a Page.

Version History

Introduced in R2014b