TextSetOptions Enum


Specifies options for setting the text in a text range.

This enumeration supports a bitwise combination of its member values.

public enum class TextSetOptions
/// [System.Flags]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
enum class TextSetOptions
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
public enum TextSetOptions
var value = Windows.UI.Text.TextSetOptions.none
Public Enum TextSetOptions

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)


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 32

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

FormatRtf 8192

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

None 0

No text setting option is specified.

Unhide 16

Don't insert as hidden text.

UnicodeBidi 1

Use the Unicode bidirectional algorithm.


Don't include text as part of a hyperlink.

Applies to

See also