Implemented interface member:
method
IndexOf
System.Collections.Generic.IList<T>.IndexOf(T)
216 references to IndexOf
Aspire.Hosting (1)
ApplicationModel\ResourceCollection.cs (1)
23public int IndexOf(IResource item) => _resources.IndexOf(item);
Aspire.Hosting.Azure.Functions (1)
AzureFunctionsProjectResourceExtensions.cs (1)
169commandLineArgs.IndexOf("--port") is var indexOfPort &&
dotnet-svcutil-lib (3)
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\XmlSerializerOperationBehavior.cs (1)
653int uniqueIndex = uniqueMappings.IndexOf(mapping);
Shared\MSBuildProj.cs (1)
819var itemIdx = packageDependencies.IndexOf(dependency);
Shared\Options\ListValue.cs (1)
148return this.InnerList.IndexOf(value);
IIS.Microbenchmarks (1)
src\Shared\BenchmarkRunner\Program.cs (1)
83var index = argsList.IndexOf("--config");
Microsoft.Analyzers.Local (1)
ApiLifecycle\Json\JsonArray.cs (1)
113public int IndexOf(JsonValue item) => _items.IndexOf(item);
Microsoft.AspNetCore (1)
WebApplicationBuilder.cs (1)
503var wireUpIndex = destinationDescriptions.IndexOf(typeof(WireSourcePipeline).FullName!);
Microsoft.AspNetCore.Components.Performance (1)
src\Shared\BenchmarkRunner\Program.cs (1)
83var index = argsList.IndexOf("--config");
Microsoft.AspNetCore.ConcurrencyLimiter.Microbenchmarks (1)
src\Shared\BenchmarkRunner\Program.cs (1)
83var index = argsList.IndexOf("--config");
Microsoft.AspNetCore.Grpc.Microbenchmarks (1)
src\Shared\BenchmarkRunner\Program.cs (1)
83var index = argsList.IndexOf("--config");
Microsoft.AspNetCore.Http.Abstractions.Microbenchmarks (1)
src\Shared\BenchmarkRunner\Program.cs (1)
83var index = argsList.IndexOf("--config");
Microsoft.AspNetCore.Http.Microbenchmarks (1)
src\Shared\BenchmarkRunner\Program.cs (1)
83var index = argsList.IndexOf("--config");
Microsoft.AspNetCore.OpenApi.Microbenchmarks (1)
src\Shared\BenchmarkRunner\Program.cs (1)
83var index = argsList.IndexOf("--config");
Microsoft.AspNetCore.OutputCaching.Microbenchmarks (1)
src\Shared\BenchmarkRunner\Program.cs (1)
83var index = argsList.IndexOf("--config");
Microsoft.AspNetCore.RequestDecompression.Microbenchmarks (1)
src\Shared\BenchmarkRunner\Program.cs (1)
83var index = argsList.IndexOf("--config");
Microsoft.AspNetCore.ResponseCaching.Microbenchmarks (1)
src\Shared\BenchmarkRunner\Program.cs (1)
83var index = argsList.IndexOf("--config");
Microsoft.AspNetCore.ResponseCompression.Microbenchmarks (1)
src\Shared\BenchmarkRunner\Program.cs (1)
83var index = argsList.IndexOf("--config");
Microsoft.AspNetCore.Routing.Microbenchmarks (1)
src\Shared\BenchmarkRunner\Program.cs (1)
83var index = argsList.IndexOf("--config");
Microsoft.AspNetCore.Security.Microbenchmarks (1)
src\Shared\BenchmarkRunner\Program.cs (1)
83var index = argsList.IndexOf("--config");
Microsoft.AspNetCore.Server.HttpSys.Microbenchmarks (1)
src\Shared\BenchmarkRunner\Program.cs (1)
83var index = argsList.IndexOf("--config");
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (1)
src\Shared\BenchmarkRunner\Program.cs (1)
83var index = argsList.IndexOf("--config");
Microsoft.AspNetCore.SignalR.Microbenchmarks (1)
src\Shared\BenchmarkRunner\Program.cs (1)
83var index = argsList.IndexOf("--config");
Microsoft.AspNetCore.WebSockets.Microbenchmarks (1)
src\Shared\BenchmarkRunner\Program.cs (1)
83var index = argsList.IndexOf("--config");
Microsoft.AspNetCore.WebUtilities.Microbenchmarks (1)
src\Shared\BenchmarkRunner\Program.cs (1)
83var index = argsList.IndexOf("--config");
Microsoft.Build (1)
Evaluation\ItemDataCollectionValue.cs (1)
101int index = list.IndexOf(oldItem);
Microsoft.Build.Engine.UnitTests (3)
BackEnd\TaskThatReturnsDictionaryTaskItem.cs (3)
80int index = _keys.IndexOf((TKey)key); 85int index = _keys.IndexOf((TKey)key); 166int index = _keys.IndexOf((TKey)key);
Microsoft.CodeAnalysis.CodeStyle.Fixes (2)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\AddImports\AddImportHelpers.cs (2)
61var originalFirstUsingCurrentIndex = newImports.IndexOf(originalFirstUsing); 63var originalLastUsingCurrentIndex = newImports.IndexOf(originalLastUsing);
Microsoft.CodeAnalysis.CodeStyle.UnitTestUtilities (1)
src\Features\DiagnosticsTestUtilities\CodeActions\SharedVerifierState.cs (1)
71var solutionTransformIndex = _remainingOptionsSolutionTransform is not null ? _test.SolutionTransforms.IndexOf(_remainingOptionsSolutionTransform) : -1;
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (2)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (2)
1308? initializerExpression.Expressions.GetSeparators().ToList().IndexOf(previousToken.Value) + 1 1435? initializerExpression.Expressions.GetSeparators().ToList().IndexOf(previousToken.Value) + 1
Microsoft.CodeAnalysis.CSharp.Workspaces (2)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (2)
1308? initializerExpression.Expressions.GetSeparators().ToList().IndexOf(previousToken.Value) + 1 1435? initializerExpression.Expressions.GetSeparators().ToList().IndexOf(previousToken.Value) + 1
Microsoft.CodeAnalysis.EditorFeatures.Wpf (2)
InlineRename\UI\Dashboard\RenameDashboard.xaml.cs (2)
143var current = _tabNavigableChildren.IndexOf(_focusedElement); 154var current = _tabNavigableChildren.IndexOf(_focusedElement);
Microsoft.CodeAnalysis.ExternalAccess.FSharp (1)
SignatureHelp\FSharpSignatureHelpItems.cs (1)
95selectedItem = distinctItems.IndexOf(actualItem);
Microsoft.CodeAnalysis.Features (2)
SignatureHelp\AbstractSignatureHelpProvider.cs (1)
108selectedItem = filteredList.IndexOf(selection);
SignatureHelp\SignatureHelpItems.cs (1)
90selectedItem = distinctItems.IndexOf(actualItem);
Microsoft.CodeAnalysis.Scripting (1)
Hosting\SynchronizedList.cs (1)
96return _list.IndexOf(item);
Microsoft.CodeAnalysis.Test.Utilities (1)
Diagnostics\DiagnosticExtensions.cs (1)
84int index = unmatchedActualDescription.IndexOf(d);
Microsoft.CodeAnalysis.UnitTests (4)
Collections\ImmutableSegmentedListTest.cs (4)
456Assert.Equal(expectedList.IndexOf(newElement), list.IndexOf(newElement)); 457Assert.Equal(expectedList.IndexOf(newElement), System.Collections.Immutable.ImmutableList.IndexOf(list, newElement.ToUpperInvariant(), StringComparer.OrdinalIgnoreCase)); 463Assert.Equal(expectedList.IndexOf(existingElement), list.IndexOf(existingElement)); 464Assert.Equal(expectedList.IndexOf(existingElement), System.Collections.Immutable.ImmutableList.IndexOf(list, existingElement.ToUpperInvariant(), StringComparer.OrdinalIgnoreCase));
Microsoft.CodeAnalysis.Workspaces (4)
Rename\ConflictEngine\ConflictResolver.Session.cs (1)
106.OrderBy(g => topologicallySortedProjects.IndexOf(g.Key));
SemanticModelReuse\AbstractSemanticModelReuseLanguageService.cs (1)
112var index = currentMembers.IndexOf(currentBodyNode);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\AddImports\AddImportHelpers.cs (2)
61var originalFirstUsingCurrentIndex = newImports.IndexOf(originalFirstUsing); 63var originalLastUsingCurrentIndex = newImports.IndexOf(originalLastUsing);
Microsoft.CSharp (1)
Microsoft\CSharp\RuntimeBinder\Semantics\Binding\Better.cs (1)
184int index = names.IndexOf(name);
Microsoft.DotNet.Build.Tasks.Installers (2)
src\RpmBuilder.cs (2)
292int directoryIndex = directories.IndexOf(dirName); 300int fileClassIndex = fileClassDictionary.IndexOf(fileKind);
Microsoft.Extensions.AI.Abstractions (1)
Embeddings\GeneratedEmbeddings.cs (1)
84public int IndexOf(TEmbedding item) => _embeddings.IndexOf(item);
Microsoft.Extensions.Configuration (1)
ConfigurationManager.cs (1)
236return _sources.IndexOf(source);
Microsoft.Extensions.DependencyInjection (1)
ServiceLookup\CallSiteFactory.cs (1)
777int index = _items.IndexOf(descriptor);
Microsoft.Extensions.DependencyInjection.Abstractions (1)
ServiceCollection.cs (1)
87return _descriptors.IndexOf(item);
Microsoft.Extensions.ObjectPool.Microbenchmark (1)
src\Shared\BenchmarkRunner\Program.cs (1)
83var index = argsList.IndexOf("--config");
Microsoft.Maui (3)
Core\Extensions\VisualTreeElementExtensions.cs (1)
281 var indexOfPlatformView = platformParentPath.IndexOf(pvh.PlatformView);
Hosting\Internal\FontCollection.cs (1)
38 public int IndexOf(FontDescriptor item) => _descriptors.IndexOf(item);
Hosting\Internal\MauiServiceCollection.cs (1)
59 public int IndexOf(ServiceDescriptor item) => _descriptors.IndexOf(item);
Microsoft.Maui.Controls (23)
Compatibility\Handlers\Shell\iOS\ShellItemRenderer.cs (1)
258 var index = ViewControllers.ToList().IndexOf(renderer.ViewController);
DefinitionCollection.cs (1)
73 return _internalList.IndexOf(item);
Layout\Layout.cs (2)
213 return _children.IndexOf(item); 250 var index = _children.IndexOf(child);
ListView\ListView.cs (1)
465 var index = _visualChildren.IndexOf(content);
Menu\MenuBarItem.cs (2)
91 return _menus.IndexOf(item); 102 var index = _menus.IndexOf(item);
Menu\MenuFlyout.cs (2)
73 return _menus.IndexOf(item); 84 var index = _menus.IndexOf(item);
Menu\MenuFlyoutSubItem.cs (2)
60 return _menus.IndexOf(item); 72 var index = _menus.IndexOf(item);
NavigationModel.cs (1)
71 int index = currentStack.IndexOf(before);
NavigationProxy.cs (1)
175 int index = _pushStack.Value.IndexOf(before);
NavigationStepRequest.cs (1)
64 return _innerList.IndexOf(item);
OrderedDictionary.cs (2)
252 return _keyOrder.IndexOf(item.Key); 301 return _keyOrder.IndexOf(key);
Shell\ShellSection.cs (2)
728 var index = _navStack.IndexOf(before); 1193 var index = stack.IndexOf(before);
Shell\ShellUriHandler.cs (2)
302 var matchIndex = globalRouteMatch.SegmentsMatched.IndexOf(possibleRoutePath.NextSegment); 508 walkBackCurrentStackIndex = localRouteStack.IndexOf(paths[0]);
SynchronizedList.cs (1)
88 return _list.IndexOf(item);
VisualStateManager.cs (1)
778 return _internalList.IndexOf(item);
Window\Window.cs (1)
441 int index = _visualChildren.IndexOf(modalPage);
Microsoft.ML.AutoML (2)
Experiment\Runners\CrossValSummaryRunner.cs (2)
205return values.ToList().IndexOf(values.Max()); 209return values.ToList().IndexOf(values.Min());
Microsoft.ML.OnnxTransformer (6)
OnnxTransform.cs (3)
477return Model.ModelInfo.OutputNames.IndexOf(Outputs[iinfo]); 884_zeroIndex = _tensorShape.IndexOf(0); 1073var idx = Transformer.Model.ModelInfo.InputNames.IndexOf(input);
OnnxUtils.cs (3)
75var index = InputNames.IndexOf(name); 79index = InitializerNames.IndexOf(name); 93var index = OutputNames.IndexOf(name);
Microsoft.ML.StandardTrainers (1)
Optimizer\DifferentiableFunction.cs (1)
209while (indices.IndexOf(index) >= 0)
Microsoft.ML.TorchSharp (1)
NasBert\Modules\EmbedTransfer.cs (1)
43var index = SearchSpace.HiddenSizeChoices.ToList().IndexOf(hiddenSize);
Microsoft.VisualStudio.LanguageServices (6)
EditorConfigSettings\Common\EnumSettingViewModel.cs (1)
58return _mapping.Values.ToList().IndexOf(value);
GenerateType\GenerateTypeDialogViewModel.cs (5)
426this.AccessSelectIndex = this.AccessList.IndexOf("public") == -1 ? 427this.AccessList.IndexOf("Public") : this.AccessList.IndexOf("public"); 758? this.AccessList.IndexOf(accessSelectString) : 0; 765? this.KindList.IndexOf(typeKindSelectString) : 0;
PresentationCore (25)
System\Windows\FreezableCollection.cs (1)
184return _collection.IndexOf(value);
System\Windows\Input\Command\CommandBindingCollection.cs (1)
303return _innerCBList?.IndexOf(value) ?? -1;
System\Windows\Input\Command\InputBindingCollection.cs (1)
233return (_innerBindingList != null) ? _innerBindingList.IndexOf(value) : -1;
System\Windows\Input\Command\InputGestureCollection.cs (1)
218return (_innerGestureList != null) ? _innerGestureList.IndexOf(value) : -1;
System\Windows\Media\Animation\Generated\BooleanKeyFrameCollection.cs (1)
348return _keyFrames.IndexOf(keyFrame);
System\Windows\Media\Animation\Generated\ByteKeyFrameCollection.cs (1)
348return _keyFrames.IndexOf(keyFrame);
System\Windows\Media\Animation\Generated\CharKeyFrameCollection.cs (1)
348return _keyFrames.IndexOf(keyFrame);
System\Windows\Media\Animation\Generated\ColorKeyFrameCollection.cs (1)
348return _keyFrames.IndexOf(keyFrame);
System\Windows\Media\Animation\Generated\DecimalKeyFrameCollection.cs (1)
348return _keyFrames.IndexOf(keyFrame);
System\Windows\Media\Animation\Generated\DoubleKeyFrameCollection.cs (1)
348return _keyFrames.IndexOf(keyFrame);
System\Windows\Media\Animation\Generated\Int16KeyFrameCollection.cs (1)
348return _keyFrames.IndexOf(keyFrame);
System\Windows\Media\Animation\Generated\Int32KeyFrameCollection.cs (1)
348return _keyFrames.IndexOf(keyFrame);
System\Windows\Media\Animation\Generated\Int64KeyFrameCollection.cs (1)
348return _keyFrames.IndexOf(keyFrame);
System\Windows\Media\Animation\Generated\MatrixKeyFrameCollection.cs (1)
348return _keyFrames.IndexOf(keyFrame);
System\Windows\Media\Animation\Generated\ObjectKeyFrameCollection.cs (1)
348return _keyFrames.IndexOf(keyFrame);
System\Windows\Media\Animation\Generated\Point3DKeyFrameCollection.cs (1)
348return _keyFrames.IndexOf(keyFrame);
System\Windows\Media\Animation\Generated\PointKeyFrameCollection.cs (1)
348return _keyFrames.IndexOf(keyFrame);
System\Windows\Media\Animation\Generated\QuaternionKeyFrameCollection.cs (1)
348return _keyFrames.IndexOf(keyFrame);
System\Windows\Media\Animation\Generated\RectKeyFrameCollection.cs (1)
348return _keyFrames.IndexOf(keyFrame);
System\Windows\Media\Animation\Generated\Rotation3DKeyFrameCollection.cs (1)
348return _keyFrames.IndexOf(keyFrame);
System\Windows\Media\Animation\Generated\SingleKeyFrameCollection.cs (1)
348return _keyFrames.IndexOf(keyFrame);
System\Windows\Media\Animation\Generated\SizeKeyFrameCollection.cs (1)
348return _keyFrames.IndexOf(keyFrame);
System\Windows\Media\Animation\Generated\StringKeyFrameCollection.cs (1)
348return _keyFrames.IndexOf(keyFrame);
System\Windows\Media\Animation\Generated\Vector3DKeyFrameCollection.cs (1)
348return _keyFrames.IndexOf(keyFrame);
System\Windows\Media\Animation\Generated\VectorKeyFrameCollection.cs (1)
348return _keyFrames.IndexOf(keyFrame);
PresentationFramework (20)
System\Windows\Automation\Peers\GroupItemAutomationPeer.cs (1)
227int realizedPeerIndex = itemsControlAP.RecentlyRealizedPeers.IndexOf(peer);
System\Windows\Controls\AlternationConverter.cs (1)
54return _values.IndexOf(o);
System\Windows\Controls\CustomDictionarySources.cs (2)
78return _uriList.IndexOf(item); 207return _uriList.IndexOf((Uri)value);
System\Windows\Controls\DataGridColumnCollection.cs (1)
686int removedDisplayIndex = DisplayIndexMap.IndexOf(columnIndex);
System\Windows\Documents\FixedSOMContainer.cs (4)
126if (This.FixedSOMPage.MarkupOrder.IndexOf(otherObjFirstNode) - This.FixedSOMPage.MarkupOrder.IndexOf(thisObjLastNode) == 1) 130else if (This.FixedSOMPage.MarkupOrder.IndexOf(otherObjLastNode) - This.FixedSOMPage.MarkupOrder.IndexOf(thisObjFirstNode) == 1)
System\Windows\Documents\FixedSOMTextRun.cs (2)
76result = markupOrder.IndexOf(this.FixedNode) - markupOrder.IndexOf(otherRun.FixedNode);
System\Windows\Markup\Baml2006\Baml2006Reader.cs (2)
348_context.CurrentKey = _context.KeyList.IndexOf(record); 390_context.CurrentKey = _context.KeyList.IndexOf(record);
System\Windows\Markup\Primitives\MarkupWriter.cs (2)
282int existingIndex = _entries.IndexOf(entry); 302int result = _entries.IndexOf(entry);
System\Windows\Media\Animation\Generated\ThicknessKeyFrameCollection.cs (1)
347return _keyFrames.IndexOf(keyFrame);
System\Windows\Navigation\Journal.cs (2)
398int index = _journalEntryList.IndexOf(entry); 419int index = _journalEntryList.IndexOf(target);
System\Windows\TriggerActionCollection.cs (2)
131return _rawList.IndexOf(value); 203return _rawList.IndexOf(VerifyIsTriggerAction(value));
ReachFramework (2)
AlphaFlattener\Optimizer.cs (2)
275if ((commands[j] != null) && m_primitives.IndexOf(j) < 0) 289if (m_primitives.IndexOf(c.m_primitives[i]) < 0)
System.ComponentModel.Composition (1)
System\ComponentModel\Composition\Hosting\ImportEngine.RecompositionManager.cs (1)
129var index = partsToUnindex.IndexOf(partManager);
System.Data.Common (2)
System\Data\RecordManager.cs (2)
270Debug.Assert((record < _lastFreeRecord) && (-1 == _freeRecordList.IndexOf(record)), "accessing free record"); 281Debug.Assert((record < _lastFreeRecord) && (-1 == _freeRecordList.IndexOf(record)), "accessing free record");
System.Diagnostics.TraceSource (1)
System\Diagnostics\TraceListeners.cs (1)
269return _list.IndexOf((TraceListener?)value);
System.Net.Http (4)
System\Net\Http\SocketsHttpHandler\ConnectionPool\HttpConnectionPool.Http2.cs (2)
116int index = _availableHttp2Connections.IndexOf(connection); 546int index = _availableHttp2Connections.IndexOf(connection);
System\Net\Http\SocketsHttpHandler\ConnectionPool\HttpConnectionPool.Http3.cs (2)
185int index = _availableHttp3Connections.IndexOf(connection); 543int index = _availableHttp3Connections.IndexOf(connection);
System.Net.HttpListener (2)
System\Net\Managed\HttpListener.Managed.cs (2)
166int idx = _contextQueue.IndexOf(context); 324int idx = _asyncWaitQueue.IndexOf(ares);
System.Private.CoreLib (4)
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\List.cs (3)
352return _size != 0 && IndexOf(item) >= 0; 725return IndexOf((T)item!); 942int index = IndexOf(item);
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\Task.cs (1)
4675int index = continuationsLocalListRef.IndexOf(continuationObject);
System.Private.Windows.Core (1)
Windows\Win32\System\Com\ComPointerList.cs (1)
39public int IndexOf(T* item) => _pointers.IndexOf((nint)item);
System.Resources.Extensions (1)
src\libraries\Common\src\System\Resources\ResourceWriter.cs (1)
505int typeIndex = types.IndexOf(typeName);
System.Resources.Writer (1)
src\libraries\Common\src\System\Resources\ResourceWriter.cs (1)
505int typeIndex = types.IndexOf(typeName);
System.Text.Json (4)
System\Text\Json\Nodes\JsonArray.cs (2)
133return List.IndexOf(node); 247int index = List.IndexOf(child);
System\Text\Json\Nodes\JsonArray.IList.cs (1)
67public int IndexOf(JsonNode? item) => List.IndexOf(item);
System\Text\Json\Serialization\ConfigurationList.cs (1)
88return _list.IndexOf(item);
System.Text.RegularExpressions (2)
System\Text\RegularExpressions\MatchCollection.cs (1)
134return _matches.IndexOf(item);
System\Text\RegularExpressions\RegexNode.cs (1)
2219int currentIndex = peers.IndexOf(subsequent);
System.Text.RegularExpressions.Generator (1)
src\libraries\System.Text.RegularExpressions\src\System\Text\RegularExpressions\RegexNode.cs (1)
2219int currentIndex = peers.IndexOf(subsequent);
System.Windows.Forms (23)
System\Windows\Forms\AutoCompleteStringCollection.cs (1)
128public int IndexOf(string value) => _data.IndexOf(value);
System\Windows\Forms\Controls\ComboBox\ComboBox.ComboBoxItemAccessibleObject.cs (1)
106private int GetCurrentIndex() => _owningComboBox.Items.InnerList.IndexOf(_owningItem);
System\Windows\Forms\Controls\DataGridView\DataGridViewCellCollection.cs (2)
259int index = _items.IndexOf(dataGridViewCell); 263public int IndexOf(DataGridViewCell dataGridViewCell) => _items.IndexOf(dataGridViewCell);
System\Windows\Forms\Controls\DataGridView\DataGridViewColumnCollection.cs (5)
43int IList.IndexOf(object? value) => _items.IndexOf((DataGridViewColumn)value!); 162int index = _items.IndexOf(dataGridViewColumn); 252index = _items.IndexOf(dataGridViewColumn); 331public virtual bool Contains(DataGridViewColumn dataGridViewColumn) => _items.IndexOf(dataGridViewColumn) != -1; 859public int IndexOf(DataGridViewColumn dataGridViewColumn) => _items.IndexOf(dataGridViewColumn);
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxCell.ObjectCollection.cs (3)
68index = InnerArray.IndexOf(item); 206return InnerArray.IndexOf(value); 243int index = InnerArray.IndexOf(value!);
System\Windows\Forms\Controls\DataGridView\DataGridViewRowCollection.cs (4)
45int IList.IndexOf(object? value) => _items.IndexOf((DataGridViewRow)value!); 126if (SharedList.LastIndexOf(dataGridViewRow) == index && SharedList.IndexOf(dataGridViewRow) == index) 844return _items.IndexOf(dataGridViewRow) != -1; 1348return _items.IndexOf(dataGridViewRow);
System\Windows\Forms\Controls\Labels\LinkLabel.cs (1)
1561focusIndex = _links.IndexOf(FocusLink);
System\Windows\Forms\Controls\Labels\LinkLabel.LinkCollection.cs (1)
239return _owner._links.IndexOf(link);
System\Windows\Forms\Controls\ListView\ListViewGroupCollection.cs (1)
225public int IndexOf(ListViewGroup value) => List.IndexOf(value);
System\Windows\Forms\Controls\ListView\ListViewGroupItemCollection.cs (1)
88public int IndexOf(ListViewItem item) => Items.IndexOf(item);
System\Windows\Forms\Controls\ToolStrips\ToolStripItemCollection.cs (1)
336return InnerList.IndexOf(value);
System\Windows\Forms\Controls\ToolStrips\ToolStripPanel.ToolStripPanelRowCollection.cs (1)
129return InnerList.IndexOf(value);
System\Windows\Forms\ErrorProvider\ErrorProvider.ControlItem.ControlItemAccessibleObject.cs (1)
40private int CurrentIndex => _window?.ControlItems.IndexOf(_controlItem) ?? -1;
System.Windows.Forms.Design (17)
System\ComponentModel\Design\SelectionService.cs (1)
399if (requestedPrimary is not null && _selection is not null && (primaryIndex = _selection.IndexOf(requestedPrimary)) != -1)
System\Windows\Forms\Design\Behavior\BehaviorService.cs (2)
341int index = _behaviorStack.IndexOf(behavior); 394int index = _behaviorStack.IndexOf(behavior);
System\Windows\Forms\Design\Behavior\TableLayoutPanelBehavior.cs (2)
124int moveIndex = _styles.IndexOf(_tableGlyph.Style); 190int moveIndex = _styles.IndexOf(_tableGlyph.Style);
System\Windows\Forms\Design\ComponentTray.cs (3)
1773int index = _controls.IndexOf(c); 1795int index = _controls.IndexOf(c); 1810Debug.Assert(_controls.IndexOf(c) != -1, "Add control to the list of controls before autoarranging.!!!");
System\Windows\Forms\Design\DesignerFrame.cs (4)
420Debug.Assert(_overlayList.IndexOf(control) == -1, $"Duplicate overlay in overlay service: {control.GetType().FullName}"); 429return _overlayList.IndexOf(control); 438Debug.Assert(_overlayList.IndexOf(control) != -1, $"Control is not in overlay service: {control.GetType().FullName}"); 449Debug.Assert(_overlayList.IndexOf(control) == -1, $"Duplicate overlay in overlay service: {control.GetType().FullName}");
System\Windows\Forms\Design\ImageListDesigner.OriginalImageCollection.cs (2)
98return _items.IndexOf(value); 143public int IndexOf(ImageListImage? value) => value is ImageListImage imageListImage ? _items.IndexOf(imageListImage) : -1;
System\Windows\Forms\Design\ToolStripDesigner.cs (1)
1869primaryIndex = dragComponents.IndexOf(primaryItem);
System\Windows\Forms\Design\ToolStripItemBehavior.cs (1)
700primaryIndex = dragComponents.IndexOf(selectedItem);
System\Windows\Forms\Design\ToolStripMenuItemDesigner.cs (1)
2727primaryIndex = dragComponents.IndexOf(primaryItem);
System.Windows.Forms.Primitives (1)
System\Windows\Forms\NonNullCollection.cs (1)
50public int IndexOf(T item) => _list.IndexOf(item);
System.Windows.Forms.Tests (1)
System\Windows\Forms\BindingSourceTests.cs (1)
776public int IndexOf(T item) => _innerList.IndexOf(item);
System.Xaml (2)
System\Xaml\XamlObjectReader.cs (2)
3064int existingIndex = _entries.IndexOf(entry); 3084int result = _entries.IndexOf(entry);