Description
Underline text.
Construction
draws a single line under text.underline
= Underline()
draws a line of the specified type under the text.underline
= Underline(type
)
Input Arguments
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
underline
— Underline textmlreportgen.ppt.Underline
object
Underline, returned as anmlreportgen.ppt.Underline
object.
Properties
Type
—Underline stylestring
Underline style, specified as a string. See the description of thetype
input argument for the constructor.
Data Types:char
Id
—ID 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.
Tag
—Tag 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
, whereCLASS
is the object class andID
is the value of theId
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
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 themyUnderlinePresentation
presentation. On a Windows®platform, you can open the presentation in MATLAB®:
ifispc winopen(slidesFile);end
Introduced in R2015b
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select:.
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina(Español)
- Canada(English)
- United States(English)
Europe
- Belgium(English)
- Denmark(English)
- Deutschland(Deutsch)
- España(Español)
- Finland(English)
- France(Français)
- Ireland(English)
- Italia(Italiano)
- Luxembourg(English)
- Netherlands(English)
- Norway(English)
- Österreich(Deutsch)
- Portugal(English)
- Sweden(English)
- Switzerland
- United Kingdom(English)