public static double GetSliderPosition(this Gtk.Scale scale) { int start, end; scale.GetSliderRange(out start, out end); return(start + ((end - start) / 2)); }