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_autobool读取获取是否自动。
typeint读取获取类型。
valuefloat读取获取该值。

方法

签名描述
auto() → "PreferredWidth"在此 PreferredWidth 实例上调用 auto.
from_percent(percent: float) → "PreferredWidth"在此 PreferredWidth 实例上调用 from_percent(percent)。
from_points(points: float) → "PreferredWidth"在此 PreferredWidth 实例上调用 from_points(points)。

另请参阅

 中文