Language

ContentCaptureNodeProperties.ContentDescription Property

Definition

Gets or sets the content description of the node as a string.

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

Property Value

The content description, or null if it was explicitly set to null.

Remarks

This is the string form of ContentDescriptionFormatted. 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 HasContentDescription before reading this property. The getter throws IllegalStateException if the content description has not been set. Setting this property to null still marks it as explicitly set; Clear() removes that state.

Android content description contract; .NET string property implementation.

Applies to