public double Adjust()

in localized/ja/01-Navigation/6-Find_usages/6.1-Highlight_usages_in_file.cs [13:31]


        public double Adjust(double original, double delta)
        {
            // 1. Place the caret on newValue and Highlight Usages in File
            //    Note the different colour highlights for read and write usage
            //    Note the highlights in the stripe on the right of the editor
            //    These highlights are clickable, and have tooltips
            //    Escape clears the highlight
            //    <shortcut id="Find Next / Move to Next Occurrence">Ctrl+Alt+PgUp/Ctrl+Alt+PgDown (VS)</shortcut> to navigate between
            //
            var newValue = original + delta;

            if (newValue < MinValue)
                newValue = MinValue;

            if (newValue > MaxValue)
                newValue = MaxValue;

            return newValue;
        }