Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/

API Reference

Class

OneNoteTextRun

Namespace OfficeIMO.OneNote
Assembly OfficeIMO.OneNote
Source revision 804a7612eee4 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) #
Returns: OneNoteTextRun

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

Parameters

expression OfficeIMO.Drawing.OfficeMathExpression requiredposition: 0
public OneNoteTextRun TransformTextCase(OfficeTextCase textCase, CultureInfo? culture = null) #
Returns: OneNoteTextRun

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

Parameters

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

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 Boolean HyperlinkProtected { get; set; } #

Whether the hyperlink is protected from editing.

public IList<OneNoteOpaqueProperty> UnknownProperties { get; } #

Unknown run properties preserved in encoded source order.