---
title: "LengthOrAuto constructor"
url: "https://reference.aspose.com/svg/python-net/aspose.svg.drawing/lengthorauto/__init__/"
product: "Aspose.SVG for Python via .NET API References"
---


## __init__ {#}

Initializes a new instance of the [`LengthOrAuto`](/svg/python-net/aspose.svg.drawing/lengthorauto) class and sets state to 'auto'.



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




## __init__ {#aspose.svg.drawing.Length}

Initializes a new instance of the [`LengthOrAuto`](/svg/python-net/aspose.svg.drawing/lengthorauto) class and sets state to 'lenght'.



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


| Parameter | Type | Description |
| :- | :- | :- |
| length | [`Length`](/svg/python-net/aspose.svg.drawing/length) | The length. |



### See Also
* module [`aspose.svg.drawing`](../../)
* class [`LengthOrAuto`](/svg/python-net/aspose.svg.drawing/lengthorauto)
