Click or drag to resize

StiTextRendererDrawText Method

[Missing <summary> documentation for "M:Stimulsoft.Base.Drawing.StiTextRenderer.DrawText(System.Drawing.Graphics,System.String,System.Drawing.Font,Stimulsoft.Base.Drawing.RectangleD,System.Drawing.Color,System.Drawing.Color,System.Double,Stimulsoft.Base.Drawing.StiTextHorAlignment,Stimulsoft.Base.Drawing.StiVertAlignment,System.Boolean,System.Boolean,System.Double,System.Double,System.Drawing.StringTrimming,System.Boolean,System.Boolean,Stimulsoft.Base.Drawing.StiTextOptions)"]

Namespace:  Stimulsoft.Base.Drawing
Assembly:  Stimulsoft.Base (in Stimulsoft.Base.dll) Version: 2019.3.1.0
Syntax
public static void DrawText(
	Graphics g,
	string text,
	Font font,
	RectangleD bounds,
	Color foreColor,
	Color backColor,
	double lineSpacing,
	StiTextHorAlignment horAlign,
	StiVertAlignment vertAlign,
	bool wordWrap,
	bool rightToLeft,
	double scale,
	double angle,
	StringTrimming trimming,
	bool lineLimit,
	bool allowHtmlTags,
	StiTextOptions textOptions = null
)

Parameters

g
Type: System.DrawingGraphics

[Missing <param name="g"/> documentation for "M:Stimulsoft.Base.Drawing.StiTextRenderer.DrawText(System.Drawing.Graphics,System.String,System.Drawing.Font,Stimulsoft.Base.Drawing.RectangleD,System.Drawing.Color,System.Drawing.Color,System.Double,Stimulsoft.Base.Drawing.StiTextHorAlignment,Stimulsoft.Base.Drawing.StiVertAlignment,System.Boolean,System.Boolean,System.Double,System.Double,System.Drawing.StringTrimming,System.Boolean,System.Boolean,Stimulsoft.Base.Drawing.StiTextOptions)"]

text
Type: SystemString

[Missing <param name="text"/> documentation for "M:Stimulsoft.Base.Drawing.StiTextRenderer.DrawText(System.Drawing.Graphics,System.String,System.Drawing.Font,Stimulsoft.Base.Drawing.RectangleD,System.Drawing.Color,System.Drawing.Color,System.Double,Stimulsoft.Base.Drawing.StiTextHorAlignment,Stimulsoft.Base.Drawing.StiVertAlignment,System.Boolean,System.Boolean,System.Double,System.Double,System.Drawing.StringTrimming,System.Boolean,System.Boolean,Stimulsoft.Base.Drawing.StiTextOptions)"]

font
Type: System.DrawingFont

[Missing <param name="font"/> documentation for "M:Stimulsoft.Base.Drawing.StiTextRenderer.DrawText(System.Drawing.Graphics,System.String,System.Drawing.Font,Stimulsoft.Base.Drawing.RectangleD,System.Drawing.Color,System.Drawing.Color,System.Double,Stimulsoft.Base.Drawing.StiTextHorAlignment,Stimulsoft.Base.Drawing.StiVertAlignment,System.Boolean,System.Boolean,System.Double,System.Double,System.Drawing.StringTrimming,System.Boolean,System.Boolean,Stimulsoft.Base.Drawing.StiTextOptions)"]

bounds
Type: Stimulsoft.Base.DrawingRectangleD

[Missing <param name="bounds"/> documentation for "M:Stimulsoft.Base.Drawing.StiTextRenderer.DrawText(System.Drawing.Graphics,System.String,System.Drawing.Font,Stimulsoft.Base.Drawing.RectangleD,System.Drawing.Color,System.Drawing.Color,System.Double,Stimulsoft.Base.Drawing.StiTextHorAlignment,Stimulsoft.Base.Drawing.StiVertAlignment,System.Boolean,System.Boolean,System.Double,System.Double,System.Drawing.StringTrimming,System.Boolean,System.Boolean,Stimulsoft.Base.Drawing.StiTextOptions)"]

foreColor
Type: System.DrawingColor

[Missing <param name="foreColor"/> documentation for "M:Stimulsoft.Base.Drawing.StiTextRenderer.DrawText(System.Drawing.Graphics,System.String,System.Drawing.Font,Stimulsoft.Base.Drawing.RectangleD,System.Drawing.Color,System.Drawing.Color,System.Double,Stimulsoft.Base.Drawing.StiTextHorAlignment,Stimulsoft.Base.Drawing.StiVertAlignment,System.Boolean,System.Boolean,System.Double,System.Double,System.Drawing.StringTrimming,System.Boolean,System.Boolean,Stimulsoft.Base.Drawing.StiTextOptions)"]

backColor
Type: System.DrawingColor

[Missing <param name="backColor"/> documentation for "M:Stimulsoft.Base.Drawing.StiTextRenderer.DrawText(System.Drawing.Graphics,System.String,System.Drawing.Font,Stimulsoft.Base.Drawing.RectangleD,System.Drawing.Color,System.Drawing.Color,System.Double,Stimulsoft.Base.Drawing.StiTextHorAlignment,Stimulsoft.Base.Drawing.StiVertAlignment,System.Boolean,System.Boolean,System.Double,System.Double,System.Drawing.StringTrimming,System.Boolean,System.Boolean,Stimulsoft.Base.Drawing.StiTextOptions)"]

lineSpacing
Type: SystemDouble

[Missing <param name="lineSpacing"/> documentation for "M:Stimulsoft.Base.Drawing.StiTextRenderer.DrawText(System.Drawing.Graphics,System.String,System.Drawing.Font,Stimulsoft.Base.Drawing.RectangleD,System.Drawing.Color,System.Drawing.Color,System.Double,Stimulsoft.Base.Drawing.StiTextHorAlignment,Stimulsoft.Base.Drawing.StiVertAlignment,System.Boolean,System.Boolean,System.Double,System.Double,System.Drawing.StringTrimming,System.Boolean,System.Boolean,Stimulsoft.Base.Drawing.StiTextOptions)"]

horAlign
Type: Stimulsoft.Base.DrawingStiTextHorAlignment

[Missing <param name="horAlign"/> documentation for "M:Stimulsoft.Base.Drawing.StiTextRenderer.DrawText(System.Drawing.Graphics,System.String,System.Drawing.Font,Stimulsoft.Base.Drawing.RectangleD,System.Drawing.Color,System.Drawing.Color,System.Double,Stimulsoft.Base.Drawing.StiTextHorAlignment,Stimulsoft.Base.Drawing.StiVertAlignment,System.Boolean,System.Boolean,System.Double,System.Double,System.Drawing.StringTrimming,System.Boolean,System.Boolean,Stimulsoft.Base.Drawing.StiTextOptions)"]

vertAlign
Type: Stimulsoft.Base.DrawingStiVertAlignment

[Missing <param name="vertAlign"/> documentation for "M:Stimulsoft.Base.Drawing.StiTextRenderer.DrawText(System.Drawing.Graphics,System.String,System.Drawing.Font,Stimulsoft.Base.Drawing.RectangleD,System.Drawing.Color,System.Drawing.Color,System.Double,Stimulsoft.Base.Drawing.StiTextHorAlignment,Stimulsoft.Base.Drawing.StiVertAlignment,System.Boolean,System.Boolean,System.Double,System.Double,System.Drawing.StringTrimming,System.Boolean,System.Boolean,Stimulsoft.Base.Drawing.StiTextOptions)"]

wordWrap
Type: SystemBoolean

[Missing <param name="wordWrap"/> documentation for "M:Stimulsoft.Base.Drawing.StiTextRenderer.DrawText(System.Drawing.Graphics,System.String,System.Drawing.Font,Stimulsoft.Base.Drawing.RectangleD,System.Drawing.Color,System.Drawing.Color,System.Double,Stimulsoft.Base.Drawing.StiTextHorAlignment,Stimulsoft.Base.Drawing.StiVertAlignment,System.Boolean,System.Boolean,System.Double,System.Double,System.Drawing.StringTrimming,System.Boolean,System.Boolean,Stimulsoft.Base.Drawing.StiTextOptions)"]

rightToLeft
Type: SystemBoolean

[Missing <param name="rightToLeft"/> documentation for "M:Stimulsoft.Base.Drawing.StiTextRenderer.DrawText(System.Drawing.Graphics,System.String,System.Drawing.Font,Stimulsoft.Base.Drawing.RectangleD,System.Drawing.Color,System.Drawing.Color,System.Double,Stimulsoft.Base.Drawing.StiTextHorAlignment,Stimulsoft.Base.Drawing.StiVertAlignment,System.Boolean,System.Boolean,System.Double,System.Double,System.Drawing.StringTrimming,System.Boolean,System.Boolean,Stimulsoft.Base.Drawing.StiTextOptions)"]

scale
Type: SystemDouble

[Missing <param name="scale"/> documentation for "M:Stimulsoft.Base.Drawing.StiTextRenderer.DrawText(System.Drawing.Graphics,System.String,System.Drawing.Font,Stimulsoft.Base.Drawing.RectangleD,System.Drawing.Color,System.Drawing.Color,System.Double,Stimulsoft.Base.Drawing.StiTextHorAlignment,Stimulsoft.Base.Drawing.StiVertAlignment,System.Boolean,System.Boolean,System.Double,System.Double,System.Drawing.StringTrimming,System.Boolean,System.Boolean,Stimulsoft.Base.Drawing.StiTextOptions)"]

angle
Type: SystemDouble

[Missing <param name="angle"/> documentation for "M:Stimulsoft.Base.Drawing.StiTextRenderer.DrawText(System.Drawing.Graphics,System.String,System.Drawing.Font,Stimulsoft.Base.Drawing.RectangleD,System.Drawing.Color,System.Drawing.Color,System.Double,Stimulsoft.Base.Drawing.StiTextHorAlignment,Stimulsoft.Base.Drawing.StiVertAlignment,System.Boolean,System.Boolean,System.Double,System.Double,System.Drawing.StringTrimming,System.Boolean,System.Boolean,Stimulsoft.Base.Drawing.StiTextOptions)"]

trimming
Type: System.DrawingStringTrimming

[Missing <param name="trimming"/> documentation for "M:Stimulsoft.Base.Drawing.StiTextRenderer.DrawText(System.Drawing.Graphics,System.String,System.Drawing.Font,Stimulsoft.Base.Drawing.RectangleD,System.Drawing.Color,System.Drawing.Color,System.Double,Stimulsoft.Base.Drawing.StiTextHorAlignment,Stimulsoft.Base.Drawing.StiVertAlignment,System.Boolean,System.Boolean,System.Double,System.Double,System.Drawing.StringTrimming,System.Boolean,System.Boolean,Stimulsoft.Base.Drawing.StiTextOptions)"]

lineLimit
Type: SystemBoolean

[Missing <param name="lineLimit"/> documentation for "M:Stimulsoft.Base.Drawing.StiTextRenderer.DrawText(System.Drawing.Graphics,System.String,System.Drawing.Font,Stimulsoft.Base.Drawing.RectangleD,System.Drawing.Color,System.Drawing.Color,System.Double,Stimulsoft.Base.Drawing.StiTextHorAlignment,Stimulsoft.Base.Drawing.StiVertAlignment,System.Boolean,System.Boolean,System.Double,System.Double,System.Drawing.StringTrimming,System.Boolean,System.Boolean,Stimulsoft.Base.Drawing.StiTextOptions)"]

allowHtmlTags
Type: SystemBoolean

[Missing <param name="allowHtmlTags"/> documentation for "M:Stimulsoft.Base.Drawing.StiTextRenderer.DrawText(System.Drawing.Graphics,System.String,System.Drawing.Font,Stimulsoft.Base.Drawing.RectangleD,System.Drawing.Color,System.Drawing.Color,System.Double,Stimulsoft.Base.Drawing.StiTextHorAlignment,Stimulsoft.Base.Drawing.StiVertAlignment,System.Boolean,System.Boolean,System.Double,System.Double,System.Drawing.StringTrimming,System.Boolean,System.Boolean,Stimulsoft.Base.Drawing.StiTextOptions)"]

textOptions (Optional)
Type: Stimulsoft.Base.DrawingStiTextOptions

[Missing <param name="textOptions"/> documentation for "M:Stimulsoft.Base.Drawing.StiTextRenderer.DrawText(System.Drawing.Graphics,System.String,System.Drawing.Font,Stimulsoft.Base.Drawing.RectangleD,System.Drawing.Color,System.Drawing.Color,System.Double,Stimulsoft.Base.Drawing.StiTextHorAlignment,Stimulsoft.Base.Drawing.StiVertAlignment,System.Boolean,System.Boolean,System.Double,System.Double,System.Drawing.StringTrimming,System.Boolean,System.Boolean,Stimulsoft.Base.Drawing.StiTextOptions)"]

See Also