Skybound Rebar

RebarBand.MeasureButton Event

Occurs when a button on a band needs to be measured.

[Visual Basic]
Public Event MeasureButton As MeasureButtonEventHandler
[C#]
public event MeasureButtonEventHandler MeasureButton;

Event Data

The event handler receives an argument of type MeasureButtonEventArgs containing data related to this event. The following MeasureButtonEventArgs properties provide information specific to this event.

Property Description
Button Gets the RebarButton to measure.
FixedHeight Gets the height of the toolbar that contains the button.
Graphics Gets the Graphics surface to measure against.
MeasuredWidth Gets or sets the measured width of the button.
Renderer Gets a renderer that can measure the button.

Remarks

Handle this event to use your own custom code to measure one or more of the buttons on the band.

This event is not raised unless the DrawMode property is set to OwnerDrawAndMeasure.

See Also

RebarBand Class | Skybound.Rebar Namespace