Skip to content

Latest commit

 

History

History
69 lines (55 loc) · 1.37 KB

GetCAlign.md

File metadata and controls

69 lines (55 loc) · 1.37 KB

GetCAlign

Description

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

Parameters

Name Type Description
h HANDLE Handle to worksheet.
row INTEGER Worksheet row index.
col INTEGER Worksheet column index.

Examples

VectorScript

AlignmentMode := GetCAlign(WSheetHd, 4, 5);

Python

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))

See Also

GetWSCellAlignment

Version

GetCAlign is obsolete as of VectorWorks 9.0, see new GetWSCellAlignment

Availability: from All Versions

Category