Table of Contents

Method GetRealArrowSize

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

GetRealArrowSize(float, MetricsInfo)

Calculates the actual size of the arrow button for the scrollbar, considering the control's scale factor, margins, and bounds.

public virtual float GetRealArrowSize(float scaleFactor, ScrollBar.MetricsInfo metrics)

Parameters

scaleFactor float

The scaling factors.

metrics ScrollBar.MetricsInfo

The metrics information for the scrollbar, providing details such as arrow bitmap size.

Returns

float

A float representing the computed size of the arrow button, adjusted for margins and bounds.

Remarks

The calculated size ensures that the arrow button fits within the available bounds while respecting the specified margins. If the computed size does not align with the button's dimensions, it is adjusted to maintain consistency.