SciChart.Drawing Assembly > SciChart.Drawing.Common Namespace > IRenderContext2D Interface > DrawText Method : DrawText(Rect,Color,Single,String,FontFamily,FontWeight,FontStyle) Method
DrawText(Rect,Color,Single,String,FontFamily,FontWeight,FontStyle) Method
Draws text if it does not go outside
Syntax
[Obsolete("This method is no longer used internally and has been made obsolete. Please use the DrawText(point, ...) method instead.", false)]
void DrawText( 
   Rect dstBoundingRect,
   Color foreColor,
   float fontSize,
   string text,
   FontFamily fontFamily,
   FontWeight fontWeight,
   FontStyle fontStyle
)

Parameters

dstBoundingRect
foreColor
fontSize
text
fontFamily
fontWeight
fontStyle
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also