Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

OfficeMathExpression

OfficeIMO.Drawing

Namespace
OfficeIMO.Drawing
Assembly
OfficeIMO.Core
Source revision
ba882f6b0d07 with working tree changes
Implements
IEquatable<OfficeMathExpression>
Modifiers
sealed

An immutable node in a reusable mathematical expression tree.

Inheritance

  • object
  • OfficeMathExpression

Usage

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

Accepted by parameters 42

Methods

Equals 2 overloads
public bool Equals(OfficeMathExpression? other) #

Indicates whether the current object is equal to another object of the same type.

Parameters

other OfficeIMO.Drawing.OfficeMathExpression? required
An object to compare with this object.

Returns

bool true if the current object is equal to the other parameter; otherwise, false.
public override bool Equals(object? obj) #

Determines whether the specified object is equal to the current object.

Parameters

obj object? required
The object to compare with the current object.

Returns

bool true if the specified object is equal to the current object; otherwise, false.
public override int GetHashCode() #

Serves as the default hash function.

Returns

int A hash code for the current object.
public string ToPlainText() #

Returns a readable plain-text projection.

Returns

string
public override string ToString() #

Returns a string that represents the current object.

Returns

string A string that represents the current object.
public OfficeMathExpression TransformTextCase(OfficeTextCase textCase, CultureInfo? culture = null) #

Returns a structurally equivalent expression with cased text and identifier tokens transformed.

Parameters

textCase OfficeIMO.Drawing.OfficeTextCase required
Transformation to apply.
culture System.Globalization.CultureInfo? = null optional
Culture used for casing. The current culture is used when omitted.

Properties

public OfficeMathKind Kind { get; } #

Node kind.

public string? Text { get; } #

Token text for text, identifier, number, operator, or function nodes.

public string? Character { get; } #

Primary delimiter, accent, or n-ary operator character.

public string? SecondaryCharacter { get; } #

Secondary delimiter character.

public string? SeparatorCharacter { get; } #

Separator used by a delimiter list.

public IReadOnlyList<OfficeMathExpression> Children { get; } #

Child expressions in semantic order.

public OfficeMathExpression? NaryLowerLimit { get; } #

Lower limit for an n-ary expression, or null when omitted.

public OfficeMathExpression? NaryUpperLimit { get; } #

Upper limit for an n-ary expression, or null when omitted.

public int RowCount { get; } #

Row count for matrix-like structures.

public int ColumnCount { get; } #

Column count for matrix-like structures.