Skybound Rebar

ControlRenderer.MeasureTextExact Method 

Measures the exact width of the text in the current ControlRenderer instance.

[Visual Basic]
Public Function MeasureTextExact() As Size
[C#]
public Size MeasureTextExact();

Return Value

A Size structure that specifies the exact dimensions of the control's Text.

Remarks

This method is useful because the MeasureString method is only accurate when measuring antialiased text.

See Also

ControlRenderer Class | Skybound.Rebar.Rendering Namespace