SSpread.TypePercentNegStyleプロパティ

 

パーセント型セルで、負数の書式を設定します。

 

CellTypeプロパティに$CellTypePercent(パーセント型)が設定されたセルのみ有効です。

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

 

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

定数

説明

$TypePercentNegStyleIntl

0

OSの設定値に従う

$TypePercentNegStyle1

1

(1.1%)

$TypePercentNegStyle2

2

-1.1%

$TypePercentNegStyle3

3

1.1%

$TypePercentNegStyle4

4

1.1%-

$TypePercentNegStyle5

5

-1.1 %

$TypePercentNegStyle6

6

1.1 %-

$TypePercentNegStyle7

7

1.1%

$TypePercentNegStyle8

8

(1.1 %)

 

TypeNegRedプロパティを$TRUEにすると負数を赤色で表示できます。

 

このプロパティはパーセント型セルのプロパティ継承の対象です。

 

 

使用例

Col = 3;
Row = 2;
CellType = $CellTypePercent;
TypePercentNegStyle = $TypePercentNegStyle1;
Value = -0.123;
 
BlockMode = $TRUE;
Col = 3;
Row = 3;
Col2 = 5;
Row2 = 5;
CellType = $CellTypePercent;
TypePercentNegStyle = $TypePercentNegStyle3;
Value = -0.456;
BlockMode = $FALSE;

 

関連項目

CellTypeTypeNegRedプロパティ

 



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