# OdpParagraph

An XML-backed presentation paragraph.

Class 

`OfficeIMO.OpenDocument`

**Namespace**

`OfficeIMO.OpenDocument`

**Assembly**

`OfficeIMO.OpenDocument`

**Source revision**

`be6c300e4ab1` with working tree changes

**Source**

[OdpText.cs:104](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Presentation/OdpText.cs#L104)

**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.

### Returned or exposed by 18

- Property [OdpEllipse.TextParagraphs](/api/open-document/officeimo-opendocument-odpellipse/#property-textparagraphs)
- Property [OdpGroup.TextParagraphs](/api/open-document/officeimo-opendocument-odpgroup/#property-textparagraphs)
- Property [OdpImage.TextParagraphs](/api/open-document/officeimo-opendocument-odpimage/#property-textparagraphs)
- Property [OdpLine.TextParagraphs](/api/open-document/officeimo-opendocument-odpline/#property-textparagraphs)
- Method [OdpList.AddItem](/api/open-document/officeimo-opendocument-odplist/#method-additem-string)
- Property [OdpList.Items](/api/open-document/officeimo-opendocument-odplist/#property-items)
- Method [OdpNotes.AddParagraph](/api/open-document/officeimo-opendocument-odpnotes/#method-addparagraph-string)
- Property [OdpNotes.Paragraphs](/api/open-document/officeimo-opendocument-odpnotes/#property-paragraphs)
- Method [OdpParagraph.AddText](/api/open-document/officeimo-opendocument-odpparagraph/#method-addtext-string)
- Method [OdpParagraph.TransformTextCase](/api/open-document/officeimo-opendocument-odpparagraph/#method-transformtextcase-officeimo-drawing-officetextcase-globalization-cultureinfo)
- Property [OdpRectangle.TextParagraphs](/api/open-document/officeimo-opendocument-odprectangle/#property-textparagraphs)
- Property [OdpShape.TextParagraphs](/api/open-document/officeimo-opendocument-odpshape/#property-textparagraphs)
- Property [OdpTable.TextParagraphs](/api/open-document/officeimo-opendocument-odptable/#property-textparagraphs)
- Method [OdpTableCell.AddParagraph](/api/open-document/officeimo-opendocument-odptablecell/#method-addparagraph-string)
- Property [OdpTableCell.Paragraphs](/api/open-document/officeimo-opendocument-odptablecell/#property-paragraphs)
- Method [OdpTextBox.AddParagraph](/api/open-document/officeimo-opendocument-odptextbox/#method-addparagraph-string)
- Property [OdpTextBox.Paragraphs](/api/open-document/officeimo-opendocument-odptextbox/#property-paragraphs)
- Property [OdpTextBox.TextParagraphs](/api/open-document/officeimo-opendocument-odptextbox/#property-textparagraphs)

Filter members 

Show inherited

## Methods

`public OdpHyperlink AddHyperlink(string text, string href)` [#](#method-addhyperlink-string-string)

[OdpText.cs:115](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Presentation/OdpText.cs#L115)

Adds a hyperlink without resolving or fetching its target.

Parameters

**text string required**

**href string required**

Returns

`OdpHyperlink`

`public OdpRun AddRun(string? text = null)` [#](#method-addrun-string)

[OdpText.cs:106](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Presentation/OdpText.cs#L106)

Adds an inline text run.

Parameters

**text string? = null optional**

Returns

`OdpRun`

`public OdpParagraph AddText(string text)` [#](#method-addtext-string)

[OdpText.cs:104](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Presentation/OdpText.cs#L104)

Appends plain text while encoding ODF whitespace semantics.

Parameters

**text string required**

Returns

`OdpParagraph`

`public OdpParagraph TransformTextCase(OfficeTextCase textCase, CultureInfo? culture = null)` [#](#method-transformtextcase-officeimo-drawing-officetextcase-globalization-cultureinfo)

[OdpText.cs:109](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Presentation/OdpText.cs#L109)

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

Parameters

**textCase OfficeIMO.Drawing.OfficeTextCase required**

**culture System.Globalization.CultureInfo? = null optional**

Returns

`OdpParagraph`

## Inherited Methods

`public virtual bool Equals(object? obj)` [#](#method-equals-object)

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

`public virtual int GetHashCode()` [#](#method-gethashcode)

Inherited from object

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public virtual string? ToString()` [#](#method-tostring)

Inherited from object

Returns

`string?`

## Properties

`public string Text { get; set; }` [#](#property-text)

[OdpText.cs:43](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Presentation/OdpText.cs#L43)

Decoded paragraph text.

`public string? StyleName { get; set; }` [#](#property-stylename)

[OdpText.cs:45](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Presentation/OdpText.cs#L45)

Referenced paragraph style name.

`public IReadOnlyList<OdpRun> Runs { get; }` [#](#property-runs)

[OdpText.cs:47](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Presentation/OdpText.cs#L47)

Inline text runs.

`public IReadOnlyList<OdpInlineNode> InlineNodes { get; }` [#](#property-inlinenodes)

[OdpText.cs:49](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Presentation/OdpText.cs#L49)

Direct inline nodes in document order.

`public bool? Bold { get; set; }` [#](#property-bold)

[OdpText.cs:51](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Presentation/OdpText.cs#L51)

Explicit or inherited bold state.

`public bool? Italic { get; set; }` [#](#property-italic)

[OdpText.cs:53](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Presentation/OdpText.cs#L53)

Explicit or inherited italic state.

`public bool? Underline { get; set; }` [#](#property-underline)

[OdpText.cs:55](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Presentation/OdpText.cs#L55)

Explicit or inherited underline state.

`public OdfTextDecorationStyle? UnderlineStyle { get; set; }` [#](#property-underlinestyle)

[OdpText.cs:57](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Presentation/OdpText.cs#L57)

Explicit or inherited native underline style.

`public OdfTextDecorationType? UnderlineType { get; set; }` [#](#property-underlinetype)

[OdpText.cs:59](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Presentation/OdpText.cs#L59)

Explicit or inherited native underline line count.

`public bool UsesNonSolidUnderlineStyle { get; }` [#](#property-usesnonsolidunderlinestyle)

[OdpText.cs:61](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Presentation/OdpText.cs#L61)

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

`public bool? Strikethrough { get; set; }` [#](#property-strikethrough)

[OdpText.cs:63](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Presentation/OdpText.cs#L63)

Explicit or inherited strike-through state.

`public OdfTextDecorationStyle? LineThroughStyle { get; set; }` [#](#property-linethroughstyle)

[OdpText.cs:65](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Presentation/OdpText.cs#L65)

Explicit or inherited native line-through style.

`public OdfTextDecorationType? LineThroughType { get; set; }` [#](#property-linethroughtype)

[OdpText.cs:67](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Presentation/OdpText.cs#L67)

Explicit or inherited native line-through line count.

`public bool UsesNonSolidLineThroughStyle { get; }` [#](#property-usesnonsolidlinethroughstyle)

[OdpText.cs:69](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Presentation/OdpText.cs#L69)

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

`public OdfLength? FontSize { get; set; }` [#](#property-fontsize)

[OdpText.cs:71](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Presentation/OdpText.cs#L71)

Explicit or inherited font size.

`public OdfTextPosition? TextPosition { get; set; }` [#](#property-textposition)

[OdpText.cs:73](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Presentation/OdpText.cs#L73)

Explicit or inherited baseline placement.

`public OdfTextTransform? TextTransform { get; set; }` [#](#property-texttransform)

[OdpText.cs:75](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Presentation/OdpText.cs#L75)

Explicit or inherited display-time case transformation.

`public bool? SmallCaps { get; set; }` [#](#property-smallcaps)

[OdpText.cs:77](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Presentation/OdpText.cs#L77)

Explicit or inherited small-cap display formatting.

`public string? FontFamily { get; set; }` [#](#property-fontfamily)

[OdpText.cs:79](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Presentation/OdpText.cs#L79)

Explicit or inherited font family.

`public string? WritingMode { get; set; }` [#](#property-writingmode)

[OdpText.cs:81](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Presentation/OdpText.cs#L81)

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

`public bool IsRightToLeft { get; }` [#](#property-isrighttoleft)

[OdpText.cs:83](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Presentation/OdpText.cs#L83)

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

`public OdfLength? LineHeight { get; set; }` [#](#property-lineheight)

[OdpText.cs:86](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Presentation/OdpText.cs#L86)

Effective paragraph line height, including absolute and percentage values.

`public OdpParagraphAlignment? Alignment { get; set; }` [#](#property-alignment)

[OdpText.cs:89](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Presentation/OdpText.cs#L89)

Explicit or inherited horizontal paragraph alignment.

`public OdfColor? Color { get; set; }` [#](#property-color)

[OdpText.cs:93](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Presentation/OdpText.cs#L93)

Explicit or inherited text color.

`public OdfColor? BackgroundColor { get; set; }` [#](#property-backgroundcolor)

[OdpText.cs:97](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Presentation/OdpText.cs#L97)

Explicit or inherited text background color.

<!-- PowerForge markdown artifact sha256:42042D956D64D9D5967482C8FE00FD8FCE1CFDAF407D1347BAA574DE6B071484 -->
