DataObject.GetText Method (TextDataFormat)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Returns a string that contains text data of the specified format in this data object.

Namespace:   System.Windows
Assembly:  PresentationCore (in PresentationCore.dll)

public string GetText(
	TextDataFormat format
)

Parameters

format
Type: System.Windows.TextDataFormat

A member of TextDataFormat that specifies the specific text data format to retrieve.

Return Value

Type: System.String

A string containing text data in the specified data format, or an empty string if no corresponding text data is available.

Exception Condition
InvalidEnumArgumentException

format does not specify a valid member of TextDataFormat.

.NET Framework
Available since 3.0
Return to top
Show: