5 writes to cchTextMax
System.Windows.Forms.Primitives (1)
Windows\Win32\UI\Controls\LVITEMW.cs (1)
21cchTextMax = text.Length + 1;
System.Windows.Forms.Primitives.Tests (4)
Interop\ComCtl32\LVITEMWTests.cs (4)
15cchTextMax = 0, 30cchTextMax = maxLength, 59cchTextMax = originalText.Length, 81cchTextMax = 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. 15if (cchTextMax <= text.Length) 17text = text[..(cchTextMax - 1)]; 25Span<char> targetSpan = new(pszText, cchTextMax);
System.Windows.Forms.Primitives.Tests (5)
Interop\ComCtl32\LVITEMWTests.cs (5)
39Assert.Equal(text.Length + 1, lvi.cchTextMax); 40Assert.Equal(maxLength, lvi.cchTextMax); 65ReadOnlySpan<char> sText = new(lvi.pszText, lvi.cchTextMax); 69Assert.Equal(lvi.cchTextMax, text.Length + 1); 87ReadOnlySpan<char> sText = new(lvi.pszText, lvi.cchTextMax);