Implemented interface member:
property
Count
System.Collections.ICollection.Count
71 references to Count
System.Web (57)
UI\Control.cs (16)
1571int controlCount = _controls.Count; 1628int controlCount = _controls.Count; 1710int controlCount = _controls.Count; 1767int controlCount = _controls.Count; 2088int ctrlCount = ctrlColl.Count; 2267int controlCount = _controls.Count; 2298int controlCount = _controls.Count; 2344int controlCount = _controls.Count; 2387int controlCount = _controls.Count; 2440int controlCount = _controls.Count; 2526int occasionalFieldControlCount = occasionalFieldControls.Count; 2700int controlCount = _controls.Count; 3083Debug.Assert((controls != null) && (controls.Count != 0)); 3085int controlCount = controls.Count; 3225return _controls != null && _controls.Count > 0; 3259return (_controls != null) && (_controls.Count == 1) &&
UI\ControlCollection.cs (3)
350if (index < (list.Count-1)) { 360index = list.Count; 374if (index >= list.Count)
UI\HtmlControls\HtmlContainerControl.cs (2)
73else if (HasControls() && (Controls.Count == 1) && Controls[0] is DataBoundLiteralControl) 76if (Controls.Count == 0)
UI\HtmlControls\HtmlTableCellCollection.cs (1)
54return owner.Controls.Count;
UI\HtmlControls\HtmlTableRowCollection.cs (1)
55return owner.Controls.Count;
UI\WebControls\AutoGeneratedField.cs (1)
144if (cell.Controls.Count > 0) {
UI\WebControls\BoundField.cs (1)
340if (cell.Controls.Count > 0) {
UI\WebControls\CheckBoxField.cs (1)
237if (cell.Controls.Count > 0) {
UI\WebControls\DataGrid.cs (1)
1639if (Controls.Count == 0)
UI\WebControls\DataList.cs (3)
987item = (DataListItem)Controls[Controls.Count - 1]; 1217int controlCount = controls.Count; 1334if (Controls.Count == 0)
UI\WebControls\DetailsView.cs (1)
3222if (Controls.Count < 1) {
UI\WebControls\FormView.cs (2)
2767if (Controls.Count < 1) { 2869if (Controls.Count > 0) {
UI\WebControls\GridView.cs (1)
3951if (Controls.Count == 0)
UI\WebControls\ImageField.cs (3)
283if (cell.Controls.Count == 0) { // this should happen only in design mode 482if (boundControl.Controls.Count == 0 || !(boundControl.Controls[0] is Image)) { 495if (cell.Controls.Count < 2 || !(cell.Controls[0] is Image) || !(cell.Controls[1] is Label)) {
UI\WebControls\MultiView.cs (9)
75if (Views.Count == 0 && ControlState < ControlState.FrameworkInitialized /* Whidbey 113333 */) { 79if (value >= Views.Count) { 81SR.GetString(SR.MultiView_ActiveViewIndex_equal_or_greater_than_count, value, Views.Count)); 90if (originalIndex != value && originalIndex != -1 && originalIndex < Views.Count) { 96if (originalIndex != value && Views.Count != 0 && value != -1) { 187if (activeViewIndex >= Views.Count) { 206for (int i=0; i<Views.Count; ++i) { 265if (ActiveViewIndex < Views.Count - 1) { 325if (((View)ctl).Active && ActiveViewIndex < Views.Count) {
UI\WebControls\TableCellCollection.cs (2)
50return owner.Controls.Count; 78return owner.Controls.Count - 1;
UI\WebControls\TableRowCollection.cs (2)
45return owner.Controls.Count; 73return owner.Controls.Count - 1;
UI\WebControls\Wizard.cs (1)
3516return Views.Count;
UI\WebParts\DeclarativeCatalogPart.cs (2)
132Control[] controls = new Control[container.Controls.Count]; 148Control[] controls = new Control[userControl.Controls.Count];
UI\WebParts\PropertyGridEditorPart.cs (1)
107int count = Controls.Count;
UI\WebParts\WebPartManager.cs (1)
4025int webPartsCount = Controls.Count;
UI\WebParts\WebPartZone.cs (1)
83Control[] children = new Control[control.Controls.Count];
UI\WebParts\WebPartZoneBase.cs (1)
757WebPart[] parts = new WebPart[Controls.Count];
System.Web.Extensions (2)
UI\UpdatePanel.cs (1)
467Debug.Assert(Count == 0, "The collection must be empty if this is called");
UI\WebControls\ListView.cs (1)
1994if (this.Controls.Count == 0 || _instantiatedEmptyDataTemplate) {
System.Web.Mobile (12)
UI\MobileControls\Design\BaseValidatorDesigner.cs (1)
60for (int i = _baseValidator.Controls.Count - 1; i >= 0; i--)
UI\MobileControls\Design\CommandDesigner.cs (1)
84children = new Control[_command.Controls.Count];
UI\MobileControls\Design\LabelDesigner.cs (1)
87children = new Control[_label.Controls.Count];
UI\MobileControls\Design\LinkDesigner.cs (1)
87children = new Control[_link.Controls.Count];
UI\MobileControls\Design\MobileControlDesigner.cs (1)
372children = new Control[_mobileControl.Controls.Count];
UI\MobileControls\Design\MobileControlPersister.cs (1)
957int children = controls.Count;
UI\MobileControls\Design\PhoneCallDesigner.cs (1)
88children = new Control[_call.Controls.Count];
UI\MobileControls\Design\TextViewDesigner.cs (1)
92children = new Control[_textView.Controls.Count];
UI\MobileControls\List.cs (1)
218ChildControlsCreated = ChildControlsCreated && Controls.Count > 0;
UI\MobileControls\MobileControl.cs (1)
1019for (int i = Controls.Count - 1; i >= 0; i--)
UI\MobileControls\MobilePage.cs (1)
222int probableFormCount = Controls.Count / 2; // since there are literal controls between each
UI\MobileControls\ObjectList.cs (1)
477ChildControlsCreated = ChildControlsCreated && Controls.Count > 0;