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