API Reference
PowerPointParagraphStyle
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
- level System.Nullable{System.Int32} = null
- indentPoints System.Nullable{System.Double} = null
- leftMarginPoints System.Nullable{System.Double} = null
- hangingPoints System.Nullable{System.Double} = null
- lineSpacingPoints System.Nullable{System.Double} = null
- lineSpacingMultiplier System.Nullable{System.Double} = null
- spaceBeforePoints System.Nullable{System.Double} = null
- spaceAfterPoints System.Nullable{System.Double} = null
Methods
public Void Apply(PowerPointParagraph paragraph) #VoidApplies the style to a paragraph.
Parameters
- paragraph OfficeIMO.PowerPoint.PowerPointParagraph
public PowerPointParagraphStyle WithAlignment(TextAlignmentTypeValues alignment) #PowerPointParagraphStyleReturns a copy with a new alignment.
Parameters
- alignment DocumentFormat.OpenXml.Drawing.TextAlignmentTypeValues
public PowerPointParagraphStyle WithHangingPoints(Nullable<Double> hangingPoints) #PowerPointParagraphStyleReturns a copy with a new hanging indent value (points).
Parameters
- hangingPoints System.Nullable{System.Double}
public PowerPointParagraphStyle WithIndentPoints(Nullable<Double> indentPoints) #PowerPointParagraphStyleReturns a copy with a new indentation value (points).
Parameters
- indentPoints System.Nullable{System.Double}
public PowerPointParagraphStyle WithLeftMarginPoints(Nullable<Double> leftMarginPoints) #PowerPointParagraphStyleReturns a copy with a new left margin value (points).
Parameters
- leftMarginPoints System.Nullable{System.Double}
public PowerPointParagraphStyle WithLevel(Int32 level) #PowerPointParagraphStyleReturns a copy with a new list level.
Parameters
- level System.Int32
public PowerPointParagraphStyle WithLineSpacingMultiplier(Nullable<Double> lineSpacingMultiplier) #PowerPointParagraphStyleReturns a copy with a new line spacing multiplier.
Parameters
- lineSpacingMultiplier System.Nullable{System.Double}
public PowerPointParagraphStyle WithLineSpacingPoints(Nullable<Double> lineSpacingPoints) #PowerPointParagraphStyleReturns a copy with a new line spacing value (points).
Parameters
- lineSpacingPoints System.Nullable{System.Double}
public PowerPointParagraphStyle WithSpaceAfterPoints(Nullable<Double> spaceAfterPoints) #PowerPointParagraphStyleReturns a copy with a new space after value (points).
Parameters
- spaceAfterPoints System.Nullable{System.Double}
public PowerPointParagraphStyle WithSpaceBeforePoints(Nullable<Double> spaceBeforePoints) #PowerPointParagraphStyleReturns a copy with a new space before value (points).
Parameters
- spaceBeforePoints System.Nullable{System.Double}
Inherited Methods
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.