21 references to Length
System.Private.Windows.Core (4)
Windows\Win32\PInvokeCore.GetWindowText.cs (2)
46
int actualTextLength = GetWindowText(hWnd.Handle, b, buffer.
Length
);
57
if (actualTextLength > buffer.
Length
- 2)
Windows\Win32\System\Com\ComManagedStream.cs (2)
86
uint 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)
3273
uint length = PInvokeCore.DragQueryFile(endropfiles, iFile: 0, b, cch: (uint)buffer.
Length
);
System\Windows\Forms\Dialogs\CommonDialogs\FolderBrowserDialog.cs (1)
517
bool isFileSystemFolder = PInvoke.SHGetPathFromIDListEx(selectedPidl, b, (uint)buffer.
Length
, GPFIDL_FLAGS.GPFIDL_UNCPRINTER);
System\Windows\Forms\ErrorProvider\ErrorProvider.IconRegion.cs (1)
57
PInvoke.GetBitmapBits(mask, bits.
Length
, pbits);
System.Windows.Forms.Primitives (6)
Windows\Win32\PInvoke.GetModuleFileNameLongPath.cs (4)
20
int pathLength = (int)GetModuleFileName(hModule, lpFilename, (uint)buffer.
Length
);
28
if (pathLength < buffer.
Length
)
34
if (buffer.
Length
>= short.MaxValue)
41
buffer.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)
64
bool success = PInvoke.SHGetPathFromIDListEx(resultId, b, (uint)buffer.
Length
, GPFIDL_FLAGS.GPFIDL_UNCPRINTER);
System.Windows.Forms.Primitives.Tests (7)
System\BufferScopeTests.cs (7)
12
Assert.Equal(10, buffer.
Length
);
21
Assert.Equal(10, buffer.
Length
);
24
Assert.True(buffer.
Length
>= 64);
32
Assert.Equal(10, buffer.
Length
);
47
Assert.True(buffer.
Length
>= 32);
50
Assert.True(buffer.
Length
>= 64);
58
Assert.True(buffer.
Length
>= 64);