Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

OdpRun

OfficeIMO.OpenDocument

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

An XML-backed presentation inline text run.

Inheritance

  • object
  • OdpRun

Usage

Explore 7 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 OdpRun AddRun(string? text = null) #

Appends a nested styled run.

Parameters

text string? = null optional

Returns

OdpRun
public OdpRun AddText(string text) #

Appends text after existing child nodes.

Parameters

text string required

Returns

OdpRun
public OdpRun TransformTextCase(OfficeTextCase textCase, CultureInfo? culture = null) #

Changes the stored run text casing while preserving its text style.

Parameters

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

Returns

OdpRun

Properties

public string Text { get; set; } #

Decoded run text.

public IReadOnlyList<OdpInlineNode> InlineNodes { get; } #

Ordered text, runs, and hyperlinks inside this run.

public string? StyleName { get; set; } #

Referenced text style name.

public bool? Bold { get; set; } #

Explicit or inherited bold state.

public bool? Italic { get; set; } #

Explicit or inherited italic state.

public bool? 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 bool UsesNonSolidUnderlineStyle { get; } #

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

public bool? 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 bool 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 bool? SmallCaps { get; set; } #

Explicit or inherited small-cap display formatting.

public string? FontFamily { get; set; } #

Explicit or inherited font family.

public OdfColor? Color { get; set; } #

Explicit or inherited text color.

public OdfColor? BackgroundColor { get; set; } #

Explicit or inherited text background color.

public bool HasTextBackgroundOverride { get; } #

Whether an inline style sets a text background, including transparent.