OfficeIMO

API Reference

Struct

PowerPointParagraphStyle

Namespace OfficeIMO.PowerPoint
Assembly OfficeIMO.PowerPoint
Base ValueType
Modifiers sealed

Defines paragraph formatting that can be applied to text boxes.

Inheritance

  • ValueType
  • PowerPointParagraphStyle

Constructors

public PowerPointParagraphStyle(Nullable<TextAlignmentTypeValues> alignment = null, Nullable<Int32> level = null, Nullable<Double> indentPoints = null, Nullable<Double> leftMarginPoints = null, Nullable<Double> hangingPoints = null, Nullable<Double> lineSpacingPoints = null, Nullable<Double> lineSpacingMultiplier = null, Nullable<Double> spaceBeforePoints = null, Nullable<Double> spaceAfterPoints = null) #

Creates a new paragraph style instance.

Parameters

alignment System.Nullable{DocumentFormat.OpenXml.Drawing.TextAlignmentTypeValues} = null optionalposition: 0
level System.Nullable{System.Int32} = null optionalposition: 1
indentPoints System.Nullable{System.Double} = null optionalposition: 2
leftMarginPoints System.Nullable{System.Double} = null optionalposition: 3
hangingPoints System.Nullable{System.Double} = null optionalposition: 4
lineSpacingPoints System.Nullable{System.Double} = null optionalposition: 5
lineSpacingMultiplier System.Nullable{System.Double} = null optionalposition: 6
spaceBeforePoints System.Nullable{System.Double} = null optionalposition: 7
spaceAfterPoints System.Nullable{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(TextAlignmentTypeValues alignment) #
Returns: PowerPointParagraphStyle

Returns a copy with a new alignment.

Parameters

alignment DocumentFormat.OpenXml.Drawing.TextAlignmentTypeValues requiredposition: 0
public PowerPointParagraphStyle WithHangingPoints(Nullable<Double> hangingPoints) #
Returns: PowerPointParagraphStyle

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

Parameters

hangingPoints System.Nullable{System.Double} requiredposition: 0
public PowerPointParagraphStyle WithIndentPoints(Nullable<Double> indentPoints) #
Returns: PowerPointParagraphStyle

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

Parameters

indentPoints System.Nullable{System.Double} requiredposition: 0
public PowerPointParagraphStyle WithLeftMarginPoints(Nullable<Double> leftMarginPoints) #
Returns: PowerPointParagraphStyle

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

Parameters

leftMarginPoints System.Nullable{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(Nullable<Double> lineSpacingMultiplier) #
Returns: PowerPointParagraphStyle

Returns a copy with a new line spacing multiplier.

Parameters

lineSpacingMultiplier System.Nullable{System.Double} requiredposition: 0
public PowerPointParagraphStyle WithLineSpacingPoints(Nullable<Double> lineSpacingPoints) #
Returns: PowerPointParagraphStyle

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

Parameters

lineSpacingPoints System.Nullable{System.Double} requiredposition: 0
public PowerPointParagraphStyle WithSpaceAfterPoints(Nullable<Double> spaceAfterPoints) #
Returns: PowerPointParagraphStyle

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

Parameters

spaceAfterPoints System.Nullable{System.Double} requiredposition: 0
public PowerPointParagraphStyle WithSpaceBeforePoints(Nullable<Double> spaceBeforePoints) #
Returns: PowerPointParagraphStyle

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

Parameters

spaceBeforePoints System.Nullable{System.Double} requiredposition: 0

Properties

public Nullable<TextAlignmentTypeValues> Alignment { get; } #

Paragraph alignment.

public Nullable<Int32> Level { get; } #

Bullet/list level (0-8).

public Nullable<Double> IndentPoints { get; } #

Indentation in points.

public Nullable<Double> LeftMarginPoints { get; } #

Left margin in points.

public Nullable<Double> HangingPoints { get; } #

Hanging indent in points.

public Nullable<Double> LineSpacingPoints { get; } #

Line spacing in points.

public Nullable<Double> LineSpacingMultiplier { get; } #

Line spacing multiplier (1.0 = 100%).

public Nullable<Double> SpaceBeforePoints { get; } #

Space before the paragraph in points.

public Nullable<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.