Language

ContentCaptureNodeProperties.Text Property

Definition

Gets or sets the text of the node as a string.

public string? Text { get; set; }
member this.Text : string with get, set

Property Value

The text, or null if it was explicitly set to null.

Remarks

This is the string form of TextFormatted. The getter converts the character sequence to a string. The setter passes a Java string, or null, to that property. Use the formatted property to retain spans.

Check HasText before reading this property. The getter throws IllegalStateException if the text has not been set. Set this property to null to remove the current text while still marking the property as explicitly set; Clear() removes that state.

Android node text contract; .NET string property implementation.

Applies to