21 references to Length
System.Private.Windows.Core (4)
Windows\Win32\PInvokeCore.GetWindowText.cs (2)
46int actualTextLength = GetWindowText(hWnd.Handle, b, buffer.Length); 57if (actualTextLength > buffer.Length - 2)
Windows\Win32\System\Com\ComManagedStream.cs (2)
86uint read = remaining < (ulong)buffer.Length ? (uint)remaining : (uint)buffer.Length;
System.Windows.Forms (4)
System\Windows\Forms\ComponentModel\COM2Interop\COM2PropertyDescriptor.cs (1)
905(uint)buffer.Length - 2,
System\Windows\Forms\Controls\RichTextBox\RichTextBox.cs (1)
3273uint length = PInvokeCore.DragQueryFile(endropfiles, iFile: 0, b, cch: (uint)buffer.Length);
System\Windows\Forms\Dialogs\CommonDialogs\FolderBrowserDialog.cs (1)
517bool isFileSystemFolder = PInvoke.SHGetPathFromIDListEx(selectedPidl, b, (uint)buffer.Length, GPFIDL_FLAGS.GPFIDL_UNCPRINTER);
System\Windows\Forms\ErrorProvider\ErrorProvider.IconRegion.cs (1)
57PInvoke.GetBitmapBits(mask, bits.Length, pbits);
System.Windows.Forms.Primitives (6)
Windows\Win32\PInvoke.GetModuleFileNameLongPath.cs (4)
20int pathLength = (int)GetModuleFileName(hModule, lpFilename, (uint)buffer.Length); 28if (pathLength < buffer.Length) 34if (buffer.Length >= short.MaxValue) 41buffer.EnsureCapacity(Math.Min(buffer.Length * 2, short.MaxValue));
Windows\Win32\Pinvoke.RegLoadMUIString.cs (1)
26(uint)(buffer.Length * sizeof(char)),
Windows\Win32\UI\Shell\FolderBrowserHelper.cs (1)
64bool success = PInvoke.SHGetPathFromIDListEx(resultId, b, (uint)buffer.Length, GPFIDL_FLAGS.GPFIDL_UNCPRINTER);
System.Windows.Forms.Primitives.Tests (7)
System\BufferScopeTests.cs (7)
12Assert.Equal(10, buffer.Length); 21Assert.Equal(10, buffer.Length); 24Assert.True(buffer.Length >= 64); 32Assert.Equal(10, buffer.Length); 47Assert.True(buffer.Length >= 32); 50Assert.True(buffer.Length >= 64); 58Assert.True(buffer.Length >= 64);