RichEditTextDocument.GetMath(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Retrieves the RichEditBox content as MathML.
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 GetMath([Out] Platform::String ^ & value) = GetMath;
void GetMath([Out] winrt::hstring const& & value);
public void GetMath(out string value);
Public Sub GetMath (ByRef value As String)
Parameters
- value
-
String
Platform::String
winrt::hstring
The RichEditBox content as MathML.
Windows requirements
Device family |
Windows 10, version 2004 (introduced in 10.0.19041.0)
|
API contract |
Windows.Foundation.UniversalApiContract (introduced in v10.0)
|
Remarks
This method fails if current math mode of the RichEditBox is set to NoMath.
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.