PreferredWidth
概述
PreferredWidth 是 Aspose.Words FOSS 中用于 Python 的一个类。继承自:BaseModel。
表格/单元格的首选宽度。
此类提供 3 个方法用于在 Python 程序中处理 PreferredWidth 对象。可用的方法包括:auto、from_percent、from_points。安装 Aspose.Words FOSS for Python 包后,所有公共成员对任何 Python 应用程序均可访问。属性:is_auto、type、value。
属性
| 名称 | 类型 | 访问 | 描述 |
|---|---|---|---|
is_auto | bool | 读取 | 获取是否自动。 |
type | int | 读取 | 获取类型。 |
value | float | 读取 | 获取该值。 |
方法
| 签名 | 描述 |
|---|---|
auto() → "PreferredWidth" | 在此 PreferredWidth 实例上调用 auto. |
from_percent(percent: float) → "PreferredWidth" | 在此 PreferredWidth 实例上调用 from_percent(percent)。 |
from_points(points: float) → "PreferredWidth" | 在此 PreferredWidth 实例上调用 from_points(points)。 |