FlexReport for WinForms
DrawGlyphRun メソッド (C1HtmlGraphics)


C1.Document アセンブリ > C1.Document.Util 名前空間 > C1HtmlGraphics クラス : DrawGlyphRun メソッド
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.
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.
The count of the glyphs.
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.
The pointer to the array of floats containing the glyphs' widths, use ((float*)glyphAdvances)[i] to get width of the i-th glyph.
The pointer to the array of DW.GlyphOffset structures, use ((DW.GlyphOffset*)glyphOffsets)[i] to get width of the i-th glyph.
The pointer to the table of text clusters.
The color of the text.
The IC1TextRangeBase interface which allows to get extended information about text.
The C1TextLayout object calling this method.
The text to drawn.
Renders a run of glyphs.
シンタックス
'宣言
 
Public Overrides Sub DrawGlyphRun( _
   ByVal baselineOriginX As System.Double, _
   ByVal baselineOriginY As System.Double, _
   ByVal glyphCount As System.Integer, _
   ByVal glyphIndices As System.IntPtr, _
   ByVal glyphAdvances As System.IntPtr, _
   ByVal glyphOffsets As System.IntPtr, _
   ByVal clusterMap As System.IntPtr, _
   ByVal foreColor As System.Drawing.Color, _
   ByVal range As IC1TextRangeBase, _
   ByVal textLayout As C1TextLayout, _
   ByVal text 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 range As IC1TextRangeBase
Dim textLayout As C1TextLayout
Dim text As System.String
 
instance.DrawGlyphRun(baselineOriginX, baselineOriginY, glyphCount, glyphIndices, glyphAdvances, glyphOffsets, clusterMap, foreColor, range, textLayout, text)
public override void DrawGlyphRun( 
   System.double baselineOriginX,
   System.double baselineOriginY,
   System.int glyphCount,
   System.IntPtr glyphIndices,
   System.IntPtr glyphAdvances,
   System.IntPtr glyphOffsets,
   System.IntPtr clusterMap,
   System.Drawing.Color foreColor,
   IC1TextRangeBase range,
   C1TextLayout textLayout,
   System.string text
)

パラメータ

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.
range
The IC1TextRangeBase interface which allows to get extended information about text.
textLayout
The C1TextLayout object calling this method.
text
The text to drawn.
参照

参照

C1HtmlGraphics クラス
C1HtmlGraphics メンバ