Dela via


RichEditTextDocument.SetMathMode(RichEditMathMode) Method

Definition

Configures a RichEditBox to interpret input based on the specified math mode.

Important

Windows 11, version 23H2 and earlier: the math mode APIs 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:
 virtual void SetMathMode(RichEditMathMode mode) = SetMathMode;
void SetMathMode(RichEditMathMode const& mode);
public void SetMathMode(RichEditMathMode mode);
function setMathMode(mode)
Public Sub SetMathMode (mode As RichEditMathMode)

Parameters

mode
RichEditMathMode

Specifies whether a RichEditBox interprets input as (MathML) or text.

Windows requirements

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

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