2 implementations of Next
PresentationCore (1)
System\Windows\dataobject.cs (1)
2317public int Next(int celt, FORMATETC[] rgelt, int[] pceltFetched)
System.Windows.Forms (1)
System\Windows\Forms\OLE\DataObject.FormatEnumerator.cs (1)
57public int Next(int celt, ComTypes.FORMATETC[] rgelt, int[]? pceltFetched)
33 references to Next
PresentationCore (1)
System\Windows\dataobject.cs (1)
2481if (enumFORMATETC.Next(1, formatetc, retrieved) == NativeMethods.S_OK && retrieved[0] > 0)
System.Windows.Forms.Tests (32)
System\Windows\Forms\DataObjectTests.cs (32)
2012enumerator.Next(celt, result, fetched).Should().Be((int)HRESULT.S_FALSE); 2016enumerator.Next(celt, null, null).Should().Be((int)HRESULT.S_FALSE); 2068((HRESULT)enumerator.Next(0, result, fetched)).Should().Be(HRESULT.S_FALSE); 2071((HRESULT)enumerator.Next(0, null, null)).Should().Be(HRESULT.S_FALSE); 2074((HRESULT)enumerator.Next(-1, result, fetched)).Should().Be(HRESULT.S_FALSE); 2077((HRESULT)enumerator.Next(-1, null, null)).Should().Be(HRESULT.S_FALSE); 2080((Action)(() => enumerator.Next(1, null, fetched))).Should().Throw<NullReferenceException>(); 2083((HRESULT)enumerator.Next(i + 1, result, fetched)).Should().Be(HRESULT.S_OK); 2093((HRESULT)enumerator.Next(i + 1, result, fetched)).Should().Be(HRESULT.S_OK); 2103((HRESULT)enumerator.Next(1, null, null)).Should().Be(HRESULT.S_FALSE); 2104((HRESULT)enumerator.Next(1, null, null)).Should().Be(HRESULT.S_FALSE); 2129((HRESULT)enumerator.Next(celt, result, fetched)).Should().Be(HRESULT.S_FALSE); 2133((HRESULT)enumerator.Next(celt, null, null)).Should().Be(HRESULT.S_FALSE); 2152((HRESULT)enumerator.Next(1, result, fetched)).Should().Be(HRESULT.S_FALSE); 2156Action action = () => enumerator.Next(1, result, fetched); 2176((HRESULT)enumerator.Next(1, result, fetched)).Should().Be(HRESULT.S_OK); 2186((HRESULT)enumerator.Next(1, result, fetched)).Should().Be(HRESULT.S_OK); 2196((HRESULT)enumerator.Next(1, result, fetched)).Should().Be(HRESULT.S_OK); 2209Action action = () => enumerator.Next(1, result, fetched); 2228((HRESULT)enumerator.Next(celt, result, fetched)).Should().Be(HRESULT.S_FALSE); 2232((HRESULT)enumerator.Next(celt, null, null)).Should().Be(HRESULT.S_FALSE); 2258((HRESULT)enumerator.Next(0, result, fetched)).Should().Be(HRESULT.S_FALSE); 2261((HRESULT)enumerator.Next(0, null, null)).Should().Be(HRESULT.S_FALSE); 2264((HRESULT)enumerator.Next(-1, result, fetched)).Should().Be(HRESULT.S_FALSE); 2267((HRESULT)enumerator.Next(-1, null, null)).Should().Be(HRESULT.S_FALSE); 2270((Action)(() => enumerator.Next(1, null, fetched))).Should().Throw<NullReferenceException>(); 2273((HRESULT)enumerator.Next(i + 1, result, fetched)).Should().Be(HRESULT.S_OK); 2283((HRESULT)enumerator.Next(i + 1, result, fetched)).Should().Be(HRESULT.S_OK); 2293((HRESULT)enumerator.Next(1, null, null)).Should().Be(HRESULT.S_FALSE); 2294((HRESULT)enumerator.Next(1, null, null)).Should().Be(HRESULT.S_FALSE); 2320((HRESULT)enumerator.Next(celt, result, fetched)).Should().Be(HRESULT.S_FALSE); 2324((HRESULT)enumerator.Next(celt, null, null)).Should().Be(HRESULT.S_FALSE);