GetText Method
Returns the dragged text if the DataObject contains any text.
Definition
Namespace: Avalonia.Input
Assembly: Avalonia.Base (in Avalonia.Base.dll)
- C#
- VB
- F#
public static string? GetText(
this IDataObject dataObject
)
<ExtensionAttribute>
Public Shared Function GetText (
dataObject As IDataObject
) As String
[<ExtensionAttribute>]
static member GetText :
dataObject : IDataObject -> string
Parameters
Return Value
String
A text string. If format isn't available, returns null.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type IDataObject. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).