Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

setRetainSpaceReturn

Class: ModelAdvisor.Text
Package: ModelAdvisor

Retain spacing and returns in text

Syntax

setRetainSpaceReturn(text, mode)

Description

setRetainSpaceReturn(text, mode) specifies whether the text must retain the spaces and carriage returns.

Input Arguments

text

Instantiation of the ModelAdvisor.Text class

mode

A Boolean value indicating whether to preserve spaces and carriage returns in the text:

  • true (default) — Preserve spaces and carriage returns.

  • false — Do not preserve spaces and carriage returns.

Examples

t1 = ModelAdvisor.Text('MathWorks home page');
setRetainSpaceReturn(t1, 'true');
Was this topic helpful?