Method GetPreferredSize
GetPreferredSize(bool, double?)
Gets preferred size of the scrollbar. Height for the vertical scroll bar is returned as NaN. Width for the horizontal scrollbar is returned as Nan.
public SizeD GetPreferredSize(bool isVertical, double? scaleFactor = null)