CGrid:SetTH_Titles CGrid:SetVertAlign

CGrid:SetTH_VertAlign


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

Syntax

CGrid:SetTH_VertAlign( 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 the top heading rows to "bottom":

G = new_grid()

-- create a new CGrid object

-- assemble the grid

 

G:SetTH_VertAlign( 2 )

-- set the cell alignment to "bottom"

Related Topics

CGrid class, SetHorzAlign, SetSH_HorzAlign


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