## CreateAlternateViewFromString(string) {#createalternateviewfromstring}

Creates a plain-text view from a string.

```csharp
public static AlternateView CreateAlternateViewFromString(string content)
```

| Parameter | Type | Description |
| --- | --- | --- |
| content | String | The content of the view. |

### Return Value

The new alternate view.

### See Also

* class [AlternateView](../)
* namespace [Aspose.Email](../../alternateview/)
* assembly [Aspose.Email](../../../)

---

## CreateAlternateViewFromString(string, Encoding, string) {#createalternateviewfromstring_3}

Creates a view from a string with the specified encoding and media type.

```csharp
public static AlternateView CreateAlternateViewFromString(string content, Encoding contentEncoding, 
    string mediaType)
```

| Parameter | Type | Description |
| --- | --- | --- |
| content | String | The content of the view. |
| contentEncoding | Encoding | The character encoding of the content. |
| mediaType | String | The MIME media type of the content, such as `text/html`. |

### Return Value

The new alternate view.

### See Also

* class [AlternateView](../)
* namespace [Aspose.Email](../../alternateview/)
* assembly [Aspose.Email](../../../)

---

## CreateAlternateViewFromString(string, ContentType) {#createalternateviewfromstring_1}

Creates a view from a string with the specified content type.

```csharp
public static AlternateView CreateAlternateViewFromString(string content, ContentType contentType)
```

| Parameter | Type | Description |
| --- | --- | --- |
| content | String | The content of the view. |
| contentType | ContentType | The content type of the view, with its media type and character set. |

### Return Value

The new alternate view.

### See Also

* class [ContentType](../../../aspose.email.mime/contenttype/)
* class [AlternateView](../)
* namespace [Aspose.Email](../../alternateview/)
* assembly [Aspose.Email](../../../)

---

## CreateAlternateViewFromString(string, ContentType, TransferEncoding) {#createalternateviewfromstring_2}

Creates a view from a string with the specified content type and transfer encoding.

```csharp
public static AlternateView CreateAlternateViewFromString(string content, ContentType contentType, 
    TransferEncoding transferencoding)
```

| Parameter | Type | Description |
| --- | --- | --- |
| content | String | The content of the view. |
| contentType | ContentType | The content type of the view, with its media type and character set. |
| transferencoding | TransferEncoding | The transfer encoding of the content, such as Base64 or quoted-printable. |

### Return Value

The new alternate view.

### See Also

* class [ContentType](../../../aspose.email.mime/contenttype/)
* enum [TransferEncoding](../../../aspose.email.mime/transferencoding/)
* class [AlternateView](../)
* namespace [Aspose.Email](../../alternateview/)
* assembly [Aspose.Email](../../../)


