Table of Contents

Method GetRightSideWidth

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

GetRightSideWidth(bool)

Calculates the width of the right side of the label, including any suffix elements.

public virtual float GetRightSideWidth(bool remeasure)

Parameters

remeasure bool

A value indicating whether to remeasure the label parameters before calculating the width.

Returns

float

The width of the right side of the label, including the width of the last suffix element. Returns 0 if there are no suffix elements.

Remarks

The width is determined by the greater of the last suffix element's measured width and its minimum width. If remeasure is true, the label parameters will be remeasured before the calculation.