
## __init__ {#str}

Initializes a new instance of the [`StringContent`](/svg/python-net/aspose.svg.net/stringcontent) class.



```python
def __init__(self, content):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| content | str | The content. |


## __init__ {#str-System.Text.Encoding}

Initializes a new instance of the [`StringContent`](/svg/python-net/aspose.svg.net/stringcontent) class.



```python
def __init__(self, content, encoding):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| content | str | The content. |
| encoding | System.Text.Encoding | The encoding. |


## __init__ {#str-System.Text.Encoding-str}

Initializes a new instance of the [`StringContent`](/svg/python-net/aspose.svg.net/stringcontent) class.



```python
def __init__(self, content, encoding, media_type):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| content | str | The content. |
| encoding | System.Text.Encoding | The encoding. |
| media_type | str | Type of the media. |



### See Also
* module [`aspose.svg.net`](../../)
* class [`StringContent`](/svg/python-net/aspose.svg.net/stringcontent)
