Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/

API Reference

Struct

PowerPointParagraphStyle

Namespace OfficeIMO.PowerPoint
Assembly OfficeIMO.PowerPoint
Source revision 02c4d39034ec 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, Int32? level = null, Double? indentPoints = null, Double? leftMarginPoints = null, Double? hangingPoints = null, Double? lineSpacingPoints = null, Double? lineSpacingMultiplier = null, Double? spaceBeforePoints = null, Double? spaceAfterPoints = null) #

Creates a new paragraph style instance.

Parameters

alignment OfficeIMO.PowerPoint.PowerPointTextAlignment? = null optionalposition: 0
level System.Int32? = null optionalposition: 1
indentPoints System.Double? = null optionalposition: 2
leftMarginPoints System.Double? = null optionalposition: 3
hangingPoints System.Double? = null optionalposition: 4
lineSpacingPoints System.Double? = null optionalposition: 5
lineSpacingMultiplier System.Double? = null optionalposition: 6
spaceBeforePoints System.Double? = null optionalposition: 7
spaceAfterPoints System.Double? = null optionalposition: 8

Methods

public Void Apply(PowerPointParagraph paragraph) #
Returns: Void

Applies the style to a paragraph.

Parameters

paragraph OfficeIMO.PowerPoint.PowerPointParagraph requiredposition: 0
public PowerPointParagraphStyle WithAlignment(PowerPointTextAlignment alignment) #
Returns: PowerPointParagraphStyle

Returns a copy with a new alignment.

Parameters

alignment OfficeIMO.PowerPoint.PowerPointTextAlignment requiredposition: 0
public PowerPointParagraphStyle WithHangingPoints(Double? hangingPoints) #
Returns: PowerPointParagraphStyle

Returns a copy with a new hanging indent value (points).

Parameters

hangingPoints System.Double? requiredposition: 0
public PowerPointParagraphStyle WithIndentPoints(Double? indentPoints) #
Returns: PowerPointParagraphStyle

Returns a copy with a new indentation value (points).

Parameters

indentPoints System.Double? requiredposition: 0
public PowerPointParagraphStyle WithLeftMarginPoints(Double? leftMarginPoints) #
Returns: PowerPointParagraphStyle

Returns a copy with a new left margin value (points).

Parameters

leftMarginPoints System.Double? requiredposition: 0
public PowerPointParagraphStyle WithLevel(Int32 level) #
Returns: PowerPointParagraphStyle

Returns a copy with a new list level.

Parameters

level System.Int32 requiredposition: 0
public PowerPointParagraphStyle WithLineSpacingMultiplier(Double? lineSpacingMultiplier) #
Returns: PowerPointParagraphStyle

Returns a copy with a new line spacing multiplier.

Parameters

lineSpacingMultiplier System.Double? requiredposition: 0
public PowerPointParagraphStyle WithLineSpacingPoints(Double? lineSpacingPoints) #
Returns: PowerPointParagraphStyle

Returns a copy with a new line spacing value (points).

Parameters

lineSpacingPoints System.Double? requiredposition: 0
public PowerPointParagraphStyle WithSpaceAfterPoints(Double? spaceAfterPoints) #
Returns: PowerPointParagraphStyle

Returns a copy with a new space after value (points).

Parameters

spaceAfterPoints System.Double? requiredposition: 0
public PowerPointParagraphStyle WithSpaceBeforePoints(Double? spaceBeforePoints) #
Returns: PowerPointParagraphStyle

Returns a copy with a new space before value (points).

Parameters

spaceBeforePoints System.Double? requiredposition: 0

Properties

public PowerPointTextAlignment? Alignment { get; } #

Paragraph alignment.

public Int32? Level { get; } #

Bullet/list level (0-8).

public Double? IndentPoints { get; } #

Indentation in points.

public Double? LeftMarginPoints { get; } #

Left margin in points.

public Double? HangingPoints { get; } #

Hanging indent in points.

public Double? LineSpacingPoints { get; } #

Line spacing in points.

public Double? LineSpacingMultiplier { get; } #

Line spacing multiplier (1.0 = 100%).

public Double? SpaceBeforePoints { get; } #

Space before the paragraph in points.

public Double? SpaceAfterPoints { get; } #

Space after the paragraph in points.

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.