# DataFormats

Namespace: **Wisej.Web**

Assembly: **Wisej.Framework** (3.2.0.0)

Provides static, predefined [Clipboard](https://docs.wisej.com/api/v3.2/wisej.web/general/wisej.web.clipboard), format names. Use them to identify the format of data that you store in an [IDataObject](https://docs.wisej.com/api/v3.2/wisej.web/interfaces/wisej.web.idataobject).

{% tabs %}
{% tab title="C#" %}

```csharp
public class DataFormats
```

{% endtab %}

{% tab title="VB.NET" %}

```visual-basic
Public Class DataFormats
```

{% endtab %}
{% endtabs %}

## Fields

| Name                    | Type                                                          | Description                                                                                                                                |
| ----------------------- | ------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------ |
| **Bitmap**              | [String](https://docs.microsoft.com/dotnet/api/system.string) | Specifies the bitmap format. This static field is read-only.                                                                               |
| **CommaSeparatedValue** | [String](https://docs.microsoft.com/dotnet/api/system.string) | Specifies a comma-separated value (CSV) format, which is a common interchange format used by spreadsheets. This static field is read-only. |
| **Dib**                 | [String](https://docs.microsoft.com/dotnet/api/system.string) | Specifies the device-independent bitmap (DIB) format. This static field is read-only.                                                      |
| **Dif**                 | [String](https://docs.microsoft.com/dotnet/api/system.string) | Specifies the Windows Data Interchange Format (DIF). This static field is read-only.                                                       |
| **DownloadURL**         | [String](https://docs.microsoft.com/dotnet/api/system.string) | Specifies the html5 file drag format. This static field is read-only.                                                                      |
| **EnhancedMetafile**    | [String](https://docs.microsoft.com/dotnet/api/system.string) | Specifies the enhanced metafile format. This static field is read-only.                                                                    |
| **FileDrop**            | [String](https://docs.microsoft.com/dotnet/api/system.string) | Specifies the Windows file drop format. This static field is read-only.                                                                    |
| **Files**               | [String](https://docs.microsoft.com/dotnet/api/system.string) | Specifies the html5 file drop format. This static field is read-only.                                                                      |
| **Html**                | [String](https://docs.microsoft.com/dotnet/api/system.string) | Specifies text in the HTML Clipboard format. This static field is read-only.                                                               |
| **Locale**              | [String](https://docs.microsoft.com/dotnet/api/system.string) | Specifies the culture format. This static field is read-only.                                                                              |
| **MetafilePict**        | [String](https://docs.microsoft.com/dotnet/api/system.string) | Specifies the Windows metafile format. This static field is read-only.                                                                     |
| **OemText**             | [String](https://docs.microsoft.com/dotnet/api/system.string) | Specifies the standard original equipment manufacturer (OEM) text format. This static field is read-only.                                  |
| **Palette**             | [String](https://docs.microsoft.com/dotnet/api/system.string) | Specifies the Windows palette format. This static field is read-only.                                                                      |
| **PenData**             | [String](https://docs.microsoft.com/dotnet/api/system.string) | Specifies the pen data format, which consists of pen strokes for handwriting software. This static field is read-only.                     |
| **Riff**                | [String](https://docs.microsoft.com/dotnet/api/system.string) | Specifies the Resource Interchange File Format (RIFF) audio format. This static field is read-only.                                        |
| **Rtf**                 | [String](https://docs.microsoft.com/dotnet/api/system.string) | Specifies text consisting of Rich Text Format (RTF) data. This static field is read-only.                                                  |
| **StringFormat**        | [String](https://docs.microsoft.com/dotnet/api/system.string) | Specifies the format used to store string objects. This static field is read-only.                                                         |
| **SymbolicLink**        | [String](https://docs.microsoft.com/dotnet/api/system.string) | Specifies the symbolic link format. This static field is read-only.                                                                        |
| **Text**                | [String](https://docs.microsoft.com/dotnet/api/system.string) | Specifies the standard ANSI text format. This static field is read-only.                                                                   |
| **Tiff**                | [String](https://docs.microsoft.com/dotnet/api/system.string) | Specifies the Tagged Image File Format (TIFF). This static field is read-only.                                                             |
| **UnicodeText**         | [String](https://docs.microsoft.com/dotnet/api/system.string) | Specifies the standard Unicode text format. This static field is read-only.                                                                |
| **WaveAudio**           | [String](https://docs.microsoft.com/dotnet/api/system.string) | Specifies the wave audio format. This static field is read-only.                                                                           |

## Methods

### ![](https://3811934619-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FaN9qL9rX9v301dsI6CfD%2Fuploads%2Fgit-blob-e4f8ed47a52590951f725a10c269555e81d41d81%2Fstatic.png?alt=media\&token=ead2f53e-d284-40fe-b124-7932aae1c1d8)GetFormat(name)

Returns a [Format](https://docs.wisej.com/api/v3.2/wisej.web/enumerations/wisej.web.dataformats.format) for the specified format.

| Parameter | Type                                                          | Description      |
| --------- | ------------------------------------------------------------- | ---------------- |
| **name**  | [String](https://docs.microsoft.com/dotnet/api/system.string) | The format name. |

**Returns:** [Format](https://docs.wisej.com/api/v3.2/wisej.web/enumerations/wisej.web.dataformats.format). A [Format](https://docs.wisej.com/api/v3.2/wisej.web/enumerations/wisej.web.dataformats.format) that has the numeric ID and the name of the format.

### ![](https://3811934619-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FaN9qL9rX9v301dsI6CfD%2Fuploads%2Fgit-blob-e4f8ed47a52590951f725a10c269555e81d41d81%2Fstatic.png?alt=media\&token=ead2f53e-d284-40fe-b124-7932aae1c1d8)GetFormat(id)

Returns a [Format](https://docs.wisej.com/api/v3.2/wisej.web/enumerations/wisej.web.dataformats.format) for the specified ID.

| Parameter | Type                                                        | Description    |
| --------- | ----------------------------------------------------------- | -------------- |
| **id**    | [Int32](https://docs.microsoft.com/dotnet/api/system.int32) | The format ID. |

**Returns:** [Format](https://docs.wisej.com/api/v3.2/wisej.web/enumerations/wisej.web.dataformats.format). A [Format](https://docs.wisej.com/api/v3.2/wisej.web/enumerations/wisej.web.dataformats.format) that has the requested numeric ID and the name of the format.
