2 implementations of Next
PresentationCore (1)
System\Windows\dataobject.cs (1)
2291public int Next(int celt, FORMATETC[] rgelt, int[] pceltFetched)
System.Private.Windows.Core (1)
System\Private\Windows\Ole\FormatEnumerator.cs (1)
55public int Next(int celt, ComTypes.FORMATETC[] rgelt, int[]? pceltFetched)
33 references to Next
PresentationCore (1)
System\Windows\dataobject.cs (1)
2455if (enumFORMATETC.Next(1, formatetc, retrieved) == NativeMethods.S_OK && retrieved[0] > 0)
System.Windows.Forms.Tests (32)
System\Windows\Forms\DataObjectTests.cs (32)
2092enumerator.Next(celt, result, fetched).Should().Be((int)HRESULT.S_FALSE); 2096enumerator.Next(celt, null, null).Should().Be((int)HRESULT.S_FALSE); 2148((HRESULT)enumerator.Next(0, result, fetched)).Should().Be(HRESULT.S_FALSE); 2151((HRESULT)enumerator.Next(0, null, null)).Should().Be(HRESULT.S_FALSE); 2154((HRESULT)enumerator.Next(-1, result, fetched)).Should().Be(HRESULT.S_FALSE); 2157((HRESULT)enumerator.Next(-1, null, null)).Should().Be(HRESULT.S_FALSE); 2160((Action)(() => enumerator.Next(1, null, fetched))).Should().Throw<NullReferenceException>(); 2163((HRESULT)enumerator.Next(i + 1, result, fetched)).Should().Be(HRESULT.S_OK); 2173((HRESULT)enumerator.Next(i + 1, result, fetched)).Should().Be(HRESULT.S_OK); 2183((HRESULT)enumerator.Next(1, null, null)).Should().Be(HRESULT.S_FALSE); 2184((HRESULT)enumerator.Next(1, null, null)).Should().Be(HRESULT.S_FALSE); 2209((HRESULT)enumerator.Next(celt, result, fetched)).Should().Be(HRESULT.S_FALSE); 2213((HRESULT)enumerator.Next(celt, null, null)).Should().Be(HRESULT.S_FALSE); 2232((HRESULT)enumerator.Next(1, result, fetched)).Should().Be(HRESULT.S_FALSE); 2236Action action = () => enumerator.Next(1, result, fetched); 2256((HRESULT)enumerator.Next(1, result, fetched)).Should().Be(HRESULT.S_OK); 2266((HRESULT)enumerator.Next(1, result, fetched)).Should().Be(HRESULT.S_OK); 2276((HRESULT)enumerator.Next(1, result, fetched)).Should().Be(HRESULT.S_OK); 2289Action action = () => enumerator.Next(1, result, fetched); 2308((HRESULT)enumerator.Next(celt, result, fetched)).Should().Be(HRESULT.S_FALSE); 2312((HRESULT)enumerator.Next(celt, null, null)).Should().Be(HRESULT.S_FALSE); 2338((HRESULT)enumerator.Next(0, result, fetched)).Should().Be(HRESULT.S_FALSE); 2341((HRESULT)enumerator.Next(0, null, null)).Should().Be(HRESULT.S_FALSE); 2344((HRESULT)enumerator.Next(-1, result, fetched)).Should().Be(HRESULT.S_FALSE); 2347((HRESULT)enumerator.Next(-1, null, null)).Should().Be(HRESULT.S_FALSE); 2350((Action)(() => enumerator.Next(1, null, fetched))).Should().Throw<NullReferenceException>(); 2353((HRESULT)enumerator.Next(i + 1, result, fetched)).Should().Be(HRESULT.S_OK); 2363((HRESULT)enumerator.Next(i + 1, result, fetched)).Should().Be(HRESULT.S_OK); 2373((HRESULT)enumerator.Next(1, null, null)).Should().Be(HRESULT.S_FALSE); 2374((HRESULT)enumerator.Next(1, null, null)).Should().Be(HRESULT.S_FALSE); 2400((HRESULT)enumerator.Next(celt, result, fetched)).Should().Be(HRESULT.S_FALSE); 2404((HRESULT)enumerator.Next(celt, null, null)).Should().Be(HRESULT.S_FALSE);