Antenna House PDF Tool API (C++) 8.0
|
#include <PtlTextBox.h>
公開型 | |
enum | MODE { MODE_HORIZONTAL = 0 , MODE_VERTICAL = 1 } |
enum | OUTLINE_STYLE { OUTLINE_STYLE_SOLID = 1 , OUTLINE_STYLE_DASHED = 2 } |
公開メンバ関数 | |
int | getHandle () const |
PtlTextBox () | |
コンストラクタ | |
PtlTextBox (const PtlTextBox &obj) | |
コピーコンストラクタ | |
~PtlTextBox () | |
デストラクタ | |
PtlTextBox & | operator= (const PtlTextBox &obj) |
コピーオペレータ | |
void | setWritingMode (MODE mode) |
横書き/縦書きを設定。 | |
void | writeString (const PtlParamString &str, const PtlParamWriteStringTextBox ¶mWriteString) |
文字列を出力。 | |
void | writeStringNL (const PtlParamString &str, const PtlParamWriteStringTextBox ¶mWriteString) |
文字列を出力して改行。 | |
void | writeNL () |
改行。 | |
void | writeNL (float size) |
改行。 | |
void | terminate () |
テキストボックスを終了。 | |
void | setOutlineStyle (OUTLINE_STYLE lineStyle) |
テキストボックスの縁取のスタイルをOUTLINE_STYLEで設定。 | |
void | setOutlineColor (const PtlColor &outlineColor) |
テキストボックスの縁取り色を設定。 | |
void | setBackColor (const PtlColor &bkColor) |
背景色を設定。 | |
void | setOpacity (float opacity) |
不透明度を設定。 | |
void | fitToBBox (bool fit) |
TextBoxのサイズをテキストのBBoxに合わせるかどうかの設定。 |
ページに描画されるテキストボックスを表現するクラスです。
テキストボックスをにテキストを書き、テキストボックスをコンテントに配置します。
PtlTextBox.h の 21 行目に定義があります。
PdfTk::PtlTextBox::PtlTextBox | ( | ) |
コンストラクタ
PtlException |
PdfTk::PtlTextBox::PtlTextBox | ( | const PtlTextBox & | obj | ) |
void PdfTk::PtlTextBox::fitToBBox | ( | bool | fit | ) |
TextBoxのサイズをテキストのBBoxに合わせるかどうかの設定。
※ 設定しない場合はデフォルト値としてfalseが使用されます。
fit | trueなら合わせる。 |
PtlException |
PtlTextBox & PdfTk::PtlTextBox::operator= | ( | const PtlTextBox & | obj | ) |
コピーオペレータ
obj | コピー元オブジェクト。 |
void PdfTk::PtlTextBox::setBackColor | ( | const PtlColor & | bkColor | ) |
void PdfTk::PtlTextBox::setOpacity | ( | float | opacity | ) |
void PdfTk::PtlTextBox::setOutlineColor | ( | const PtlColor & | outlineColor | ) |
void PdfTk::PtlTextBox::setOutlineStyle | ( | OUTLINE_STYLE | lineStyle | ) |
テキストボックスの縁取のスタイルをOUTLINE_STYLEで設定。
※ 設定しない場合はデフォルト値としてOUTLINE_STYLE_SOLIDが設定されます。
lineStyle | 線スタイルの指定。 |
PtlException |
void PdfTk::PtlTextBox::setWritingMode | ( | MODE | mode | ) |
横書き/縦書きを設定。
横書き/縦書きを設定します。
途中で変更は出来ません。
※ 設定しない場合はデフォルト値としてMODE_HORIZONTALが使用されます。
mode | 横書きか縦書き。MODEのいずれか。 |
PtlException |
void PdfTk::PtlTextBox::terminate | ( | ) |
void PdfTk::PtlTextBox::writeNL | ( | ) |
void PdfTk::PtlTextBox::writeNL | ( | float | size | ) |
void PdfTk::PtlTextBox::writeString | ( | const PtlParamString & | str, |
const PtlParamWriteStringTextBox & | paramWriteString ) |
void PdfTk::PtlTextBox::writeStringNL | ( | const PtlParamString & | str, |
const PtlParamWriteStringTextBox & | paramWriteString ) |