ContentCaptureNodeProperties.Text Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.