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