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| 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. |
Alignment constants: General = 0 Left = 1 Center = 2 Right = 3
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)Availability: from VectorWorks9.0