SSpread.TypeButtonAlignプロパティ

 

コマンドボタン型セルで、設定された画像に対してテキストをどの位置に配置するかを設定します。

 

CellTypeプロパティに$CellTypeButton(コマンドボタン型)が設定されたセルのみ有効です。

このプロパティを設定する前に、ColRowプロパティなどを使用して処理の対象を指定します。

 

以下の値を指定します。初期値は$TypeButtonAlignBottomです。

定数

説明

$TypeButtonAlignBottom

0

画像の下にテキストを配置

$TypeButtonAlignTop

1

画像の上にテキストを配置

$TypeButtonAlignLeft

2

画像の左にテキストを配置

$TypeButtonAlignRight

3

画像の右にテキストを配置

 

コマンドボタンに表示するテキストはTypeButtonTextプロパティで設定します。

TypeButtonPictureプロパティ、TypeButtonPictureDownプロパティで画像が設定されていない場合、テキストは中央に表示されます。

 

このプロパティはコマンドボタン型セルのプロパティ継承の対象です。

 

 

使用例

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

 

関連項目

CellTypeTypeButtonPictureTypeButtonPictureDownTypeButtonTextプロパティ

 



「オンラインマニュアル」一覧へ戻る
「Bizの宝箱」TOPへ戻る