Method GetMaxToolLabelTextWidth
GetMaxToolLabelTextWidth(Font?)
Calculates the maximum width of the labels for all child speed buttons.
public virtual float GetMaxToolLabelTextWidth(Font? font = null)
Parameters
fontFontAn optional font to use when measuring the label widths. If null, the control's font is used.
Returns
- float
The maximum width, in device-independent units, of the labels for all child speed buttons. Returns 0 if there are no child speed buttons.
Remarks
This method iterates through the child elements and calculates the width of the labels for any child that is a SpeedButton. The width is determined based on the specified font or the control's font if none is provided.