13 writes to cpMax
System.Windows.Forms (13)
System\Windows\Forms\Controls\RichTextBox\RichTextBox.cs (13)
1846chrg.cpMax = position + str.Length; 1862chrg.cpMax = foundCursor; 1897ft.chrg.cpMax = end; 1903ft.chrg.cpMax = start; 1912ft.chrg.cpMax = -1; 1917ft.chrg.cpMax = 0; 2008chrg.cpMax = chrg.cpMin = start; 2017cpMax = chrg.cpMax 2043txrg.chrg.cpMax += CHAR_BUFFER_LEN; 2050txrg.chrg.cpMax = chrg.cpMin; 2063txrg.chrg.cpMax = Math.Min(txrg.chrg.cpMax, end); 2071chrg.cpMax = chrg.cpMin = -1; // Hit end of control without finding what we wanted 2095chrg.cpMax++;
10 references to cpMax
System.Windows.Forms (10)
System\Windows\Forms\Controls\RichTextBox\RichTextBox.cs (10)
1907if (ft.chrg.cpMin == ft.chrg.cpMax) 2017cpMax = chrg.cpMax 2042txrg.chrg.cpMin = chrg.cpMax; 2063txrg.chrg.cpMax = Math.Min(txrg.chrg.cpMax, end); 2127int index = (forward) ? chrg.cpMax : chrg.cpMin; 3247OnLinkClicked(new LinkClickedEventArgs(linktext, enlink.charrange.cpMin, enlink.charrange.cpMax - enlink.charrange.cpMin)); 3275Debug.Assert((c.cpMax - c.cpMin) > 0, "CHARRANGE was null or negative - can't do it!"); 3276if (c.cpMax - c.cpMin <= 0) 3281int characters = (c.cpMax - c.cpMin) + 1; // +1 for null termination 3466int selEnd = selChange.chrg.cpMax;