ModelAdvisor.Paragraph - Create and format paragraph

Syntax

para_obj = ModelAdvisor.Paragraph

Arguments

para_obj

A variable representing the paragraph object created.

Description

Creates and formats a paragraph.

Method Summary

NameDescription
setAlignSpecify paragraph alignment
addItemAdd paragraph element

Methods

setAlign

Purpose

Specify paragraph alignment

Syntax

setAlign(alignment)

Arguments

alignment

A string that specifies the alignment of the text. Possible alignments include:

left

Align left

right

Align right

center

Align center

Description

Specifies the paragraph alignment. The default is left.

addItem

Purpose

Add paragraph element

Syntax

addItem(element)

Arguments

element

A string, element, or cell array of elements to add to the paragraph.

Description

Adds an element to the paragraph.

Example

report_paragraph = ModelAdvisor.Paragraph;
report_paragraph.setAlign('center');

report_text = ModelAdvisor.Text('Magic Square', {'bold'});
report_text.setItalic(true);

report_image = ModelAdvisor.Image;
report_image = ModelAdvisor.Image; report_image.setImageSource(...
    'http://www.mathworks.com/access/helpdesk/help/techdoc/learn_matlab/p09.gif');

line_break = ModelAdvisor.LineBreak;

report_paragraph.addItem([report_text line_break line_break report_image]);

See Also

ModelAdvisor.Image, ModelAdvisor.LineBreak, ModelAdvisor.List, ModelAdvisor.Table, ModelAdvisor.Text

  


 © 1984-2009- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS