PreferredWidth
Overview
PreferredWidth is a class in Aspose.Words FOSS for Python.
Inherits from: BaseModel.
Preferred width of a table / cell.
This class declares 3 methods for PreferredWidth objects in Python programs.
Available methods include: auto, from_percent, from_points.
Public members are accessible to any Python application after installing the Aspose.Words FOSS for Python package.
Properties: is_auto, type, value.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
is_auto | bool | Read | Gets the is auto. |
type | int | Read | Gets the type. |
value | float | Read | Gets the value. |
Methods
| Signature | Description |
|---|---|
auto() → "PreferredWidth" | Returns an automatic width object, while PreferredWidth.from_percent(p) and PreferredWidth.from_points(pt) create explicit width specifications |
from_percent(percent: float) → "PreferredWidth" | Calls from_percent(percent) on this PreferredWidth instance. |
from_points(points: float) → "PreferredWidth" | Calls from_points(points) on this PreferredWidth instance. |