15 writes to cpMax
System.Windows.Forms (15)
winforms\Managed\System\WinForms\RichTextBox.cs (15)
1990ft.chrg.cpMax = end; 1996ft.chrg.cpMax = start; 2003ft.chrg.cpMax = -1; 2007ft.chrg.cpMax = 0; 2047chrg.cpMax = position + str.Length; 2062chrg.cpMax = foundCursor; 2123chrg.cpMax = chrg.cpMin = start; 2131txrg.chrg.cpMax = chrg.cpMax; 2150txrg.chrg.cpMax += CHAR_BUFFER_LEN; 2156txrg.chrg.cpMax = chrg.cpMin; 2166txrg.chrg.cpMax = Math.Min(txrg.chrg.cpMax, end); 2172chrg.cpMax = chrg.cpMin = -1; // Hit end of control without finding what we wanted 2193chrg.cpMax++; 3566es.chrg.cpMax = Marshal.ReadInt32((IntPtr)(es64p + 48)); 3586es.charrange.cpMax = Marshal.ReadInt32((IntPtr)(es64p + 48));
10 references to cpMax
System.Windows.Forms (10)
winforms\Managed\System\WinForms\RichTextBox.cs (10)
2000if (ft.chrg.cpMin == ft.chrg.cpMax) { 2131txrg.chrg.cpMax = chrg.cpMax; 2149txrg.chrg.cpMin = chrg.cpMax; 2166txrg.chrg.cpMax = Math.Min(txrg.chrg.cpMax, end); 2218int index = (forward) ? chrg.cpMax : chrg.cpMin; 3368Debug.Assert((c.cpMax-c.cpMin)>0, "CHARRANGE was null or negative - can't do it!"); 3372if (c.cpMax > Text.Length || c.cpMax-c.cpMin <= 0) { 3376int characters = (c.cpMax-c.cpMin) + 1; // +1 for null termination 3598int selEnd = selChange.chrg.cpMax;