TextSetOptions TextSetOptions TextSetOptions TextSetOptions TextSetOptions Enum


Specifies options for setting the text in a text range.

This enumeration has a System.FlagsAttribute attribute that allows a bitwise combination of its member values.

public : enum class TextSetOptions
enum class winrt::Windows::UI::Text::TextSetOptions : uint32_t
public enum TextSetOptions
Public Enum TextSetOptions
var value = Windows.UI.Text.TextSetOptions.applyRtfDocumentDefaults;
System.FlagsAttribute ContractVersionAttribute
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)


ApplyRtfDocumentDefaults ApplyRtfDocumentDefaults ApplyRtfDocumentDefaults ApplyRtfDocumentDefaults ApplyRtfDocumentDefaults 16384

Apply the Rich Text Format (RTF) default settings for the document. Rich Text Format (RTF) often contains document default properties. These properties are typically ignored when inserting Rich Text Format (RTF) (as distinguished from opening an Rich Text Format (RTF) file).

CheckTextLimit CheckTextLimit CheckTextLimit CheckTextLimit CheckTextLimit 32

Obey the current text limit instead of increasing the limit to fit.

FormatRtf FormatRtf FormatRtf FormatRtf FormatRtf 8192

Treat input text as Rich Text Format (RTF) (the Rich Text Format (RTF) text will be validated).

None None None None None 0

No text setting option is specified.

Unhide Unhide Unhide Unhide Unhide 16

Don't insert as hidden text.

UnicodeBidi UnicodeBidi UnicodeBidi UnicodeBidi UnicodeBidi 1

Use the Unicode bidirectional algorithm.


Don't include text as part of a hyperlink.

See Also