Share via


SelectableWordSegment Class

Definition

Represents a segment from your provided text that includes a word and any trailing whitespace and/or punctuation after this word.

public ref class SelectableWordSegment sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class SelectableWordSegment final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class SelectableWordSegment
Public NotInheritable Class SelectableWordSegment
Inheritance
Object Platform::Object IInspectable SelectableWordSegment
Attributes

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0 - for Xbox, see UWP features that aren't yet supported on Xbox)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)

Remarks

Your code does not instantiate this class directly. Instead, you use instances retrieved from a SelectableWordsSegmenter object.

Properties

SourceTextSegment

Gets the TextSegment that identifies the source text's sub-string that is the selected word.

Text

Gets the text of the selected word identified by this SelectableWordSegment object.

Applies to