Skybound VisualTips

VisualTipRenderer.MeasureElement Method 

Measures the size of an element.

[Visual Basic]
Protected Function MeasureElement( _
   ByVal tip As VisualTip, _
   ByVal element As VisualTipRenderElement, _
   ByVal maximumWidth As Integer _
) As Size
[C#]
protected Size MeasureElement(
   VisualTip tip,
   VisualTipRenderElement element,
   int maximumWidth
);

Parameters

tip
The VisualTip whose element is measured.
element
The VisualTipRenderElement to measure.
maximumWidth
Text longer than this width is word-wrapped. This parameter is ignored for image elements, and a value of 0 indicates that the text will not be wrapped.

Return Value

A Size structure which defines the size of the element.

Exceptions

Exception Type Condition
ArgumentNullException The tip parameter may not be a null reference.
ArgumentException The specified tip must be associated with a VisualTipProvider before it is rendered.

See Also

VisualTipRenderer Class | Skybound.VisualTips.Rendering Namespace