CGrid:SetVertAlign


The SetVertAlign method sets the vertical alignment for all grid cells. To set the vertical alignment for cells in the top heading, use SetTH_VertAlign. This method overrides the initial grid property defined by the value of GridParams.nVertAlign.

Syntax

CGrid:SetVertAlign( nAlign )

bullet.gif    Where nAlign is the alignment value: 1: align top, 2: align bottom, 3: align center.

Example

The following script sets the alignment of row 12 to "bottom":

G = new_grid()

-- create a new CGrid object

-- assemble the grid

 

G:SetVertAlign( 12, 2 )

-- set the cell alignment to "bottom"

Related Topics

CGrid class, SetHorzAlign, SetTH_VertAlign


Mira Pro x64 Script User's Guide, Copyright Ⓒ 2023 Mirametrics, Inc. All Rights Reserved.