[]
Gets the size needed to display the entire slider with the specified orientation and values.
public static Size GetPreferredSize(SliderOrientation orientation, int minimum, int maximum, int tickSpacing)
Public Shared Function GetPreferredSize(orientation As SliderOrientation, minimum As Integer, maximum As Integer, tickSpacing As Integer) As Size
Type | Name | Description |
---|---|---|
SliderOrientation | orientation | Orientation of the slider |
int | minimum | Minimum value of the slider |
int | maximum | Maximum value of the slider |
int | tickSpacing | Space between tick marks |
Type | Description |
---|---|
Size | An ordered pair of type Size representing the width and height. |