Main Content

mlreportgen.dom.KeepLinesTogether Class

Namespace: mlreportgen.dom

Start paragraph on new page if necessary

Description

Start paragraph on new page if necessary

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

Creation

Description

keepLinesTogetherObj = KeepLinesTogether starts a paragraph on a new page if it cannot fit entirely on current page.

keepLinesTogetherObj = KeepLinesTogether(onoff) starts paragraph on a new page only if it cannot fit entirely on current page and onoff is true.

Input Arguments

expand all

Whether to keep paragraph on one page, specified as a logical 1 (true) or 0 (false). When you specify:.

  • 1 (true) — Starts a paragraph on a new page when it cannot fit entirely on the current page.

  • 0 (false) — Allows a paragraph to span two pages when it cannot fit entirely on the current page.

Properties

expand all

Keep paragraph lines together, specified as a logical 1 (true) or 0 (false). When you specify:.

  • 1 (true) — Starts paragraph on a new page when it cannot fit entirely on the current page.

  • 0 (false) — Allows the paragraph to span two pages when it cannot fit entirely on the current page.

Attributes:

GetAccess
public
SetAccess
public
NonCopyable
true

Data Types: logical

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

Version History

Introduced in R2014b