The application implemented rendering callback (
TextRenderer.DrawInlineObject) can use this to draw the inline object without needing to cast or query the object type. The text layout does not call this method directly.
シンタックス
'宣言
Sub Draw( _
ByVal As System.Object, _
ByVal As TextRenderer, _
ByVal As System.Single, _
ByVal As System.Single, _
ByVal As System.Boolean, _
ByVal As System.Boolean, _
ByVal As System.IntPtr _
)
void Draw(
System.object ,
TextRenderer ,
System.float ,
System.float ,
System.bool ,
System.bool ,
System.IntPtr
)
パラメータ
- clientDrawingContext
- The drawing context passed to TextLayout.Draw_. This parameter may be NULL.
- renderer
- The same renderer passed to TextLayout.Draw_as the object's containing parent. This is useful if the inline object is recursive such as a nested layout.
- originX
- The x-coordinate at the upper-left corner of the inline object.
- originY
- The y-coordinate at the upper-left corner of the inline object.
- isSideways
- A Boolean flag that indicates whether the object's baseline runs alongside the baseline axis of the line.
- isRightToLeft
- A Boolean flag that indicates whether the object is in a right-to-left context and should be drawn flipped.
- clientDrawingEffectPtr
- The drawing effect set in TextLayout.SetDrawingEffect. Usually this effect is a foreground brush that is used in glyph drawing.
参照