Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/

API Reference

Class

OdtParagraph

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

An XML-backed ODT paragraph or heading.

Inheritance

  • Object
  • OdtParagraph

Usage

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

Accepted by parameters 1

Methods

public OdtParagraph AddBookmark(String name) #
Returns: OdtParagraph

Appends a collapsed bookmark.

Parameters

name System.String requiredposition: 0
public OdtParagraph AddBookmarkEnd(String name) #
Returns: OdtParagraph

Appends a bookmark range end marker.

Parameters

name System.String requiredposition: 0
public OdtParagraph AddBookmarkStart(String name) #
Returns: OdtParagraph

Appends a bookmark range start marker.

Parameters

name System.String requiredposition: 0
public OdtNote AddEndnote(String text) #
Returns: OdtNote

Appends a native endnote at the current inline position.

Parameters

text System.String requiredposition: 0
public OdtField AddField(OdtFieldKind kind, String? displayText) #
Returns: OdtField

Appends a native ODT field with cached display text.

Parameters

kind OfficeIMO.OpenDocument.OdtFieldKind requiredposition: 0
displayText System.String? requiredposition: 1
public OdtNote AddFootnote(String text) #
Returns: OdtNote

Appends a native footnote at the current inline position.

Parameters

text System.String requiredposition: 0
public OdtImage AddImage(Byte[] data, String fileName, OdfLength width, OdfLength height, OdtImageAnchor anchor = Inline) #
Returns: OdtImage

Appends an inline or paragraph-anchored image.

Parameters

data System.Byte[] requiredposition: 0
fileName System.String requiredposition: 1
width OfficeIMO.OpenDocument.OdfLength requiredposition: 2
height OfficeIMO.OpenDocument.OdfLength requiredposition: 3
anchor OfficeIMO.OpenDocument.OdtImageAnchor = Inline optionalposition: 4
public OdtSpan AddSpan(String? text = null) #
Returns: OdtSpan

Appends a styled text span.

Parameters

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

Appends plain text while encoding ODF whitespace semantics.

Parameters

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

Changes stored paragraph text casing while preserving spans, hyperlinks, bookmarks, and images.

Parameters

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

Properties

public String Text { get; set; } #

Plain text with ODF spaces, tabs, and line breaks decoded.

public String? StyleName { get; set; } #

Referenced paragraph style name.

public Boolean IsHeading { get; } #

True when this block is a heading.

public Int32? HeadingLevel { get; set; } #

Heading outline level, or null for a normal paragraph.

public IReadOnlyList<OdtSpan> Spans { get; } #

Inline text spans in this paragraph.

public IReadOnlyList<OdtField> Fields { get; } #

Native page, count, date, and time fields in paragraph order.

public IReadOnlyList<OdtInlineNode> InlineNodes { get; } #

Direct inline nodes in document order. Use this syntax view when mixed plain text, spans, links, images, or bookmark markers must be processed without flattening.

public IReadOnlyList<OdtNote> Notes { get; } #

Footnotes and endnotes referenced from this paragraph, in source order.

public IReadOnlyList<OdtImage> Images { get; } #

Embedded image frames in this paragraph.

public Boolean PageBreakBefore { get; set; } #

Controls whether this paragraph starts on a new page.

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 OdfColor? Color { get; set; } #

Explicit or inherited text color.

public OdfColor? TextBackgroundColor { get; set; } #

Explicit or inherited text background color.

public String? FontFamily { get; set; } #

Explicit or inherited font family.

public OdfColor? BackgroundColor { get; set; } #

Explicit or inherited paragraph background color.

public OdtParagraphAlignment? Alignment { get; set; } #

Explicit or inherited horizontal paragraph alignment.

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 OdfLength? IndentStart { get; set; } #

Explicit or inherited paragraph start indentation.

public OdfLength? IndentEnd { get; set; } #

Explicit or inherited paragraph end indentation.

public OdfLength? FirstLineIndent { get; set; } #

Explicit or inherited first-line indentation.

public OdfLength? SpaceAbove { get; set; } #

Explicit or inherited spacing above the paragraph.

public OdfLength? SpaceBelow { get; set; } #

Explicit or inherited spacing below the paragraph.