Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

OneNoteTextRun

OfficeIMO.OneNote

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

A formatted text run.

Inheritance

  • object
  • OneNoteTextRun

Usage

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

Constructors

public OneNoteTextRun() #

Methods

public OneNoteTextRun SetMathExpression(OfficeMathExpression expression) #

Assigns a structured inline mathematical expression and its readable text projection.

Parameters

expression OfficeIMO.Drawing.OfficeMathExpression required
public OneNoteTextRun TransformTextCase(OfficeTextCase textCase, CultureInfo? culture = null) #

Transforms the stored run text while preserving its native formatting, hyperlink, and opaque properties.

Parameters

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

Properties

public string Text { get; set; } #

Unicode run text.

public OfficeMathExpression? MathExpression { get; set; } #

Optional structured inline mathematical expression. The reusable expression tree is owned by OfficeIMO.Drawing; OneNote maps it to and from the native rich-text math grammar.

public OneNoteTextStyle Style { get; } #

Run formatting.

public bool HyperlinkProtected { get; set; } #

Whether the hyperlink is protected from editing.

public IList<OneNoteOpaqueProperty> UnknownProperties { get; } #

Unknown run properties preserved in encoded source order.