セル内のテキストの表示方向を設定します。
CellTypeプロパティに以下の値が設定されたセルのみ有効です。
|
$CellTypeDate(日付型) |
|
$CellTypeEdit(文字型) |
|
$CellTypePic(マスク型) |
|
$CellTypeStaticText(ラベル型) |
|
$CellTypeTime(時刻型) |
|
$CellTypeCurrency(通貨型) |
|
$CellTypeNumber(数値型) |
|
$CellTypePercent(パーセント型) |
|
$CellTypeScientific(指数型) |
このプロパティを設定する前に、Col、Rowプロパティなどを使用して処理の対象を指定します。
以下の値を指定します。初期値は$TypeTextOrientHorizontalです。
定数 |
値 |
説明 |
|---|---|---|
|
$TypeTextOrientHorizontal |
0 |
横書き |
|
$TypeTextOrientVerticalLTR |
1 |
縦書き(左から右に折り返し) |
|
$TypeTextOrientDown |
2 |
90度回転(下向き) |
|
$TypeTextOrientUp |
3 |
270度回転(上向き) |
|
$TypeTextOrientInvert |
4 |
180度回転(反転) |
|
$TypeTextOrientVerticalRTL |
5 |
縦書き(右から左に折り返し) |
入力モード(EditModeプロパティが$TRUEの状態)のときは、通常の表示(横書き、回転なし)になります。
$TypeTextOrientVerticalLTR、$TypeTextOrientVerticalRTL(縦書き)の折り返し方向は、複数行表示(ラベル型セルのTypeTextWordWrap、文字型セルのTypeEditMultiLineプロパティを$TRUE)の場合の方向です。
このプロパティは各データ型セルごとのプロパティ継承の対象です。
使用例
Col = 3; Row = 2; CellType = $CellTypeEdit; TypeTextOrient = $TypeTextOrientInvert; Value = "sample"; BlockMode = $TRUE; Col = 3; Row = 3; Col2 = 5; Row2 = 5; CellType = $CellTypeNumber; TypeTextOrient = $TypeTextOrientDown; Value = 10; BlockMode = $FALSE;
関連項目
CellTypeプロパティ