Skip to content

Latest commit

 

History

History
53 lines (43 loc) · 1.11 KB

GetWSCellAlignment.md

File metadata and controls

53 lines (43 loc) · 1.11 KB

GetWSCellAlignment

Description

Returns the horizontal alignment setting of a cell in the referenced worksheet.

PROCEDURE GetWSCellAlignment(
				worksheet         : HANDLE;
				row               : INTEGER;
				column            : INTEGER;
				VAR cellAlignment : INTEGER);
def vs.GetWSCellAlignment(worksheet, row, column):
    return cellAlignment

Parameters

Name Type Description
worksheet HANDLE Handle to a worksheet.
row INTEGER Row of cell to be queried.
column INTEGER Column of cell to be queried.
cellAlignment INTEGER Horizontal alignment index of cell.

Remarks

Alignment constants: General = 0 Left = 1 Center = 2 Right = 3

Examples

GetWSCellAlignment(worksheet, 1, 2, 3);
import vs

# Returns the horizontal alignment setting of a cell in the referenced worksheet.
worksheet = vs.GetObject('MyWorksheet')  # handle to a worksheet
row = 10
column = 5

result = vs.GetWSCellAlignment(worksheet, row, column)

Version

Availability: from VectorWorks9.0

Category