Skip to main content

LineSpacing.eq

Метод __eq__ используется для определения эквивалентности двух объектов типа CellProperties.

Пример​


firstCellProps = myOfficeSDK.CellProperties()
firstCellProps.verticalAlignment = myOfficeSDK.VerticalAlignment_Center
firstCellProps.textLayout = myOfficeSDK.TextLayout_ShrinkSizeToFitWidth
firstCellProps.fill = myOfficeSDK.Fill(myOfficeSDK.Color(myOfficeSDK.ColorRGBA(255, 255, 0, 255)))
firstCellProps.textOrientation = myOfficeSDK.TextOrientation(45)

secondCellProps = myOfficeSDK.CellProperties()
secondCellProps.verticalAlignment = myOfficeSDK.VerticalAlignment_Center
secondCellProps.textLayout = myOfficeSDK.TextLayout_ShrinkSizeToFitWidth
secondCellProps.fill = myOfficeSDK.Fill(myOfficeSDK.Color(myOfficeSDK.ColorRGBA(255, 255, 0, 255)))
secondCellProps.textOrientation = myOfficeSDK.TextOrientation(45)

if firstCellProps.__eq__(secondCellProps):
print("Equals")