PDFTool.NET  7.0
Public Types | Public Member Functions | Protected Attributes | List of all members
PdfTkNet::PtlTextBox Class Reference

ページに描画されるテキストボックスを表現するクラスです。
テキストボックスをにテキストを書き、テキストボックスをコンテントに配置します。 More...

#include <NetTextBox.h>

Inheritance diagram for PdfTkNet::PtlTextBox:
Inheritance graph
[legend]
Collaboration diagram for PdfTkNet::PtlTextBox:
Collaboration graph
[legend]

Public Types

enum  MODE { MODE::MODE_HORIZONTAL = 0, MODE::MODE_VERTICAL = 1 }
 横書き/縦書き More...
 

Public Member Functions

PdfTk::PtlTextBox * getNative ()
 
 PtlTextBox ()
 コンストラクタ More...
 
 PtlTextBox (PtlTextBox^ obj)
 コピーコンストラクタ alias copy More...
 
 ‾PtlTextBox ()
 デストラクタ
 
 !PtlTextBox ()
 ファイナライザ。
 
PtlTextBox operator= (PtlTextBox^ obj)
 コピーオペレータ alias copy More...
 
void setWritingMode (MODE mode)
 横書き/縦書きを設定。 More...
 
void writeString (String^ str, PtlParamWriteStringTextBox^ paramWriteString)
 文字列を出力。 More...
 
void writeStringNL (String^ str, PtlParamWriteStringTextBox^ paramWriteString)
 文字列を出力して改行。 More...
 
void writeNL ()
 改行。 More...
 
void writeNL (float size)
 改行。 More...
 
void terminate ()
 テキストボックスを終了。 More...
 
void setOutlineColor (PtlColor^ outlineColor)
 テキストボックスの縁取り色を設定。 More...
 
void setBackColor (PtlColor^ bkColor)
 背景色を設定。 More...
 
void setOpacity (float opacity)
 不透明度を設定。 More...
 
void fitToBBox (bool fit)
 TextBoxのサイズをテキストのBBoxに合わせるかどうかの設定。 More...
 

Protected Attributes

PdfTk::PtlTextBox * m_native
 

Detailed Description

ページに描画されるテキストボックスを表現するクラスです。
テキストボックスをにテキストを書き、テキストボックスをコンテントに配置します。

Member Enumeration Documentation

◆ MODE

横書き/縦書き

Enumerator
MODE_HORIZONTAL 

横書き

MODE_VERTICAL 

縦書き

Constructor & Destructor Documentation

◆ PtlTextBox() [1/2]

PdfTkNet::PtlTextBox::PtlTextBox ( )

コンストラクタ

Exceptions
PtlException

◆ PtlTextBox() [2/2]

PdfTkNet::PtlTextBox::PtlTextBox ( PtlTextBox obj)

コピーコンストラクタ alias copy

Parameters
objコピー元オブジェクト。
Exceptions
PtlException

Member Function Documentation

◆ fitToBBox()

void PdfTkNet::PtlTextBox::fitToBBox ( bool  fit)

TextBoxのサイズをテキストのBBoxに合わせるかどうかの設定。

※ 設定しない場合はデフォルト値としてfalseが使用されます。

Parameters
fittrueなら合わせる。
Exceptions
PtlException

◆ operator=()

PtlTextBox PdfTkNet::PtlTextBox::operator= ( PtlTextBox obj)

コピーオペレータ alias copy

Parameters
objコピー元オブジェクト。

◆ setBackColor()

void PdfTkNet::PtlTextBox::setBackColor ( PtlColor bkColor)

背景色を設定。

※ 設定しない場合は背景色をはありません。

Parameters
bkColor背景色指定。
Exceptions
PtlException

◆ setOpacity()

void PdfTkNet::PtlTextBox::setOpacity ( float  opacity)

不透明度を設定。

※ 設定しない場合はデフォルト値として1.0が設定されます。

Parameters
opacity0.0 〜 1.0。0.0が透明、1.0が不透明。
Exceptions
PtlException

◆ setOutlineColor()

void PdfTkNet::PtlTextBox::setOutlineColor ( PtlColor outlineColor)

テキストボックスの縁取り色を設定。

※ 設定しない場合は無色です。

Parameters
outlineColor縁取り色指定。
Exceptions
PtlException

◆ setWritingMode()

void PdfTkNet::PtlTextBox::setWritingMode ( MODE  mode)

横書き/縦書きを設定。

横書き/縦書きを設定します。
途中で変更は出来ません。
※ 設定しない場合はデフォルト値としてMODE_HORIZONTALが使用されます。

Parameters
mode横書きか縦書き。MODEのいずれか。
Exceptions
PtlException

◆ terminate()

void PdfTkNet::PtlTextBox::terminate ( )

テキストボックスを終了。

テキストボックスを終了しページコンテントに書き出します。
この関数を呼ばないとコンテントに書かれないので必ず呼んでください。

Exceptions
PtlException

◆ writeNL() [1/2]

void PdfTkNet::PtlTextBox::writeNL ( )

改行。

改行します。

Exceptions
PtlException

◆ writeNL() [2/2]

void PdfTkNet::PtlTextBox::writeNL ( float  size)

改行。

指定サイズで改行します。通常、フォントサイズを指定します。

Parameters
size改行サイズ(ポイント)
Exceptions
PtlException

◆ writeString()

void PdfTkNet::PtlTextBox::writeString ( String^  str,
PtlParamWriteStringTextBox paramWriteString 
)

文字列を出力。

文字列を出力します。

Parameters
str文字列。
paramWriteString文字列出力パラメータ。
Exceptions
PtlException

◆ writeStringNL()

void PdfTkNet::PtlTextBox::writeStringNL ( String^  str,
PtlParamWriteStringTextBox paramWriteString 
)

文字列を出力して改行。

文字列を出力して改行します。

Parameters
str文字列。
paramWriteString文字列出力パラメータ。
Exceptions
PtlException