Click or drag to resize

StiTextDrawingMeasureStringWidth Method

[Missing <summary> documentation for "M:Stimulsoft.Base.Drawing.StiTextDrawing.MeasureStringWidth(System.Drawing.Graphics,System.String,System.Drawing.Font,Stimulsoft.Base.Drawing.SizeD,System.Drawing.StringFormat,System.Double)"]

Namespace:  Stimulsoft.Base.Drawing
Assembly:  Stimulsoft.Base (in Stimulsoft.Base.dll) Version: 2019.3.1.0
Syntax
public static SizeF MeasureStringWidth(
	Graphics g,
	string text,
	Font font,
	SizeD size,
	StringFormat stringFormat,
	double lineHeight = 1
)

Parameters

g
Type: System.DrawingGraphics

[Missing <param name="g"/> documentation for "M:Stimulsoft.Base.Drawing.StiTextDrawing.MeasureStringWidth(System.Drawing.Graphics,System.String,System.Drawing.Font,Stimulsoft.Base.Drawing.SizeD,System.Drawing.StringFormat,System.Double)"]

text
Type: SystemString

[Missing <param name="text"/> documentation for "M:Stimulsoft.Base.Drawing.StiTextDrawing.MeasureStringWidth(System.Drawing.Graphics,System.String,System.Drawing.Font,Stimulsoft.Base.Drawing.SizeD,System.Drawing.StringFormat,System.Double)"]

font
Type: System.DrawingFont

[Missing <param name="font"/> documentation for "M:Stimulsoft.Base.Drawing.StiTextDrawing.MeasureStringWidth(System.Drawing.Graphics,System.String,System.Drawing.Font,Stimulsoft.Base.Drawing.SizeD,System.Drawing.StringFormat,System.Double)"]

size
Type: Stimulsoft.Base.DrawingSizeD

[Missing <param name="size"/> documentation for "M:Stimulsoft.Base.Drawing.StiTextDrawing.MeasureStringWidth(System.Drawing.Graphics,System.String,System.Drawing.Font,Stimulsoft.Base.Drawing.SizeD,System.Drawing.StringFormat,System.Double)"]

stringFormat
Type: System.DrawingStringFormat

[Missing <param name="stringFormat"/> documentation for "M:Stimulsoft.Base.Drawing.StiTextDrawing.MeasureStringWidth(System.Drawing.Graphics,System.String,System.Drawing.Font,Stimulsoft.Base.Drawing.SizeD,System.Drawing.StringFormat,System.Double)"]

lineHeight (Optional)
Type: SystemDouble

[Missing <param name="lineHeight"/> documentation for "M:Stimulsoft.Base.Drawing.StiTextDrawing.MeasureStringWidth(System.Drawing.Graphics,System.String,System.Drawing.Font,Stimulsoft.Base.Drawing.SizeD,System.Drawing.StringFormat,System.Double)"]

Return Value

Type: SizeF

[Missing <returns> documentation for "M:Stimulsoft.Base.Drawing.StiTextDrawing.MeasureStringWidth(System.Drawing.Graphics,System.String,System.Drawing.Font,Stimulsoft.Base.Drawing.SizeD,System.Drawing.StringFormat,System.Double)"]

See Also