The GetTick method retrieves the logical position of a tick mark in a slider. A valid position is an integer value within the minimum and maximum positions of the slider.


The only argument is:


A zero-based index identifying a tick mark. A valid index is in the range of 0 to 2 ticks less than the tick count returned by the CountTicks method (see CountTicks).

Return value:

The logical position of the specified tick mark, or -1 if you did not specify a valid index for tic.