5 writes to cchTextMax
System.Windows.Forms.Primitives (1)
Windows\Win32\UI\Controls\LVITEMW.cs (1)
21
cchTextMax
= text.Length + 1;
System.Windows.Forms.Primitives.Tests (4)
Interop\ComCtl32\LVITEMWTests.cs (4)
15
cchTextMax
= 0,
30
cchTextMax
= maxLength,
59
cchTextMax
= originalText.Length,
81
cchTextMax
= originalText.Length,
10 references to cchTextMax
System.Windows.Forms.Primitives (5)
Windows\Win32\UI\Controls\LVITEMW.cs (5)
9
/// Set the new text. The text length is limited by <see cref="
cchTextMax
"/>.
10
/// A value of <see cref="
cchTextMax
"/> will be updated to the length of <paramref name="text"/> + 1.
15
if (
cchTextMax
<= text.Length)
17
text = text[..(
cchTextMax
- 1)];
25
Span<char> targetSpan = new(pszText,
cchTextMax
);
System.Windows.Forms.Primitives.Tests (5)
Interop\ComCtl32\LVITEMWTests.cs (5)
39
Assert.Equal(text.Length + 1, lvi.
cchTextMax
);
40
Assert.Equal(maxLength, lvi.
cchTextMax
);
65
ReadOnlySpan<char> sText = new(lvi.pszText, lvi.
cchTextMax
);
69
Assert.Equal(lvi.
cchTextMax
, text.Length + 1);
87
ReadOnlySpan<char> sText = new(lvi.pszText, lvi.
cchTextMax
);