ClipboardObject.GetFormats Method (Boolean)

Retrieves a list of all formats that are supported for the data stored in the clipboard object, using an automatic conversion parameter to determine whether to retrieve only native data formats or all formats that the data can be converted to.

Namespace:  Microsoft.VisualStudio.Data.Framework
Assembly:  Microsoft.VisualStudio.Data.Framework (in Microsoft.VisualStudio.Data.Framework.dll)

Syntax

'Declaration
Public Overrides Function GetFormats ( _
    autoConvert As Boolean _
) As String()
public override string[] GetFormats(
    bool autoConvert
)
public:
virtual array<String^>^ GetFormats(
    bool autoConvert
) override
abstract GetFormats : 
        autoConvert:bool -> string[] 
override GetFormats : 
        autoConvert:bool -> string[] 
public override function GetFormats(
    autoConvert : boolean
) : String[]

Parameters

  • autoConvert
    Type: System.Boolean

    Specifies whether to retrieve all formats that the data can be converted to or is associated with (true), or to retrieve only the native data formats (false).

Return Value

Type: array<System.String[]
An array of string values representing all formats that are supported for the data stored in the clipboard object.

Implements

IDataObject.GetFormats(Boolean)

Remarks

This method delegates the call to the GetFormats method of the DataObject class.

.NET Framework Security

See Also

Reference

ClipboardObject Class

GetFormats Overload

Microsoft.VisualStudio.Data.Framework Namespace