CGridView:SetVal CGridView:ToTable

CGridView:SetVertAlign


The SetVertAlign method sets the vertical alignment for specific cells or an entire row of the grid. This method overrides the initial grid properties defined by the values of GridParams.nVertAlign and GridParams.nTH_VertAlign.

Syntax

CGridView:SetVertAlign( nAlign )

CGridView:SetVertAlign( nRow, nAlign )

CGridView:SetVertAlign( nCol, nRow, nAlign )

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

bullet.gif    nCol is the index of the column to set. Columns in the table body begin at index 1. A value of 0 or less indicates a column in the left side heading.

bullet.gif    nRow is the index of the row to set. Rows in the table body begin at index 1. A value of 0 or less indicates a row in the top heading.

bullet.gif    If neither nCol nor nRow is specified, the entire table is set.

Example

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

G = attach_gridview()

-- attach a grid from the Mira desktop

G:SetVertAlign( 12, 2 )

-- set the alignment of column 12 to "bottom"

Related Topics

CGridView class

SetHorzAlign


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