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.

mlreportgen.ppt.Underline class

Package: mlreportgen.ppt
Superclasses:

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

Underline style, specified as one of these values:

ValueDescription
'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, returned as an mlreportgen.ppt.Underline object.

Properties

expand all

Underline style, specified as a character vector. See the description of the type input argument for the constructor.

Data Types: char

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

Tag for this PPT API object, specified as a character vector. 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.

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 a presentation.

import mlreportgen.ppt.*

slidesFile = 'myUnderlinePresentation.pptx';
slides = Presentation(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 the myUnderlinePresentation presentation. On a Windows® platform, you can open the presentation in MATLAB®:

if ispc
    winopen(slidesFile);
end

Introduced in R2015b

Was this topic helpful?