Spread Windows Forms 6.0 Product Documentation
GetPreferredSize(SliderOrientation,Int32,Int32,Int32) Method
See Also  Support Options
FarPoint.Win Assembly > FarPoint.Win Namespace > FpSlider Class > GetPreferredSize Method : GetPreferredSize(SliderOrientation,Int32,Int32,Int32) Method


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

Glossary Item Box

Gets the size needed to display the entire slider with the specified orientation and values.

Syntax

Visual Basic (Declaration) 
Public Overloads Shared Function GetPreferredSize( _
   ByVal orientation As SliderOrientation, _
   ByVal minimum As Integer, _
   ByVal maximum As Integer, _
   ByVal tickSpacing As Integer _
) As Size
Visual Basic (Usage)Copy Code
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)
C# 
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

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

© 2002-2012 ComponentOne, a division of GrapeCity. All Rights Reserved.