CellAttributes Method  
 

Return the display attributes for the terminal emulator for a specified cell.

Syntax

object.Attribute( X, Y )

Parameters

X
An integer value that specifies a horizontal position in the virtual display buffer. This value must be in the range of 0 through the number of Columns -1.
Y
An integer value that specifies a vertical position in the virtual display buffer. This value must be in the range of 0 through the number of Rows -1.

Return Value

If an invalid position is specified, the method returns -1. Otherwise, the method returns a mask of graphic attributes for the display position. The following table lists the attributes that are recognized by the control. The value returned by the method is a combination of the bits that correspond to these values.

Value Description
Normal display, no attributes enabled
Reverse video attribute
Bold attribute (use BoldColor color to display text)
Dim attribute
Blink attribute (not supported)
Underline attribute
Hidden attribute
Protected attribute (not supported)
Graphics attribute

See Also

Attributes Property, Columns Property, Rows Property