API Reference

Class

OdtParagraph

Namespace OfficeIMO.OpenDocument
Assembly OfficeIMO.OpenDocument
Modifiers sealed

An XML-backed ODT paragraph or heading.

Inheritance

  • Object
  • OdtParagraph

Usage

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Accepted by parameters

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

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 Nullable<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<OdtImage> Images { get; } #

Embedded image frames in this paragraph.

public Boolean PageBreakBefore { get; set; } #

Controls whether this paragraph starts on a new page.

public Nullable<Boolean> Bold { get; set; } #

Explicit or inherited bold state.

public Nullable<Boolean> Italic { get; set; } #

Explicit or inherited italic state.

public Nullable<OdfLength> FontSize { get; set; } #

Explicit or inherited font size.

public Nullable<OdfColor> Color { get; set; } #

Explicit or inherited text color.