PDFTool.NET  7.0
NetTextBox.h
1 
10 #ifndef PDFTK_NET_PTL_TEXT_BOX_H_
11 #define PDFTK_NET_PTL_TEXT_BOX_H_
12 
13 #include <PdfTkNet/NetTk.h>
14 
15 namespace PdfTkNet {
16 
17 ref class PtlParamWriteStringTextBox;
18 ref class PtlColor;
19 
25 public ref class PtlTextBox : public System::IDisposable
26 {
27 public:
31  enum class MODE {
32  MODE_HORIZONTAL = 0,
33  MODE_VERTICAL = 1,
34  };
35 
36 protected:
37  PdfTk::PtlTextBox* m_native;
38 public:
39  PdfTk::PtlTextBox* getNative() { return m_native; };
40 
41 public:
47 
55 
60 
65 
66 public:
73 
74 public:
84  void setWritingMode(MODE mode);
85 
86 public:
95  void writeString(String^ str, PtlParamWriteStringTextBox^ paramWriteString);
96 
105  void writeStringNL(String^ str, PtlParamWriteStringTextBox^ paramWriteString);
106 
113  void writeNL();
114 
122  void writeNL(float size);
123 
131  void terminate();
132 
133 public:
141  void setOutlineColor(PtlColor^ outlineColor);
142 
150  void setBackColor(PtlColor^ bkColor);
151 
159  void setOpacity(float opacity);
160 
168  void fitToBBox(bool fit);
169 };
170 
171 } // namespace PdfTkNet
172 
173 #endif // PDFTK_NET_PTL_TEXT_BOX_H_
PdfTkNet::PtlTextBox::‾PtlTextBox
‾PtlTextBox()
デストラクタ
PdfTkNet::PtlParamWriteStringTextBox
TextBoxの文字の描画に使うパラメータクラスです。 ベースクラスPtlParamWriteStringへの設定も忘れずに行ってください。
Definition: NetParamWriteStringTextBox.h:26
PdfTkNet::PtlTextBox::writeStringNL
void writeStringNL(String^ str, PtlParamWriteStringTextBox^ paramWriteString)
文字列を出力して改行。
PdfTkNet::PtlTextBox::writeString
void writeString(String^ str, PtlParamWriteStringTextBox^ paramWriteString)
文字列を出力。
PdfTkNet::PtlTextBox::writeNL
void writeNL(float size)
改行。
PdfTkNet::PtlTextBox::setOutlineColor
void setOutlineColor(PtlColor^ outlineColor)
テキストボックスの縁取り色を設定。
PdfTkNet::PtlTextBox::MODE::MODE_VERTICAL
@ MODE_VERTICAL
縦書き
PdfTkNet::PtlTextBox::fitToBBox
void fitToBBox(bool fit)
TextBoxのサイズをテキストのBBoxに合わせるかどうかの設定。
PdfTkNet::PtlTextBox::operator=
PtlTextBox operator=(PtlTextBox^ obj)
コピーオペレータ alias copy
PdfTkNet::PtlTextBox::terminate
void terminate()
テキストボックスを終了。
PdfTkNet::PtlTextBox
ページに描画されるテキストボックスを表現するクラスです。 テキストボックスをにテキストを書き、テキストボックスをコンテントに配置します。
Definition: NetTextBox.h:26
PdfTkNet::PtlTextBox::setBackColor
void setBackColor(PtlColor^ bkColor)
背景色を設定。
PdfTkNet::PtlTextBox::PtlTextBox
PtlTextBox()
コンストラクタ
PdfTkNet::PtlColor
PDFの色を表現したクラスです。 すべての色クラスのベースクラスです。
Definition: NetColor.h:23
PdfTkNet::PtlTextBox::setWritingMode
void setWritingMode(MODE mode)
横書き/縦書きを設定。
PdfTkNet::PtlTextBox::writeNL
void writeNL()
改行。
PdfTkNet::PtlTextBox::MODE
MODE
横書き/縦書き
Definition: NetTextBox.h:31
PdfTkNet::PtlTextBox::setOpacity
void setOpacity(float opacity)
不透明度を設定。
PdfTkNet::PtlTextBox::MODE::MODE_HORIZONTAL
@ MODE_HORIZONTAL
横書き
PdfTkNet::PtlTextBox::PtlTextBox
PtlTextBox(PtlTextBox^ obj)
コピーコンストラクタ alias copy