Link Search Menu Expand Document

SSpread.TypeButtonAlign Property

In the command button type cell, set where to place the text with respect to the set image.

Only valid for cells with $CellTypeButton (command button type) set in the CellType property. Before setting this property, use the Col and Row properties, and so on to specify what to do.

Specify the following values. The initial value is $TypeButtonAlignBottom.

Constant Value Description
$TypeButtonAlignBottom 0 Place text below image
$TypeButtonAlignTop 1 Place text on top of the image
$TypeButtonAlignLeft 2 Place text to the left of the image
$TypeButtonAlignRight 3 Place text to right of image

The text displayed on the command button is set with the TypeButtonText property. If the image is not set in the TypeButtonPicture property and TypeButtonPictureDown property, the text will be displayed in the center.

This property is subject to Property inheritance for command button cells.

Example of usage

Col = 3;
Row = 2;
CellType = $CellTypeButton;
TypeButtonText = " Button 1";
TypeButtonPicture = "sample1.png";
TypeButtonAlign = $ TypeButtonAlignTop;
 
BlockMode = $ TRUE;
Col = 3;
Row = 3;
Col2 = 5;
Row2 = 5;
CellType = $CellTypeButton;
TypeButtonText = " Button 2";
TypeButtonPicture = "sample2.png";
TypeButtonAlign = $ TypeButtonAlignLeft;
BlockMode = $ FALSE;

Related Items
CellType, TypeButtonPicture, TypeButtonPictureDown, TypeButtonText properties