# OdfTextParagraph

A native paragraph or heading in Draw text content.

Class 

`OfficeIMO.OpenDocument`

**Namespace**

`OfficeIMO.OpenDocument`

**Assembly**

`OfficeIMO.OpenDocument`

**Source revision**

`15caddadea70` with working tree changes

**Source**

[OdfTextParagraph.cs:6](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.OpenDocument/Text/OdfTextParagraph.cs#L6)

**Base**

`OdfTextContent`

**Modifiers**

sealed

A native paragraph or heading in Draw text content.

## Inheritance

- [OdfTextContent](/api/open-document/officeimo-opendocument-odftextcontent/)
- OdfTextParagraph

## Usage

Explore 6 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 6

- Method [OdfTextListItem.AddParagraph](/api/open-document/officeimo-opendocument-odftextlistitem/#method-addparagraph-string)
- Property [OdfTextListItem.Paragraphs](/api/open-document/officeimo-opendocument-odftextlistitem/#property-paragraphs)
- Method [OdfTextParagraph.AddText](/api/open-document/officeimo-opendocument-odftextparagraph/#method-addtext-string)
- Method [OdfTextParagraph.TransformTextCase](/api/open-document/officeimo-opendocument-odftextparagraph/#method-transformtextcase-officeimo-drawing-officetextcase-globalization-cultureinfo)
- Method [OdgShape.AddParagraph](/api/open-document/officeimo-opendocument-odgshape/#method-addparagraph-string)
- Property [OdgShape.Paragraphs](/api/open-document/officeimo-opendocument-odgshape/#property-paragraphs)

Filter members 

Show inherited

## Methods

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

[OdfTextParagraph.cs:6](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.OpenDocument/Text/OdfTextParagraph.cs#L6)

Appends native text and returns this paragraph.

Parameters

**text string required**

Returns

`OdfTextParagraph`

`public void SetTabStops(IReadOnlyList<OdfTabStop> stops)` [#](#method-settabstops-collections-generic-ireadonlylist-officeimo-opendocument-odftabstop)

[OdfTextParagraph.Tabs.cs:9](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.OpenDocument/Text/OdfTextParagraph.Tabs.cs#L9)

Replaces the paragraph's explicit tab set. An empty set overrides all inherited explicit stops.

Parameters

**stops System.Collections.Generic.IReadOnlyList<OfficeIMO.OpenDocument.OdfTabStop> required**

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

[OdfTextParagraph.cs:8](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.OpenDocument/Text/OdfTextParagraph.cs#L8)

Transforms stored text and returns the same native receiver.

Parameters

**textCase OfficeIMO.Drawing.OfficeTextCase required**

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

Returns

`OdfTextParagraph`

## Inherited Methods

`public OdfTextField AddField(OdfTextFieldKind kind, string? displayText = null)` [#](#method-addfield-odftextfieldkind-string)

[OdfTextContent.cs:84](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.OpenDocument/Text/OdfTextContent.cs#L84)

Inherited from [OdfTextContent](/api/open-document/officeimo-opendocument-odftextcontent/)

Parameters

**kind OdfTextFieldKind required**

**displayText string? = null optional**

Returns

`OdfTextField`

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

[OdfTextContent.cs:77](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.OpenDocument/Text/OdfTextContent.cs#L77)

Inherited from [OdfTextContent](/api/open-document/officeimo-opendocument-odftextcontent/)

Parameters

**text string required**

**href string required**

Returns

`OdfTextHyperlink`

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

[OdfTextContent.cs:72](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.OpenDocument/Text/OdfTextContent.cs#L72)

Inherited from [OdfTextContent](/api/open-document/officeimo-opendocument-odftextcontent/)

Parameters

**text string? = null optional**

Returns

`OdfTextRun`

`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?`

`public XElement ToXml()` [#](#method-toxml)

[OdfTextContent.cs:91](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.OpenDocument/Text/OdfTextContent.cs#L91)

Inherited from [OdfTextContent](/api/open-document/officeimo-opendocument-odftextcontent/)

Returns

`XElement`

## Properties

`public bool IsHeading { get; }` [#](#property-isheading)

[OdfTextParagraph.cs:12](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.OpenDocument/Text/OdfTextParagraph.cs#L12)

Whether this element is a heading.

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

[OdfTextParagraph.cs:14](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.OpenDocument/Text/OdfTextParagraph.cs#L14)

Native horizontal alignment token, such as start, center, end, or justify.

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

[OdfTextParagraph.cs:16](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.OpenDocument/Text/OdfTextParagraph.cs#L16)

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

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

[OdfTextParagraph.cs:18](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.OpenDocument/Text/OdfTextParagraph.cs#L18)

Effective paragraph line height, absolute or percentage.

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

[OdfTextParagraph.cs:20](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.OpenDocument/Text/OdfTextParagraph.cs#L20)

Effective left paragraph margin.

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

[OdfTextParagraph.cs:22](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.OpenDocument/Text/OdfTextParagraph.cs#L22)

Effective right paragraph margin.

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

[OdfTextParagraph.cs:24](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.OpenDocument/Text/OdfTextParagraph.cs#L24)

Effective top paragraph margin.

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

[OdfTextParagraph.cs:26](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.OpenDocument/Text/OdfTextParagraph.cs#L26)

Effective bottom paragraph margin.

## Inherited Properties

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

[OdfTextContent.cs:15](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.OpenDocument/Text/OdfTextContent.cs#L15)

Inherited from [OdfTextContent](/api/open-document/officeimo-opendocument-odftextcontent/)

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

[OdfTextContent.cs:17](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.OpenDocument/Text/OdfTextContent.cs#L17)

Inherited from [OdfTextContent](/api/open-document/officeimo-opendocument-odftextcontent/)

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

[OdfTextContent.cs:19](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.OpenDocument/Text/OdfTextContent.cs#L19)

Inherited from [OdfTextContent](/api/open-document/officeimo-opendocument-odftextcontent/)

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

[OdfTextContent.cs:21](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.OpenDocument/Text/OdfTextContent.cs#L21)

Inherited from [OdfTextContent](/api/open-document/officeimo-opendocument-odftextcontent/)

`public IReadOnlyList<OdfTextHyperlink> Hyperlinks { get; }` [#](#property-hyperlinks)

[OdfTextContent.cs:24](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.OpenDocument/Text/OdfTextContent.cs#L24)

Inherited from [OdfTextContent](/api/open-document/officeimo-opendocument-odftextcontent/)

`public IReadOnlyList<OdfTextField> Fields { get; }` [#](#property-fields)

[OdfTextContent.cs:27](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.OpenDocument/Text/OdfTextContent.cs#L27)

Inherited from [OdfTextContent](/api/open-document/officeimo-opendocument-odftextcontent/)

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

[OdfTextContent.cs:31](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.OpenDocument/Text/OdfTextContent.cs#L31)

Inherited from [OdfTextContent](/api/open-document/officeimo-opendocument-odftextcontent/)

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

[OdfTextContent.cs:33](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.OpenDocument/Text/OdfTextContent.cs#L33)

Inherited from [OdfTextContent](/api/open-document/officeimo-opendocument-odftextcontent/)

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

[OdfTextContent.cs:35](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.OpenDocument/Text/OdfTextContent.cs#L35)

Inherited from [OdfTextContent](/api/open-document/officeimo-opendocument-odftextcontent/)

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

[OdfTextContent.cs:37](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.OpenDocument/Text/OdfTextContent.cs#L37)

Inherited from [OdfTextContent](/api/open-document/officeimo-opendocument-odftextcontent/)

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

[OdfTextContent.cs:39](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.OpenDocument/Text/OdfTextContent.cs#L39)

Inherited from [OdfTextContent](/api/open-document/officeimo-opendocument-odftextcontent/)

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

[OdfTextContent.cs:41](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.OpenDocument/Text/OdfTextContent.cs#L41)

Inherited from [OdfTextContent](/api/open-document/officeimo-opendocument-odftextcontent/)

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

[OdfTextContent.cs:43](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.OpenDocument/Text/OdfTextContent.cs#L43)

Inherited from [OdfTextContent](/api/open-document/officeimo-opendocument-odftextcontent/)

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

[OdfTextContent.cs:45](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.OpenDocument/Text/OdfTextContent.cs#L45)

Inherited from [OdfTextContent](/api/open-document/officeimo-opendocument-odftextcontent/)

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

[OdfTextContent.cs:47](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.OpenDocument/Text/OdfTextContent.cs#L47)

Inherited from [OdfTextContent](/api/open-document/officeimo-opendocument-odftextcontent/)

`public double? TextOpacity { get; set; }` [#](#property-textopacity)

[OdfTextContent.cs:53](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.OpenDocument/Text/OdfTextContent.cs#L53)

Inherited from [OdfTextContent](/api/open-document/officeimo-opendocument-odftextcontent/)

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

[OdfTextContent.cs:58](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.OpenDocument/Text/OdfTextContent.cs#L58)

Inherited from [OdfTextContent](/api/open-document/officeimo-opendocument-odftextcontent/)

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

[OdfTextContent.cs:62](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.OpenDocument/Text/OdfTextContent.cs#L62)

Inherited from [OdfTextContent](/api/open-document/officeimo-opendocument-odftextcontent/)

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

[OdfTextContent.cs:64](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.OpenDocument/Text/OdfTextContent.cs#L64)

Inherited from [OdfTextContent](/api/open-document/officeimo-opendocument-odftextcontent/)

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

[OdfTextContent.cs:66](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.OpenDocument/Text/OdfTextContent.cs#L66)

Inherited from [OdfTextContent](/api/open-document/officeimo-opendocument-odftextcontent/)

<!-- PowerForge markdown artifact sha256:E838ABC05B9A1CBCE78F8CB14E002292E6EAF2A51F9E9C09E58C203D33B54DC8 -->
