シンタックス
'宣言
Public Overrides Sub DrawGlyphRun( _
ByVal As System.Double, _
ByVal As System.Double, _
ByVal As System.Integer, _
ByVal As System.IntPtr, _
ByVal As System.IntPtr, _
ByVal As System.IntPtr, _
ByVal As System.IntPtr, _
ByVal As System.Drawing.Color, _
ByVal As IC1TextRangeBase, _
ByVal As C1TextLayout, _
ByVal As System.String _
)
'使用法
Dim instance As C1HtmlGraphics
Dim baselineOriginX As System.Double
Dim baselineOriginY As System.Double
Dim glyphCount As System.Integer
Dim glyphIndices As System.IntPtr
Dim glyphAdvances As System.IntPtr
Dim glyphOffsets As System.IntPtr
Dim clusterMap As System.IntPtr
Dim foreColor As System.Drawing.Color
Dim format As IC1TextRangeBase
Dim textLayout As C1TextLayout
Dim text As System.String
instance.DrawGlyphRun(baselineOriginX, baselineOriginY, glyphCount, glyphIndices, glyphAdvances, glyphOffsets, clusterMap, foreColor, format, textLayout, text)
public override void DrawGlyphRun(
System.double ,
System.double ,
System.int ,
System.IntPtr ,
System.IntPtr ,
System.IntPtr ,
System.IntPtr ,
System.Drawing.Color ,
IC1TextRangeBase ,
C1TextLayout ,
System.string
)
パラメータ
- baselineOriginX
- The X coordinate of the glyphs' baseline, if this is right-to-left text then X points to the "right" side of the text, glyphs should be drawn from this point to the left.
- baselineOriginY
- The Y coordinate of the glyphs' baseline, if range.IsSideways is true, i.e. glyphs should be drawn in vertical direction (japanese text), then Y equals to the middle of the glyphs' height.
- glyphCount
- The count of the glyphs.
- glyphIndices
- The pointer to the array of shorts containing indicies of the glyphs in the font specified by the range.GetFontFace(), use ((short*)glyphIndices)[i] to get i-th glyph index, all indices already resolved and can not be zero.
- glyphAdvances
- The pointer to the array of floats containing the glyphs' widths, use ((float*)glyphAdvances)[i] to get width of the i-th glyph.
- glyphOffsets
- The pointer to the array of DW.GlyphOffset structures, use ((DW.GlyphOffset*)glyphOffsets)[i] to get width of the i-th glyph.
- clusterMap
- The pointer to the table of text clusters.
- foreColor
- The color of the text.
- format
- textLayout
- The C1.Document.Util.C1TextLayout object calling this method.
- text
- The text to drawn.
参照