ClipData.NewPlainText Method
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.
Overloads
NewPlainText(ICharSequence, ICharSequence) |
Create a new ClipData holding data of the type
|
NewPlainText(String, String) |
Create a new ClipData holding data of the type
|
NewPlainText(ICharSequence, ICharSequence)
Create a new ClipData holding data of the type
ClipDescription#MIMETYPE_TEXT_PLAIN
.
[Android.Runtime.Register("newPlainText", "(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Landroid/content/ClipData;", "")]
public static Android.Content.ClipData? NewPlainText (Java.Lang.ICharSequence? label, Java.Lang.ICharSequence? text);
[<Android.Runtime.Register("newPlainText", "(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Landroid/content/ClipData;", "")>]
static member NewPlainText : Java.Lang.ICharSequence * Java.Lang.ICharSequence -> Android.Content.ClipData
Parameters
- label
- ICharSequence
User-visible label for the clip data.
- text
- ICharSequence
The actual text in the clip.
Returns
Returns a new ClipData containing the specified data.
- Attributes
Remarks
Create a new ClipData holding data of the type ClipDescription#MIMETYPE_TEXT_PLAIN
.
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
NewPlainText(String, String)
Create a new ClipData holding data of the type
ClipDescription#MIMETYPE_TEXT_PLAIN
.
public static Android.Content.ClipData? NewPlainText (string? label, string? text);
static member NewPlainText : string * string -> Android.Content.ClipData
Parameters
- label
- String
User-visible label for the clip data.
- text
- String
The actual text in the clip.
Returns
Returns a new ClipData containing the specified data.
Remarks
Create a new ClipData holding data of the type ClipDescription#MIMETYPE_TEXT_PLAIN
.
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.