Implemented interface member:
property
Count
System.Collections.ICollection.Count
92 references to Count
PresentationCore (3)
Core\CSharp\MS\Internal\Ink\Renderer.cs (2)
562for (int j = parent.Children.Count - 1; j >= 0; j--) 637hcVisual.Children.Count == 0 &&
Core\CSharp\System\Windows\Media\ContainerVisual.cs (1)
254return _children.Count;
PresentationFramework (89)
src\Framework\MS\Internal\Documents\DocumentGrid.cs (15)
878int count = _childrenCollection.Count; 1027if(_childrenCollection == null || index < 0 || index >= _childrenCollection.Count) 1049return _childrenCollection.Count; 1073int count = _childrenCollection.Count; 1192int count = _childrenCollection.Count; 1228if (visualChild > _childrenCollection.Count - 1) 1422if (_childrenCollection.Count > _firstPageVisualIndex) 1427DocumentGridPage lastDp = _childrenCollection[_childrenCollection.Count-1] as DocumentGridPage; 1465if (j < firstPage || j > lastPage || _childrenCollection.Count <= _firstPageVisualIndex) 1539if (vcIndex < _childrenCollection.Count && _childrenCollection[vcIndex] == current) 1557if (vcIndex >= _childrenCollection.Count || _childrenCollection[vcIndex] != current) 1685for (int i = _childrenCollection.Count - 1; i >= _firstPageVisualIndex; i--) 2321int count = _childrenCollection.Count; 2816for (int i = _firstPageVisualIndex; i < _childrenCollection.Count; i++) 2838for (int i = _firstPageVisualIndex; i < _childrenCollection.Count; i++)
src\Framework\MS\Internal\PtsHost\FigureParaClient.cs (6)
423if(_visual.Children.Count != 2) 453else if (visualChildren.Count == 1 && !(visualChildren[0] is ContainerVisual)) 458Debug.Assert(visualChildren.Count == 1 && visualChildren[0] is ContainerVisual); 484if (visualChildren.Count == 0) 493Debug.Assert(visualChildren.Count == 1 && visualChildren[0] is SectionVisual); 509ErrorHandler.Assert(visualChildren.Count == arrayColumnDesc.Length, ErrorHandler.ColumnVisualCountMismatch);
src\Framework\MS\Internal\PtsHost\FloaterParaClient.cs (6)
427if(_visual.Children.Count != 2) 457else if (visualChildren.Count == 1 && !(visualChildren[0] is ContainerVisual)) 462Debug.Assert(visualChildren.Count == 1 && visualChildren[0] is ContainerVisual); 488if (visualChildren.Count == 0) 497Debug.Assert(visualChildren.Count == 1 && visualChildren[0] is SectionVisual); 513ErrorHandler.Assert(visualChildren.Count == arrayColumnDesc.Length, ErrorHandler.ColumnVisualCountMismatch);
src\Framework\MS\Internal\PtsHost\FlowDocumentPage.cs (1)
1042for (int index = 0; index < vc.Count; index++)
src\Framework\MS\Internal\PtsHost\PageVisual.cs (4)
76Debug.Assert(vc.Count <= 1); 77return (vc.Count == 0) ? null : vc[0]; 82Debug.Assert(vc.Count <= 1); 83if (vc.Count == 0)
src\Framework\MS\Internal\PtsHost\PtsHelper.cs (8)
69for(int index = 0; index < visualChildren.Count; index++) 93while(visualIndex < visualChildren.Count && visualChildren[visualIndex] != paraVisual) 98if(visualIndex == visualChildren.Count) 107if(visualChildren.Count > floatingElementList.Count) 109visualChildren.RemoveRange(floatingElementList.Count, visualChildren.Count - floatingElementList.Count); 314Invariant.Assert(index < visualCollection.Count); 324if (arrayParaDesc.Length < visualCollection.Count) 326visualCollection.RemoveRange(arrayParaDesc.Length, visualCollection.Count - arrayParaDesc.Length);
src\Framework\MS\Internal\PtsHost\PtsPage.cs (5)
1121if(_visual.Children.Count != 2) 1152else if (visualChildren.Count == 1 && visualChildren[0] is SectionVisual) 1157Debug.Assert(visualChildren.Count == 1 && visualChildren[0] is ContainerVisual); 1185if (visualChildren.Count == 0) 1273ErrorHandler.Assert(visualChildren.Count == arrayColumnDesc.Length, ErrorHandler.ColumnVisualCountMismatch);
src\Framework\MS\Internal\PtsHost\SubpageParaClient.cs (6)
347if(_visual.Children.Count != 2) 378else if (visualChildren.Count == 1 && visualChildren[0] is SectionVisual) 383Debug.Assert(visualChildren.Count == 1 && visualChildren[0] is ContainerVisual); 409if (visualChildren.Count == 0) 418Debug.Assert(visualChildren.Count == 1 && visualChildren[0] is SectionVisual); 434ErrorHandler.Assert(visualChildren.Count == arrayColumnDesc.Length, ErrorHandler.ColumnVisualCountMismatch);
src\Framework\MS\Internal\PtsHost\TableParaClient.cs (8)
331if (rowVisualsCollection.Count > arrayTableRowDesc.Length) 335rowVisualsCollection.Count - arrayTableRowDesc.Length); 1587int count = rowVisualsCollection.Count; 1614int count = cellVisualsCollection.Count; 1710if (cellVisualsCollection.Count > sourceIndex) 1714cellVisualsCollection.Count - sourceIndex); 1844if (cellVisualsCollection.Count > sourceIndex) 1848cellVisualsCollection.Count - sourceIndex);
src\Framework\MS\Internal\PtsHost\TextParaClient.cs (22)
87if (visualChildren.Count != 0 && !(visualChildren[0] is LineVisual)) 97if(_lineIndexFirstVisual == -1 && lineContainerVisual.Children.Count > 0) 114if(lineContainerVisual.Children.Count == 0) 1597int countVisualsShiftBeforeChange = Math.Min(Math.Max(lineIndexToBeginRemoval - _lineIndexFirstVisual, 0), lineVisuals.Count); 1614int actualLinesToRemove = Math.Min(Math.Max(lineIndexToBeginRemoval - _lineIndexFirstVisual + cLinesToRemove, 0), lineVisuals.Count); 1621if (lineVisuals.Count == 0) 1632else if (lineIndexToBeginRemoval < _lineIndexFirstVisual + lineVisuals.Count) 1642int actualLinesToRemove = Math.Min(cLinesToRemove, lineVisuals.Count - (lineIndexToBeginRemoval - _lineIndexFirstVisual)); 1655Debug.Assert(insertionIndex >= 0 && insertionIndex <= lineVisuals.Count); 1674for (int index = shiftIndex; index < lineVisuals.Count; index++) 1689if (lineVisuals.Count == 0) 2051lineCount = _visual.Children.Count; 3643else if (ContainedInRectOnV(ref viewport) && _lineIndexFirstVisual == 0 && visualChildren.Count == textDetails.cLines) 3701if (_lineIndexFirstVisual != -1 && ((lineIndexFirstVisible > _lineIndexFirstVisual + visualChildren.Count) || 3721else if (lineIndexFirstVisible != _lineIndexFirstVisual || (lineIndexFirstInvisible - lineIndexFirstVisible) != visualChildren.Count) 3759if (lineIndexFirstInvisible - lineIndexFirstVisible < visualChildren.Count) 3761int visualsToRemove = visualChildren.Count - (lineIndexFirstInvisible - lineIndexFirstVisible); 3763visualChildren.RemoveRange(visualChildren.Count - visualsToRemove, visualsToRemove); 3765else if ((lineIndexFirstInvisible - lineIndexFirstVisible) > visualChildren.Count) 3771for (int index = _lineIndexFirstVisual + visualChildren.Count; index < lineIndexFirstInvisible; index++) 3781Debug.Assert(visualChildren.Count == (lineIndexFirstInvisible - lineIndexFirstVisible)); 3788if (visualChildren.Count == 0)
src\Framework\MS\Internal\PtsHost\UIElementParaClient.cs (1)
122if (_visual.Children.Count != 1 || _visual.Children[0] != uiElementIsland)
src\Framework\System\Windows\Controls\TextBlock.cs (1)
1226get { return _complexContent == null ? 0 : _complexContent.VisualChildren.Count; }
src\Framework\System\Windows\Controls\UIElementCollection.cs (3)
60get { return _visualChildren.Count; } 257int cnt = vc.Count; 349int cnt = vc.Count;
src\Framework\System\Windows\Controls\ViewBox.cs (2)
180if (vc.Count != 0) return vc[0] as UIElement; 186if (vc.Count != 0) vc.Clear();
src\Framework\System\Windows\Documents\AdornerLayer.cs (1)
385return _children.Count;