Function GetCAlign returns the alignment value of a cell in the referenced worksheet.
{| class="wikitable_c"
| + Table - Worksheet Cell Alignment |
|---|
| ! Alignment !! Constant |
| - |
| General |
| style="text-align:center" |
| - |
| Left |
| style="text-align:center" |
| - |
| Right |
| style="text-align:center" |
| - |
| Center |
| style="text-align:center" |
| } |
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. |
==== VectorScript ====
AlignmentMode := GetCAlign(WSheetHd, 4, 5);==== Python ====
AlignmentMode = vs.GetCAlign(WSheetHd, 4, 5)[GetWSCellAlignment | GetWSCellAlignment](GetWSCellAlignment%20| GetWSCellAlignment.md)
GetCAlign is obsolete as of VectorWorks 9.0, see new [[VS:GetWSCellAlignment| GetWSCellAlignment]]
Availability: from All Versions
- Worksheets