FlexReport for WinForms
DrawGlyphRun メソッド (C1ExportGraphics)


C1.Document アセンブリ > C1.Document.Util 名前空間 > C1ExportGraphics クラス : 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 color of the 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 charMap As System.IntPtr, _
   ByVal foreColor As System.Drawing.Color, _
   ByVal format As IC1TextRangeBase, _
   ByVal textLayout As C1TextLayout, _
   ByVal text As System.String _
) 
'使用法
 
Dim instance As C1ExportGraphics
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 charMap 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, charMap, foreColor, format, 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 charMap,
   System.Drawing.Color foreColor,
   IC1TextRangeBase format,
   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.
charMap
foreColor
The color of the text.
format
textLayout
The C1TextLayout object calling this method.
text
The text to drawn.
参照

参照

C1ExportGraphics クラス
C1ExportGraphics メンバ