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)
53public 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)
2093enumerator.Next(celt, result, fetched).Should().Be((int)HRESULT.S_FALSE); 2097enumerator.Next(celt, null, null).Should().Be((int)HRESULT.S_FALSE); 2149((HRESULT)enumerator.Next(0, result, fetched)).Should().Be(HRESULT.S_FALSE); 2152((HRESULT)enumerator.Next(0, null, null)).Should().Be(HRESULT.S_FALSE); 2155((HRESULT)enumerator.Next(-1, result, fetched)).Should().Be(HRESULT.S_FALSE); 2158((HRESULT)enumerator.Next(-1, null, null)).Should().Be(HRESULT.S_FALSE); 2161((Action)(() => enumerator.Next(1, null, fetched))).Should().Throw<NullReferenceException>(); 2164((HRESULT)enumerator.Next(i + 1, result, fetched)).Should().Be(HRESULT.S_OK); 2174((HRESULT)enumerator.Next(i + 1, result, fetched)).Should().Be(HRESULT.S_OK); 2184((HRESULT)enumerator.Next(1, null, null)).Should().Be(HRESULT.S_FALSE); 2185((HRESULT)enumerator.Next(1, null, null)).Should().Be(HRESULT.S_FALSE); 2210((HRESULT)enumerator.Next(celt, result, fetched)).Should().Be(HRESULT.S_FALSE); 2214((HRESULT)enumerator.Next(celt, null, null)).Should().Be(HRESULT.S_FALSE); 2233((HRESULT)enumerator.Next(1, result, fetched)).Should().Be(HRESULT.S_FALSE); 2237Action action = () => enumerator.Next(1, result, fetched); 2257((HRESULT)enumerator.Next(1, result, fetched)).Should().Be(HRESULT.S_OK); 2267((HRESULT)enumerator.Next(1, result, fetched)).Should().Be(HRESULT.S_OK); 2277((HRESULT)enumerator.Next(1, result, fetched)).Should().Be(HRESULT.S_OK); 2290Action action = () => enumerator.Next(1, result, fetched); 2309((HRESULT)enumerator.Next(celt, result, fetched)).Should().Be(HRESULT.S_FALSE); 2313((HRESULT)enumerator.Next(celt, null, null)).Should().Be(HRESULT.S_FALSE); 2339((HRESULT)enumerator.Next(0, result, fetched)).Should().Be(HRESULT.S_FALSE); 2342((HRESULT)enumerator.Next(0, null, null)).Should().Be(HRESULT.S_FALSE); 2345((HRESULT)enumerator.Next(-1, result, fetched)).Should().Be(HRESULT.S_FALSE); 2348((HRESULT)enumerator.Next(-1, null, null)).Should().Be(HRESULT.S_FALSE); 2351((Action)(() => enumerator.Next(1, null, fetched))).Should().Throw<NullReferenceException>(); 2354((HRESULT)enumerator.Next(i + 1, result, fetched)).Should().Be(HRESULT.S_OK); 2364((HRESULT)enumerator.Next(i + 1, result, fetched)).Should().Be(HRESULT.S_OK); 2374((HRESULT)enumerator.Next(1, null, null)).Should().Be(HRESULT.S_FALSE); 2375((HRESULT)enumerator.Next(1, null, null)).Should().Be(HRESULT.S_FALSE); 2401((HRESULT)enumerator.Next(celt, result, fetched)).Should().Be(HRESULT.S_FALSE); 2405((HRESULT)enumerator.Next(celt, null, null)).Should().Be(HRESULT.S_FALSE);