Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Struct

PowerPointParagraphStyle

OfficeIMO.PowerPoint

Namespace
OfficeIMO.PowerPoint
Assembly
OfficeIMO.PowerPoint
Source revision
0eef6a5756b9 with working tree changes
Base
ValueType
Modifiers
sealed

Defines paragraph formatting that can be applied to text boxes.

Inheritance

  • ValueType
  • PowerPointParagraphStyle

Usage

Explore 13 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Accepted by parameters 1

Constructors

public PowerPointParagraphStyle(PowerPointTextAlignment? alignment = null, int? level = null, OfficeLength? indent = null, OfficeLength? leftMargin = null, OfficeLength? hanging = null, OfficeLength? lineSpacing = null, double? lineSpacingMultiplier = null, OfficeLength? spaceBefore = null, OfficeLength? spaceAfter = null) #

Creates a new paragraph style instance.

Parameters

alignment OfficeIMO.PowerPoint.PowerPointTextAlignment? = null optional
level int? = null optional
indent OfficeIMO.OfficeLength? = null optional
leftMargin OfficeIMO.OfficeLength? = null optional
hanging OfficeIMO.OfficeLength? = null optional
lineSpacing OfficeIMO.OfficeLength? = null optional
lineSpacingMultiplier double? = null optional
spaceBefore OfficeIMO.OfficeLength? = null optional
spaceAfter OfficeIMO.OfficeLength? = null optional

Methods

public void Apply(PowerPointParagraph paragraph) #

Applies the style to a paragraph.

Parameters

paragraph OfficeIMO.PowerPoint.PowerPointParagraph required
public PowerPointParagraphStyle WithAlignment(PowerPointTextAlignment alignment) #

Returns a copy with a new alignment.

Parameters

alignment OfficeIMO.PowerPoint.PowerPointTextAlignment required
public PowerPointParagraphStyle WithHanging(OfficeLength? hanging) #

Returns a copy with a new hanging indent physical length.

Parameters

hanging OfficeIMO.OfficeLength? required
public PowerPointParagraphStyle WithIndent(OfficeLength? indent) #

Returns a copy with a new indentation physical length.

Parameters

indent OfficeIMO.OfficeLength? required
public PowerPointParagraphStyle WithLeftMargin(OfficeLength? leftMargin) #

Returns a copy with a new left margin physical length.

Parameters

leftMargin OfficeIMO.OfficeLength? required
public PowerPointParagraphStyle WithLevel(int level) #

Returns a copy with a new list level.

Parameters

level int required
public PowerPointParagraphStyle WithLineSpacing(OfficeLength? lineSpacing) #

Returns a copy with a new line spacing physical length.

Parameters

lineSpacing OfficeIMO.OfficeLength? required
public PowerPointParagraphStyle WithLineSpacingMultiplier(double? lineSpacingMultiplier) #

Returns a copy with a new line spacing multiplier.

Parameters

lineSpacingMultiplier double? required
public PowerPointParagraphStyle WithSpaceAfter(OfficeLength? spaceAfter) #

Returns a copy with a new space after physical length.

Parameters

spaceAfter OfficeIMO.OfficeLength? required
public PowerPointParagraphStyle WithSpaceBefore(OfficeLength? spaceBefore) #

Returns a copy with a new space before physical length.

Parameters

spaceBefore OfficeIMO.OfficeLength? required

Properties

public PowerPointTextAlignment? Alignment { get; } #

Paragraph alignment.

public int? Level { get; } #

Bullet/list level (0-8).

public OfficeLength? Indent { get; } #

Indentation as a physical length.

public OfficeLength? LeftMargin { get; } #

Left margin as a physical length.

public OfficeLength? Hanging { get; } #

Hanging indent as a physical length.

public OfficeLength? LineSpacing { get; } #

Line spacing as a physical length.

public double? LineSpacingMultiplier { get; } #

Line spacing multiplier (1.0 = 100%).

public OfficeLength? SpaceBefore { get; } #

Space before the paragraph as a physical length.

public OfficeLength? SpaceAfter { get; } #

Space after the paragraph as a physical length.

public static PowerPointParagraphStyle Compact { get; } #

A compact paragraph preset.

public static PowerPointParagraphStyle Comfortable { get; } #

A comfortable paragraph preset.

public static PowerPointParagraphStyle Spacious { get; } #

A spacious paragraph preset.