TextGetOptions Enum

Definition

Specifies options for retrieving the text in a document or text range.

This enumeration supports a bitwise combination of its member values.

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

Windows requirements

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

Fields

AdjustCrlf 1

If the starting character position is in the middle of a construct such as a CRLF (U+000D U+000A), surrogate pair, variation-selector sequence, or table-row delimiter, move to the beginning of the construct.

AllowFinalEop 8

Allow retrieving the final end-of-paragraph (EOP) if it’s included in the range. This EOP exists in all rich-text controls and cannot be deleted. It does not exist in plain-text controls.

FormatRtf 8192

Retrieve Rich Text Format (RTF) instead of plain text. Rich Text Format (RTF) is a BYTE (8-bit) format, but because ITextRange.GetText returns a string, the Rich Text Format (RTF) is returned as WCHARs (16-bit or UTF-16), not bytes, when you call ITextRange.GetText with the FormatRtf value. When you call ITextRange.SetText with FormatRtf, the method accepts an string containing either bytes or WCHARs, but other Rich Text Format (RTF) readers only understand bytes.

IncludeNumbering 64

Include list numbers.

NoHidden 32

Don't include hidden text.

None 0

None of the following options is used.

UseCrlf 2

Use carriage return/line feed (CR/LF) in place of a carriage return.

UseLf 16777216

Use line feed (LF) in place of all carriage returns.

UseObjectText 4

Retrieve text including the alternate text for the images in the range.

Remarks

If both UseLf and UseCrLf are used an invalid argument exception is thrown.

Version history

Windows version SDK version Value added
1703 15063 UseLf

Applies to

See also