CGrid:SetSH_HorzAlign


The SetSH_HorzAlign method sets the horizontal alignment for all cells in the side heading. To set the horizontal alignment for cells not in the side heading, use SetHorzAlign. This method overrides the initial grid property defined by the value of GridParams.nSH_HorzAlign.

Syntax

CGrid:SetSH_HorzAlign( nAlign )

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

Example

The following script sets the alignment of the side heading columns to "center":

G = new_grid()

-- create a new CGrid object

-- assemble the grid

 

G:SetSH_HorzAlign( 3 )

-- set the alignment of side heading columns to "center"

Related Topics

CGrid class, SetVertAlign, SetHorzAlign


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