Main Content

mlreportgen.ppt.Superscript class

Package: mlreportgen.ppt

Superscript text

Description

Format that renders text in a presentation as a superscript.

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

Class Attributes

HandleCompatible
true
ConstructOnLoad
true

For information on class attributes, see Class Attributes.

Creation

Description

superscriptObj = mlreportgen.ppt.Superscript() creates a superscript object.

example

superscriptObj = mlreportgen.ppt.Superscript(value) creates a superscript object and sets the Value property to value.

Properties

expand all

Option to display text as a superscript, specified as a numeric or logical 1 (true) or 0 (false). A setting of true or 1 renders text as a superscript.

ID for this PPT API object, specified as a character vector or string scalar. 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 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 an issue occurred during presentation generation.

Examples

collapse all

Set up a paragraph to display x2.

Set up a presentation.

import mlreportgen.ppt.*

ppt = Presentation('mySuperscript.pptx');
open(ppt);
slide = add(ppt,'Title and Content');

Create the superscript text and append it to a paragraph with regular text.

super = Text('2');
super.Style = {Superscript(true)};

para = Paragraph('x');
append(para,super);

Replace the slide content with the paragraph.

replace(slide,'Content',para);

Close and view presentation.

close(ppt); 
rptview(ppt);

Version History

Introduced in R2015b