Skybound Rebar

RebarButtonRenderer.MeasureWidth Method 

Measures and returns the recommended width of the button.

[Visual Basic]
Public Function MeasureWidth( _
   ByVal height As Integer _
) As Integer
[C#]
public int MeasureWidth(
   int height
);

Parameters

height
The fixed height of the button.

Return Value

The recommended width of the button.

Remarks

This method takes the button's type, text and image into account and returns the recommended width of the button.

See Also

RebarButtonRenderer Class | Skybound.Rebar.Rendering Namespace