Function GetCAlign returns the alignment value of a cell in the referenced worksheet.
Table - Worksheet Cell Alignment
| Alignment | Constant |
|---|---|
| General | 1 |
| Left | 2 |
| Right | 3 |
| Center | 4 |
FUNCTION GetCAlign(
h : HANDLE;
row : INTEGER;
col : INTEGER): INTEGER;def vs.GetCAlign(h, row, col):
return INTEGER| Name | Type | Description |
|---|---|---|
| h | HANDLE | Handle to worksheet. |
| row | INTEGER | Worksheet row index. |
| col | INTEGER | Worksheet column index. |
AlignmentMode := GetCAlign(WSheetHd, 4, 5);AlignmentMode = vs.GetCAlign(WSheetHd, 4, 5)resultN := GetCAlign(h, 1, 2);import vs
# Function GetCAlign returns the alignment value of a cell in the referenced
# worksheet.
h = vs.FSActLayer() # handle to the first selected object on the active layer
row = 10
col = 5
resultN = vs.GetCAlign(h, row, col)
vs.Message('GetCAlign returned: ' + str(resultN))GetCAlign is obsolete as of VectorWorks 9.0, see new GetWSCellAlignment
Availability: from All Versions