15 writes to cpMax
System.Windows.Forms (13)
System\Windows\Forms\Controls\RichTextBox\RichTextBox.cs (13)
1810chrg.cpMax = position + str.Length; 1826chrg.cpMax = foundCursor; 1861ft.chrg.cpMax = end; 1867ft.chrg.cpMax = start; 1876ft.chrg.cpMax = -1; 1881ft.chrg.cpMax = 0; 1972chrg.cpMax = chrg.cpMin = start; 1981cpMax = chrg.cpMax 2007txrg.chrg.cpMax += CHAR_BUFFER_LEN; 2014txrg.chrg.cpMax = chrg.cpMin; 2027txrg.chrg.cpMax = Math.Min(txrg.chrg.cpMax, end); 2035chrg.cpMax = chrg.cpMin = -1; // Hit end of control without finding what we wanted 2059chrg.cpMax++;
System.Windows.Forms.Tests (2)
System\Windows\Forms\RichTextBoxTests.cs (2)
10181cpMax = max 10415cpMax = max
16 references to cpMax
System.Windows.Forms (10)
System\Windows\Forms\Controls\RichTextBox\RichTextBox.cs (10)
1871if (ft.chrg.cpMin == ft.chrg.cpMax) 1981cpMax = chrg.cpMax 2006txrg.chrg.cpMin = chrg.cpMax; 2027txrg.chrg.cpMax = Math.Min(txrg.chrg.cpMax, end); 2091int index = (forward) ? chrg.cpMax : chrg.cpMin; 3144OnLinkClicked(new LinkClickedEventArgs(linktext, enlink.charrange.cpMin, enlink.charrange.cpMax - enlink.charrange.cpMin)); 3172Debug.Assert((c.cpMax - c.cpMin) > 0, "CHARRANGE was null or negative - can't do it!"); 3173if (c.cpMax - c.cpMin <= 0) 3178int characters = (c.cpMax - c.cpMin) + 1; // +1 for null termination 3363int selEnd = selChange.chrg.cpMax;
System.Windows.Forms.Interop.Tests (6)
RichTextBoxTests.cs (6)
28Assert.Equal(1577, value.charrange.cpMax); 43Assert.Equal(1577, value.chrg.cpMax); 65Assert.Equal(1577, value.cpMax); 85Assert.Equal(1577, value.chrg.cpMax); 151Assert.Equal(1577, value.chrg.cpMax); 161Assert.Equal(1577, value.chrg.cpMax);