Language

SafeStringFlagMode Enum

Definition

This enumeration supports a bitwise combination of its member values.

[System.Flags]
public enum SafeStringFlagMode
[<System.Flags>]
type SafeStringFlagMode = 
Inheritance
SafeStringFlagMode
Attributes

Fields

Name Value Description
Trim 1

Remove whitespace and non-breaking spaces from the edges of the label.

Android reference for android.text.TextUtils.SAFE_STRING_FLAG_TRIM.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

SingleLine 2

Force entire string into single line of text (no newlines). Cannot be set at the same time as SAFE_STRING_FLAG_FIRST_LINE.

Android reference for android.text.TextUtils.SAFE_STRING_FLAG_SINGLE_LINE.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

FirstLine 4

Return only first line of text (truncate at first newline). Cannot be set at the same time as SAFE_STRING_FLAG_SINGLE_LINE.

Android reference for android.text.TextUtils.SAFE_STRING_FLAG_FIRST_LINE.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to