PowerPointParagraphStyle
OfficeIMO.PowerPoint
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.
Returned or exposed by 12
- Method PowerPointParagraphStyle.WithAlignment
- Method PowerPointParagraphStyle.WithHanging
- Method PowerPointParagraphStyle.WithIndent
- Method PowerPointParagraphStyle.WithLeftMargin
- Method PowerPointParagraphStyle.WithLevel
- Method PowerPointParagraphStyle.WithLineSpacing
- Method PowerPointParagraphStyle.WithLineSpacingMultiplier
- Method PowerPointParagraphStyle.WithSpaceAfter
- Method PowerPointParagraphStyle.WithSpaceBefore
- Property PowerPointParagraphStyle.Comfortable
- Property PowerPointParagraphStyle.Compact
- Property PowerPointParagraphStyle.Spacious
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
- level int? = null
- indent OfficeIMO.OfficeLength? = null
- leftMargin OfficeIMO.OfficeLength? = null
- hanging OfficeIMO.OfficeLength? = null
- lineSpacing OfficeIMO.OfficeLength? = null
- lineSpacingMultiplier double? = null
- spaceBefore OfficeIMO.OfficeLength? = null
- spaceAfter OfficeIMO.OfficeLength? = null
Methods
public void Apply(PowerPointParagraph paragraph) #Applies the style to a paragraph.
Parameters
- paragraph OfficeIMO.PowerPoint.PowerPointParagraph
public PowerPointParagraphStyle WithAlignment(PowerPointTextAlignment alignment) #Returns a copy with a new alignment.
Parameters
- alignment OfficeIMO.PowerPoint.PowerPointTextAlignment
Returns
PowerPointParagraphStylepublic PowerPointParagraphStyle WithHanging(OfficeLength? hanging) #Returns a copy with a new hanging indent physical length.
Parameters
- hanging OfficeIMO.OfficeLength?
Returns
PowerPointParagraphStylepublic PowerPointParagraphStyle WithIndent(OfficeLength? indent) #Returns a copy with a new indentation physical length.
Parameters
- indent OfficeIMO.OfficeLength?
Returns
PowerPointParagraphStylepublic PowerPointParagraphStyle WithLeftMargin(OfficeLength? leftMargin) #Returns a copy with a new left margin physical length.
Parameters
- leftMargin OfficeIMO.OfficeLength?
Returns
PowerPointParagraphStylepublic PowerPointParagraphStyle WithLevel(int level) #Returns a copy with a new list level.
Parameters
- level int
Returns
PowerPointParagraphStylepublic PowerPointParagraphStyle WithLineSpacing(OfficeLength? lineSpacing) #Returns a copy with a new line spacing physical length.
Parameters
- lineSpacing OfficeIMO.OfficeLength?
Returns
PowerPointParagraphStylepublic PowerPointParagraphStyle WithLineSpacingMultiplier(double? lineSpacingMultiplier) #Returns a copy with a new line spacing multiplier.
Parameters
- lineSpacingMultiplier double?
Returns
PowerPointParagraphStylepublic PowerPointParagraphStyle WithSpaceAfter(OfficeLength? spaceAfter) #Returns a copy with a new space after physical length.
Parameters
- spaceAfter OfficeIMO.OfficeLength?
Returns
PowerPointParagraphStylepublic PowerPointParagraphStyle WithSpaceBefore(OfficeLength? spaceBefore) #Returns a copy with a new space before physical length.
Parameters
- spaceBefore OfficeIMO.OfficeLength?
Returns
PowerPointParagraphStyleInherited Methods
Properties
public PowerPointTextAlignment? Alignment { get; } #Paragraph alignment.
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.