Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/

API Reference

Class

OdpParagraph

Namespace OfficeIMO.OpenDocument
Assembly OfficeIMO.OpenDocument
Source revision a039964de4cc with working tree changes
Modifiers sealed

An XML-backed presentation paragraph.

Inheritance

  • Object
  • OdpParagraph

Usage

Explore 18 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.

Methods

public OdpRun AddRun(String? text = null) #
Returns: OdpRun

Adds an inline text run.

Parameters

text System.String? = null optionalposition: 0
public OdpParagraph AddText(String text) #
Returns: OdpParagraph

Appends plain text while encoding ODF whitespace semantics.

Parameters

text System.String requiredposition: 0
public OdpParagraph TransformTextCase(OfficeTextCase textCase, CultureInfo? culture = null) #
Returns: OdpParagraph

Changes the stored paragraph text casing while preserving the paragraph style.

Parameters

textCase OfficeIMO.Drawing.OfficeTextCase requiredposition: 0
culture System.Globalization.CultureInfo? = null optionalposition: 1

Properties

public String Text { get; set; } #

Decoded paragraph text.

public String? StyleName { get; set; } #

Referenced paragraph style name.

public IReadOnlyList<OdpRun> Runs { get; } #

Inline text runs.

public IReadOnlyList<OdpInlineNode> InlineNodes { get; } #

Direct inline nodes in document order.

public Boolean? Bold { get; set; } #

Explicit or inherited bold state.

public Boolean? Italic { get; set; } #

Explicit or inherited italic state.

public Boolean? Underline { get; set; } #

Explicit or inherited underline state.

public OdfTextDecorationStyle? UnderlineStyle { get; set; } #

Explicit or inherited native underline style.

public OdfTextDecorationType? UnderlineType { get; set; } #

Explicit or inherited native underline line count.

public Boolean UsesNonSolidUnderlineStyle { get; } #

Whether the effective underline uses a non-solid ODF decoration style.

public Boolean? StrikeThrough { get; set; } #

Explicit or inherited strike-through state.

public OdfTextDecorationStyle? LineThroughStyle { get; set; } #

Explicit or inherited native line-through style.

public OdfTextDecorationType? LineThroughType { get; set; } #

Explicit or inherited native line-through line count.

public Boolean UsesNonSolidLineThroughStyle { get; } #

Whether the effective line-through uses a non-solid ODF decoration style.

public OdfLength? FontSize { get; set; } #

Explicit or inherited font size.

public OdfTextPosition? TextPosition { get; set; } #

Explicit or inherited baseline placement.

public OdfTextTransform? TextTransform { get; set; } #

Explicit or inherited display-time case transformation.

public Boolean? SmallCaps { get; set; } #

Explicit or inherited small-cap display formatting.

public String? FontFamily { get; set; } #

Explicit or inherited font family.

public String? WritingMode { get; set; } #

Effective ODF writing-mode token, such as lr-tb or rl-tb.

public Boolean IsRightToLeft { get; } #

Whether the effective horizontal paragraph writing mode is right-to-left.

public OdfLength? LineHeight { get; set; } #

Effective paragraph line height, including absolute and percentage values.

public OdpParagraphAlignment? Alignment { get; set; } #

Explicit or inherited horizontal paragraph alignment.

public OdfColor? Color { get; set; } #

Explicit or inherited text color.

public OdfColor? BackgroundColor { get; set; } #

Explicit or inherited text background color.