bosing.Alignment

class bosing.Alignment

基类:object

Alignment of a schedule element.

The alignment of a schedule element is used to align the element within its parent element. The alignment can be one of the following:

Center = Alignment.Center
End = Alignment.End
Start = Alignment.Start
Stretch = Alignment.Stretch
static convert(obj)

Convert the value to Alignment.

The value can be one of the following:

参数:

obj (str | Alignment) -- The value to convert.

返回:

The converted value.

返回类型:

Alignment

抛出:

ValueError -- If the value cannot be converted to Alignment.