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.Strike class

Package: mlreportgen.ppt
Superclasses:

Strike through text

Description

Specifies whether to use a strikethrough line for a text object.

Construction

strikeObj = Strike() draws a single, horizontal line through text.

strikeObj = Strike(type) draws a line of the specified type through text.

Input Arguments

expand all

Strike type, specified as one of these values:

  • 'single' — Single horizontal line (default)

  • 'none' — No strikethrough line

  • 'double' — Double horizontal line

Output Arguments

expand all

Strikethrough text, returned as an mlreportgen.ppt.Strike object.

Properties

expand all

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.

Width of table column, specified in the form valueUnits where Units is an abbreviation for the units. Valid abbreviations are:

  • px — pixels (default)

  • cm — centimeters

  • in — inches

  • mm — millimeters

  • pc — picas

  • pt — points

Option to use bold for text, specified as a logical. To make text bold, set this property to true or 1. Setting the Bold property adds a corresponding mlreportgen.ppt.Bold format object to the Style property of this presentation element. Removing the Bold property setting removes the object.

Data Types: logical

Default font for text in column, specified as a character vector. Specify a font that appears in the PowerPoint® list of fonts in the Home tab Font area.

Font family for complex scripts, specified as a character vector. Specify a font family for substituting in a locale that requires a complex script (such as Arabic or Asian) for rendering text.

Font color, specified as a character vector. Use either a CSS color name or a hexadecimal RGB value.

  • For a list of CSS color names, see http://www.crockford.com/wrrrld/color.html.

  • To specify a hexadecimal RGB format, use # as the first character and two-digit hexadecimal numbers for each for the red, green, and blue values. For example, '#0000ff' specifies blue.

Font size, specified as a character vector. Use the format valueUnits, where Units is an abbreviation for the font size. These abbreviations are valid:

  • px — pixels (default)

  • cm — centimeters

  • in — inches

  • mm — millimeters

  • pc — picas

  • pt — points

Option to use italics for text, specified as a logical. Set this property to true. Setting the Italic property adds a corresponding mlreportgen.ppt.Italic format object to the Style property of this presentation element. Removing the Italic property setting removes the object.

Data Types: logical

Strike type, specified as one of these values:

  • 'single' — Single horizontal line (default)

  • 'none' — No strikethrough line

  • 'double' — Double horizontal line

Display of text as a subscript, specified by a logical value. A setting of true (or 1) renders text as a subscript.

Data Types: logical

Display of text as a superscript, specified by a logical value. A setting of true (or 1) renders text as a superscript.

Data Types: logical

Type of underlining for text, specified as a character vector. Setting the Underline property adds a corresponding mlreportgen.ppt.Underline format object to the Style property for this element. Removing the Underline property setting removes the object. You can specify one of these types of underlines.

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

The name of a color, specified as a character vector, using one of these values:

  • A CSS color name. See http://www.crockford.com/wrrrld/color.html.

  • An RGB value, using the format #RRGGBB. Use # as the first character and two-digit hexidecimal numbers for each for the red, green, and blue values. For example, '#0000ff' specifies blue.

Horizontal alignment, specified as one of these values:

  • 'center' — Centered

  • 'left' — Left-justified

  • 'right' — Right-justified

  • 'justified' — Left- and right-justified, spacing words evenly

  • 'distributed' — Left- and right-justified, spacing letters evenly

  • 'thaiDistributed' — Left- and right-justified Thai text, spacing characters evenly

  • 'justifiedLow' — Justification for Arabic text

Vertical alignment for table entry content, specified as one of these values:

  • 'top'

  • 'bottom'

  • 'middle'

  • 'topCentered'

  • 'middleCentered'

  • 'bottomCentered'

Strike type, specified as one of these values:

  • 'single' — Single horizontal line (default)

  • 'none' — No strikethrough line

  • 'double' — Double horizontal line

Examples

expand all

Create a presentation.

import mlreportgen.ppt.*

slidesFile = 'myStrikePresentation.pptx';
slides = Presentation(slidesFile);

titleSlide = add(slides,'Title and Content');

Create a paragraph and append text with strikethrough formatting.

p = Paragraph('Hello World');

tStrike = Text(' strikethrough text');
tStrike.Style = {Strike('double')};
append(p,tStrike);

Create text without strikethrough formatting and append it to the paragraph.

tVisible = Text(' visible text');
append(p,tVisible);

Add the paragraph to the slide and close the presentation.

replace(titleSlide,'Content',p);

close(slides);

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

if ispc
    winopen(slidesFile);
end

Introduced in R2015b

Was this topic helpful?