Main Content

mlreportgen.ppt.Italic Class

Namespace: mlreportgen.ppt

Italic for text object

Description

Specifies whether to render text in italic.

The mlreportgen.ppt.Italic class is a handle class.

Creation

Description

italicObj = Italic creates a format object that specifies to render text in italic.

example

italicObj = Italic(value) creates a format object that specifies to render text in italic if value is true; otherwise, the text renders without italic.

Input Arguments

expand all

Option to use italic for text, specified as a logical. A setting of true (or 1) renders text in italic.

Data Types: logical

Properties

expand all

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

Attributes:

NonCopyable
true

Data Types: char | string

Tag for this PPT API object, specified as a character vector or string scalar. A session-unique tag is generated as part of the creation of this object. 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.

Specifying your own tag value can help you to identify where issues occur during presentation generation.

Attributes:

NonCopyable
true

Data Types: char | string

The possible values are:

  • 0 — uses roman (straight) text

  • 1 — renders text in italic

Data Types: logical

Examples

collapse all

Create a presentation.

import mlreportgen.ppt.*

ppt = Presentation('myItalicPresentation.pptx');
open(ppt);
titleSlide = add(ppt,'Title and Content');

Create a paragraph and append text with italic and regular text.

p = Paragraph('Hello World');
p.Style = {Italic(true)};
t = Text(' How are you?');
t.Style = {Italic(false)};
append(p,t);

Add the paragraph to the slide. Close and view the presentation.

replace(titleSlide,'Content',p);

close(ppt);
rptview(ppt);

Version History

Introduced in R2015b