مشاركة عبر


RichEditMathMode Enum

Definition

Defines constants that specify whether a RichEditBox interprets input as math (MathML) or text.

Important

Windows 11, version 23H2 and earlier: the math mode API are part of a Limited Access Feature (see LimitedAccessFeatures class). For more information or to request an unlock token, please use the LAF Access Token Request Form.

public enum class RichEditMathMode
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 655360)]
enum class RichEditMathMode
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 655360)]
public enum RichEditMathMode
var value = Windows.UI.Text.RichEditMathMode.noMath
Public Enum RichEditMathMode
Inheritance
RichEditMathMode
Attributes

Windows requirements

Device family
Windows 10, version 2004 (introduced in 10.0.19041.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v10.0)

Fields

Name Value Description
NoMath 0

Input is interpreted as text.

MathOnly 1

Input is interpreted as math.

Remarks

Math mode enables users to have input automatically recognized and converted to MathML while being received. For example, "4^2" is converted to "42", and "1/2" is converted to "½".

Math mode might change formatting (fonts), context menus, and other aspects of the input.

Applies to

See also