---
title: "subtract method"
url: "https://reference.aspose.com/cad/python-net/aspose.cad/sizef/subtract/"
product: "Aspose.CAD for Python via .NET API References"
---


## subtract {#aspose.cad.SizeF-aspose.cad.SizeF}

Subtracts the width and height of one [`SizeF`](/cad/python-net/aspose.cad/sizef) structure from the width and height of another [`SizeF`](/cad/python-net/aspose.cad/sizef) structure.


### Returns 


The [`SizeF`](/cad/python-net/aspose.cad/sizef) that is a result of the subtraction operation.


```python
def subtract(self, size1, size2):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| size1 | [`SizeF`](/cad/python-net/aspose.cad/sizef) | The [`SizeF`](/cad/python-net/aspose.cad/sizef) structure on the left side of the subtraction operator. |
| size2 | [`SizeF`](/cad/python-net/aspose.cad/sizef) | The [`SizeF`](/cad/python-net/aspose.cad/sizef) structure on the right side of the subtraction operator. |



### See Also
* module [`aspose.cad`](../../)
* class [`SizeF`](/cad/python-net/aspose.cad/sizef)
