Click or drag to resize

StiTextRendererMeasureText Method

[Missing <summary> documentation for "M:Stimulsoft.Base.Drawing.StiTextRenderer.MeasureText(System.Drawing.Graphics,System.String,System.Drawing.Font,Stimulsoft.Base.Drawing.RectangleD,System.Double,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 SizeD MeasureText(
	Graphics g,
	string text,
	Font font,
	RectangleD bounds,
	double lineSpacing,
	bool wordWrap,
	bool rightToLeft,
	double scale,
	double angle,
	StringTrimming trimming,
	bool lineLimit,
	bool allowHtmlTags,
	StiTextOptions textOptions
)

Parameters

g
Type: System.DrawingGraphics

[Missing <param name="g"/> documentation for "M:Stimulsoft.Base.Drawing.StiTextRenderer.MeasureText(System.Drawing.Graphics,System.String,System.Drawing.Font,Stimulsoft.Base.Drawing.RectangleD,System.Double,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.MeasureText(System.Drawing.Graphics,System.String,System.Drawing.Font,Stimulsoft.Base.Drawing.RectangleD,System.Double,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.MeasureText(System.Drawing.Graphics,System.String,System.Drawing.Font,Stimulsoft.Base.Drawing.RectangleD,System.Double,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.MeasureText(System.Drawing.Graphics,System.String,System.Drawing.Font,Stimulsoft.Base.Drawing.RectangleD,System.Double,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.MeasureText(System.Drawing.Graphics,System.String,System.Drawing.Font,Stimulsoft.Base.Drawing.RectangleD,System.Double,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.MeasureText(System.Drawing.Graphics,System.String,System.Drawing.Font,Stimulsoft.Base.Drawing.RectangleD,System.Double,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.MeasureText(System.Drawing.Graphics,System.String,System.Drawing.Font,Stimulsoft.Base.Drawing.RectangleD,System.Double,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.MeasureText(System.Drawing.Graphics,System.String,System.Drawing.Font,Stimulsoft.Base.Drawing.RectangleD,System.Double,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.MeasureText(System.Drawing.Graphics,System.String,System.Drawing.Font,Stimulsoft.Base.Drawing.RectangleD,System.Double,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.MeasureText(System.Drawing.Graphics,System.String,System.Drawing.Font,Stimulsoft.Base.Drawing.RectangleD,System.Double,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.MeasureText(System.Drawing.Graphics,System.String,System.Drawing.Font,Stimulsoft.Base.Drawing.RectangleD,System.Double,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.MeasureText(System.Drawing.Graphics,System.String,System.Drawing.Font,Stimulsoft.Base.Drawing.RectangleD,System.Double,System.Boolean,System.Boolean,System.Double,System.Double,System.Drawing.StringTrimming,System.Boolean,System.Boolean,Stimulsoft.Base.Drawing.StiTextOptions)"]

textOptions
Type: Stimulsoft.Base.DrawingStiTextOptions

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

Return Value

Type: SizeD

[Missing <returns> documentation for "M:Stimulsoft.Base.Drawing.StiTextRenderer.MeasureText(System.Drawing.Graphics,System.String,System.Drawing.Font,Stimulsoft.Base.Drawing.RectangleD,System.Double,System.Boolean,System.Boolean,System.Double,System.Double,System.Drawing.StringTrimming,System.Boolean,System.Boolean,Stimulsoft.Base.Drawing.StiTextOptions)"]

See Also