単純なテキストランを描画します。
シンタックス
'宣言
Protected Overridable Sub DrawText( _
ByVal As Point, _
ByVal As System.String, _
ByVal As System.String, _
ByVal As System.Single, _
ByVal As C1FontWeight, _
ByVal As C1FontStretch, _
ByVal As System.Boolean, _
ByVal As C1TextDecoration, _
ByVal As System.Drawing.Color, _
ByVal () As System.Single, _
ByVal () As System.Byte, _
ByVal As System.Boolean, _
ByVal As System.Integer, _
ByVal As System.Double _
)
'使用法
Dim instance As C1DXExportGraphics
Dim pt As Point
Dim text As System.String
Dim fontName As System.String
Dim fontSize As System.Single
Dim weight As C1FontWeight
Dim stretch As C1FontStretch
Dim italic As System.Boolean
Dim decor As C1TextDecoration
Dim color As System.Drawing.Color
Dim advances() As System.Single
Dim panose() As System.Byte
Dim vertical As System.Boolean
Dim bidiLevel As System.Integer
Dim offset As System.Double
instance.DrawText(pt, text, fontName, fontSize, weight, stretch, italic, decor, color, advances, panose, vertical, bidiLevel, offset)
protected virtual void DrawText(
Point ,
System.string ,
System.string ,
System.float ,
C1FontWeight ,
C1FontStretch ,
System.bool ,
C1TextDecoration ,
System.Drawing.Color ,
System.float[] ,
System.byte[] ,
System.bool ,
System.int ,
System.double
)
パラメータ
- pt
- 描画するテキストの開始点。
- text
- テキストラン。
- fontName
- フォント名を表す文字列。
- fontSize
- フォントサイズ(ポイント単位)。
- weight
- フォントウェイト。C1.Document.C1FontWeight を参照してください。
- stretch
- フォントウェイト。C1.Document.C1FontStretch を参照してください。
- italic
- 斜体フラグ。
- decor
- テキスト装飾。C1.Document.C1TextDecoration を参照してください。
- color
- テキスト(前景)色。
- advances
- 進行配列。各グリフの幅(ポイント単位)。
- panose
- フォント PANOSE(フォント識別子)。
- vertical
- 絵文字フラグ付き垂直テキスト。
- bidiLevel
- 右から左(Bi-di)テキストレベル(0 - Normal、1 - Rtl、2 - Inside Rtl)。
- offset
- テキストの右境界オフセット。デフォルトは 0。
参照