Spread Windows Forms 11.0 Product Documentation
GetPreferredSize(SliderOrientation,Int32,Int32,Int32) Method


FarPoint.Win Assembly > FarPoint.Win Namespace > FpSlider Class > GetPreferredSize Method : GetPreferredSize(SliderOrientation,Int32,Int32,Int32) Method
Orientation of the slider
Minimum value of the slider
Maximum value of the slider
Space between tick marks
Gets the size needed to display the entire slider with the specified orientation and values.
Syntax
'Declaration
 
Public Overloads Shared Function GetPreferredSize( _
   ByVal orientation As SliderOrientation, _
   ByVal minimum As Integer, _
   ByVal maximum As Integer, _
   ByVal tickSpacing As Integer _
) As Size
'Usage
 
Dim orientation As SliderOrientation
Dim minimum As Integer
Dim maximum As Integer
Dim tickSpacing As Integer
Dim value As Size
 
value = FpSlider.GetPreferredSize(orientation, minimum, maximum, tickSpacing)
public static Size GetPreferredSize( 
   SliderOrientation orientation,
   int minimum,
   int maximum,
   int tickSpacing
)

Parameters

orientation
Orientation of the slider
minimum
Minimum value of the slider
maximum
Maximum value of the slider
tickSpacing
Space between tick marks
See Also

Reference

FpSlider Class
FpSlider Members
Overload List