Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

OdfTextParagraph

OfficeIMO.OpenDocument

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

A native paragraph or heading in Draw text content.

Inheritance

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.

Methods

public OdfTextParagraph AddText(string text) #

Appends native text and returns this paragraph.

Parameters

text string required
public void SetTabStops(IReadOnlyList<OdfTabStop> stops) #

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

Transforms stored text and returns the same native receiver.

Parameters

textCase OfficeIMO.Drawing.OfficeTextCase required
culture System.Globalization.CultureInfo? = null optional

Properties

public bool IsHeading { get; } #

Whether this element is a heading.

public string? TextAlign { get; set; } #

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

public string? WritingMode { get; set; } #

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

public OdfLength? LineHeight { get; set; } #

Effective paragraph line height, absolute or percentage.

public OdfLength? MarginLeft { get; set; } #

Effective left paragraph margin.

public OdfLength? MarginRight { get; set; } #

Effective right paragraph margin.

public OdfLength? MarginTop { get; set; } #

Effective top paragraph margin.

public OdfLength? MarginBottom { get; set; } #

Effective bottom paragraph margin.