Implemented interface member:
property
Count
System.Collections.ICollection.Count
62 references to Count
System.Web.Mobile (1)
UI\MobileControls\Design\StylesEditorDialog.cs (1)
399Debug.Assert(_lvAvailableStyles.Items.Count > 0);
System.Windows.Forms (49)
winforms\Managed\System\WinForms\ListView.cs (45)
1693if (Items.Count > 0) { 1701if (topIndex >= 0 && topIndex < Items.Count) 1722if ((topItem == null) && (topIndex == Items.Count)) // HACK ALERT! VSWhidbey bug 154094/Windows OS Bugs bug 872012 1869if (value && Items.Count > 0) 2392this.Items.Count > 0) { 2415this.Items.Count > 0) { 2426for (int i = 0; i < this.Items.Count; i ++) { 3059if (index < 0 || index >= Items.Count) { 3071if (this.Items.Count == 0) { 3089if (startIndex < 0 || startIndex >= this.Items.Count) 3154if (this.Items.Count == 0) { 3192for (int i = startIndex; i < this.Items.Count; i ++) { 3412if (index < 0 || index >= this.Items.Count) { 3440if (index < 0 || index >= this.Items.Count) 3500if (itemIndex < 0 || itemIndex >= this.Items.Count) { 3711for (int i = 0; i < this.Items.Count; i ++) { 3764if (this.IsHandleCreated && this.Items.Count == 0 && this.View == View.SmallIcon && this.ComctlSupportsVisualStyles) 4100if (this.Items.Count > 0) { 4363for (int i = 0; i < this.Items.Count; i ++) { 4381int count = Items.Count; 4402items = new ListViewItem[tempItems.Count]; 4682if (startIndex < 0 || startIndex >= this.Items.Count) 4686if (endIndex < 0 || endIndex >= this.Items.Count) 4719if (endIndex < this.Items.Count - 1) 5153if (itemIndex < 0 || itemIndex >= this.Items.Count) { 5212s += ", Items.Count: " + Items.Count.ToString(CultureInfo.CurrentCulture); 5213if (Items.Count > 0 && !VirtualMode) { 5942if (this.Items.Count > 0) { 5950if (this.Items.Count == 0 || this.Items[this.Items.Count - 1] != null) 6347if (FocusedItem == null && Items.Count > 0) 6453for(int i=0; i < owner.Items.Count && index < indices.Length; ++i) { 6475int cnt = owner.Items.Count; 6681for(int i=0; i < owner.Items.Count && index < items.Length; ++i) { 7217if (itemIndex < 0 || itemIndex >= this.owner.Items.Count) 7276if (itemIndex < 0 || itemIndex >= this.owner.Items.Count) 8536ListViewItem[] itemArray = new ListViewItem[items.Count]; 8611for (int i = 0; i < listViewItems.Count; i++) { 8649for(int index=0; index < Count; ++index) { 8686for (int i = 0; i < this.Count; i ++) { 8704return ((index >= 0) && (index < this.Count)); 8712if (index < 0 || index > Count) { 8791if (index < 0 || index >= Count) { 9002int count = owner.Items.Count; 9042int count = owner.Items.Count;
winforms\Managed\System\WinForms\ListViewGroup.cs (4)
291if (items != null && items.Count > 0) { 292info.AddValue("ItemsCount", this.Items.Count); 293for (int i = 0; i < Items.Count; i ++) { 513for (int i = 0; i < group.Items.Count; i ++) {
System.Workflow.Activities (11)
Rules\Design\Dialogs\BasicBrowserDialog.cs (2)
229if (this.rulesListView.Items.Count > 0) 231int newSelectionIndex = Math.Min(selectionIndex, this.rulesListView.Items.Count - 1);
Rules\Design\Dialogs\IntellisenseTextBox.cs (6)
205if (this.listBoxAutoComplete.Items.Count > 0) 211else if (this.listBoxAutoComplete.SelectedIndices[0] < this.listBoxAutoComplete.Items.Count - 1) 407if (this.listBoxAutoComplete.Items.Count > 0) 422if (this.listBoxAutoComplete.Items.Count > 0) 473if (string.IsNullOrEmpty(currentValue.Trim()) && this.listBoxAutoComplete.Items.Count > 0) 481for (int i = 0; i < this.listBoxAutoComplete.Items.Count; i++)
Rules\Design\Dialogs\RuleSetDialog.cs (3)
115if (this.rulesListView.Items.Count > 0) 327if (this.rulesListView.Items.Count > 0) 329int newSelectionIndex = Math.Min(selectionIndex, this.rulesListView.Items.Count - 1);
System.Workflow.ComponentModel (1)
AuthoringOM\Design\Dialogs\TypeBrowserDialog.cs (1)
894if (this.artifactListView.Items.Count > 0)