Documentation

mlreportgen.ppt.Underline class

Package:mlreportgen.ppt

Underline text

Description

Underline text.

Construction

underline= Underline()draws a single line under text.

underline= Underline(type)draws a line of the specified type under the text.

Input Arguments

expand all

type— Style of underlinestring

Underline style, specified as a string. Valid strings are:

String Description
'single' Single underline
'double' Double underline
'heavy' Thick underline
'words' Words only underlined (not spaces)
'dotted' Dotted underline
'dottedheavy' Thick, dotted underline
'dash' Dashed underline
'dashheavy' Thick, dashed underline
'dashlong' Long, dashed underline
'dashlongheavy' Thick, long, dashed underline
'dotdash' Dot dash underline
'dotdotdash' Dot dot dash underline
'dotdotdashheavy' Thick dot dot dash underline
'dotdashdotheavy' Thick dash dot underline
'wavy' Wavy underline
'wavyheavy' Thick wavy underline
'wavydouble' Two wavy underlines

Output Arguments

expand all

underline— Underline textmlreportgen.ppt.Underlineobject

Underline, returned as anmlreportgen.ppt.Underlineobject.

Properties

expand all

TypeUnderline stylestring

Underline style, specified as a string. See the description of thetypeinput argument for the constructor.

Data Types:char

IdID for PPT API objectstring

ID for PPT API object, specified as a string. A session-unique ID is generated as part of object creation. You can specify an ID to replace the generated ID.

TagTag for this PPT API objectsession-unique tag generated as part of object creation (default) | string

Tag for this PPT API object, specified as a string. The generated tag has the formCLASS:ID, whereCLASSis the object class andIDis the value of theIdproperty of the object.

An example of a reason for specifying your own tag value is to make it easier to identify where an issue occurred during presentation generation.

Examples

expand all

Create Underlined Text

Create a presentation.

importmlreportgen.ppt.*slidesFile ='myUnderlinePresentation.pptx';幻灯片=表示(slidesFile);titleSlide =add(slides,'Title and Content');

Create a paragraph and append underlined text.

p = Paragraph('Hello World'); tWavy = Text(' wavy underline'); tWavy.Style = {Underline('wavy')}; append(p,tWavy); tDashed = Text(' heavy dash underline'); tDashed.Style = {Underline('dashheavy')}; append(p,tDashed);

Add the paragraph to the slide and close the presentation.

replace(titleSlide,'Content',p); close(slides);

Open themyUnderlinePresentationpresentation. On a Windows®platform, you can open the presentation in MATLAB®:

ifispc winopen(slidesFile);end

Introduced in R2015b

Was this topic helpful?