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