Bewerken

Delen via


DataObject.GetText Method

Definition

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

Overloads

GetText(TextDataFormat)

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

GetText()

Returns a string that contains the UnicodeText data in this data object.

GetText(TextDataFormat)

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

public:
 System::String ^ GetText(System::Windows::TextDataFormat format);
public string GetText (System.Windows.TextDataFormat format);
member this.GetText : System.Windows.TextDataFormat -> string
Public Function GetText (format As TextDataFormat) As String

Parameters

format
TextDataFormat

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

Returns

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

Exceptions

format does not specify a valid member of TextDataFormat.

See also

Applies to

GetText()

Returns a string that contains the UnicodeText data in this data object.

public:
 System::String ^ GetText();
public string GetText ();
member this.GetText : unit -> string
Public Function GetText () As String

Returns

A string that contains the UnicodeText data, or an empty string if no UnicodeText data is available.

Remarks

The UnicodeText data format denotes 16-bit character encoded Unicode, also referred to as UTF-16, and USC-2.

See also

Applies to