Delphi Programming / Object Pascal

[掲載 2009年05月12日] [更新 2009年05月12日] ワード操作フォームEx |
ワード操作フォームEx
図形と画像の挿入 |
| 動作確認等 |
- |
wdfPutShape(Left,Top,Width,Height,FileName):Boolean
関数です。図形を、指定の位置とサイズで挿入します。
文字列の折返しなしの状態で挿入されます。指定した図形ファイルがない等、失敗するとFalseを返します。座標値の基準は用紙の端からです。 |
| 引数 |
型 |
説明 |
| vLeft |
Integer |
用紙左端からの位置。0.1 mm 単位 |
| vTop |
Integer |
用紙上端からの位置。0.1 mm 単位 |
| vWidth |
Integer |
図形の描画幅。0.1 mm 単位 |
| vHeight |
Integer |
図形の描画高さ。0.1 mm 単位 |
| pFileName |
String |
読込む図形ファイル名をフルパスで指定する |
wdfPutLine(Xb,Xe,Yb,Ye,LineWidth,LineStyle,Color)
| 指定した座標間に線を引きます。座標値の基準はすべて用紙の端からです。文字列の折返しなしの状態で挿入されます。 |
| 引数 |
型 |
説明 |
| Xb |
Integer |
描画開始のX座標値。0.1mm単位 |
| Xe |
Integer |
描画終点のX座標値。0.1 mm 単位 |
| Yb |
Integer |
描画開始のY座標値。0.1 mm 単位 |
| Ye |
Integer |
描画終点のY座標値。0.1 mm 単位 |
| LineWidth |
Integer |
線の幅。0.1 mm 単位 |
| LineStyle |
TPenStyle |
線の種類
指定可能なのは psSolid と psDot だけ |
| Color |
TColor |
線の色 |
wdfPutBox(Xb,Xe,Yb,Ye,LineWidth,LineStyle,Color)
| 指定した座標間を結ぶ矩形を描画します。座標値の基準はすべて用紙の端からです。文字列の折返しなしの状態で挿入されます。塗潰しもなしです。 |
| 引数 |
型 |
説明 |
| Xb |
Integer |
描画開始のX座標値。0.1mm単位 |
| Xe |
Integer |
描画終点のX座標値。0.1mm単位 |
| Yb |
Integer |
描画開始のY座標値。0.1 mm 単位 |
| Ye |
Integer |
描画終点のY座標値。0.1 mm 単位 |
| LineWidth |
Integer |
線の幅。0.1 mm 単位 |
| LineStyle |
TPenStyle |
線の種類
指定可能なのは psSolid と psDot だけ |
| Color |
TColor |
線の色 |
wdfPutCircle(Xb,Xe,Yb,Ye,LineWidth,LineStyle,Color)
| 指定した座標を結ぶ矩形に内接した円または楕円を描画します。座標値の基準はすべて用紙の端からです。文字列の折返しなしの状態で挿入されます。塗潰しもなしです。 |
| 引数 |
型 |
説明 |
| Xb |
Integer |
矩形領域の開始X座標値。0.1 mm 単位 |
| Xe |
Integer |
矩形領域の終点X座標値。0.1 mm 単位 |
| Yb |
Integer |
矩形領域の開始Y座標値。0.1 mm 単位 |
| Ye |
Integer |
矩形領域の終点Y座標値。0.1 mm 単位 |
| LineWidth |
Integer |
線の幅。0.1 mm 単位 |
| LineStyle |
TPenStyle |
線の種類
指定可能なのは psSolid と psDot だけ |
| Color |
TColor |
線の色 |
wdfPutArrow(Xb,
Xe,
Yb,
Ye,
LineWidth,
LineStyle,
Color,
BeginArrow,
EndArrow)
| 矢印付きの直線を描画します。座標値の基準はすべて用紙の端からです。文字列の折返しなしの状態で挿入されます。 |
| 引数 |
型 |
説明 |
| Xb |
Integer |
描画開始のX座標値。0.1 mm 単位 |
| Xe |
Integer |
描画終点のX座標値。0.1 mm 単位 |
| Yb |
Integer |
描画開始のY座標値。0.1 mm 単位 |
| Ye |
Integer |
描画終点のY座標値。0.1 mm 単位 |
| LineWidth |
Integer |
線の幅。0.1mm単位 |
| LineStyle |
TPenStyle |
線の種類
指定可能なのは psSolid と psDot だけ |
| Color |
TColor |
線の色 |
| BeginArrow |
Boolean |
True の時は描画開始点に矢印が付く |
| EndArrow |
Boolean |
Ture の時は描画終点に矢印が付く |
|