Implemented interface member:
92 references to Count
PresentationCore (3)
MS\Internal\Ink\Renderer.cs (2)
536for (int j = parent.Children.Count - 1; j >= 0; j--) 611hcVisual.Children.Count == 0 &&
System\Windows\Media\ContainerVisual.cs (1)
242return _children.Count;
PresentationFramework (89)
MS\Internal\Documents\DocumentGrid.cs (15)
852int count = _childrenCollection.Count; 1000if (_childrenCollection == null || index < 0 || index >= _childrenCollection.Count) 1022return _childrenCollection.Count; 1045int count = _childrenCollection.Count; 1161int count = _childrenCollection.Count; 1197if (visualChild > _childrenCollection.Count - 1) 1387if (_childrenCollection.Count > _firstPageVisualIndex) 1392DocumentGridPage lastDp = _childrenCollection[_childrenCollection.Count - 1] as DocumentGridPage; 1429if (j < firstPage || j > lastPage || _childrenCollection.Count <= _firstPageVisualIndex) 1503if (vcIndex < _childrenCollection.Count && _childrenCollection[vcIndex] == current) 1521if (vcIndex >= _childrenCollection.Count || _childrenCollection[vcIndex] != current) 1647for (int i = _childrenCollection.Count - 1; i >= _firstPageVisualIndex; i--) 2273int count = _childrenCollection.Count; 2758for (int i = _firstPageVisualIndex; i < _childrenCollection.Count; i++) 2780for (int i = _firstPageVisualIndex; i < _childrenCollection.Count; i++)
MS\Internal\PtsHost\FigureParaClient.cs (6)
366if(_visual.Children.Count != 2) 396else if (visualChildren.Count == 1 && !(visualChildren[0] is ContainerVisual)) 401Debug.Assert(visualChildren.Count == 1 && visualChildren[0] is ContainerVisual); 427if (visualChildren.Count == 0) 436Debug.Assert(visualChildren.Count == 1 && visualChildren[0] is SectionVisual); 452ErrorHandler.Assert(visualChildren.Count == arrayColumnDesc.Length, ErrorHandler.ColumnVisualCountMismatch);
MS\Internal\PtsHost\FloaterParaClient.cs (6)
373if(_visual.Children.Count != 2) 403else if (visualChildren.Count == 1 && !(visualChildren[0] is ContainerVisual)) 408Debug.Assert(visualChildren.Count == 1 && visualChildren[0] is ContainerVisual); 434if (visualChildren.Count == 0) 443Debug.Assert(visualChildren.Count == 1 && visualChildren[0] is SectionVisual); 459ErrorHandler.Assert(visualChildren.Count == arrayColumnDesc.Length, ErrorHandler.ColumnVisualCountMismatch);
MS\Internal\PtsHost\FlowDocumentPage.cs (1)
1012for (int index = 0; index < vc.Count; index++)
MS\Internal\PtsHost\PageVisual.cs (4)
67Debug.Assert(vc.Count <= 1); 68return (vc.Count == 0) ? null : vc[0]; 73Debug.Assert(vc.Count <= 1); 74if (vc.Count == 0)
MS\Internal\PtsHost\PtsHelper.cs (8)
60for(int index = 0; index < visualChildren.Count; index++) 84while(visualIndex < visualChildren.Count && visualChildren[visualIndex] != paraVisual) 89if(visualIndex == visualChildren.Count) 98if(visualChildren.Count > floatingElementList.Count) 100visualChildren.RemoveRange(floatingElementList.Count, visualChildren.Count - floatingElementList.Count); 287Invariant.Assert(index < visualCollection.Count); 297if (arrayParaDesc.Length < visualCollection.Count) 299visualCollection.RemoveRange(arrayParaDesc.Length, visualCollection.Count - arrayParaDesc.Length);
MS\Internal\PtsHost\PtsPage.cs (5)
1012if(_visual.Children.Count != 2) 1043else if (visualChildren.Count == 1 && visualChildren[0] is SectionVisual) 1048Debug.Assert(visualChildren.Count == 1 && visualChildren[0] is ContainerVisual); 1076if (visualChildren.Count == 0) 1158ErrorHandler.Assert(visualChildren.Count == arrayColumnDesc.Length, ErrorHandler.ColumnVisualCountMismatch);
MS\Internal\PtsHost\SubpageParaClient.cs (6)
299if(_visual.Children.Count != 2) 330else if (visualChildren.Count == 1 && visualChildren[0] is SectionVisual) 335Debug.Assert(visualChildren.Count == 1 && visualChildren[0] is ContainerVisual); 361if (visualChildren.Count == 0) 370Debug.Assert(visualChildren.Count == 1 && visualChildren[0] is SectionVisual); 386ErrorHandler.Assert(visualChildren.Count == arrayColumnDesc.Length, ErrorHandler.ColumnVisualCountMismatch);
MS\Internal\PtsHost\TableParaClient.cs (8)
305if (rowVisualsCollection.Count > arrayTableRowDesc.Length) 309rowVisualsCollection.Count - arrayTableRowDesc.Length); 1479int count = rowVisualsCollection.Count; 1506int count = cellVisualsCollection.Count; 1597if (cellVisualsCollection.Count > sourceIndex) 1601cellVisualsCollection.Count - sourceIndex); 1726if (cellVisualsCollection.Count > sourceIndex) 1730cellVisualsCollection.Count - sourceIndex);
MS\Internal\PtsHost\TextParaClient.cs (22)
69if (visualChildren.Count != 0 && !(visualChildren[0] is LineVisual)) 79if(_lineIndexFirstVisual == -1 && lineContainerVisual.Children.Count > 0) 96if(lineContainerVisual.Children.Count == 0) 1408int countVisualsShiftBeforeChange = Math.Min(Math.Max(lineIndexToBeginRemoval - _lineIndexFirstVisual, 0), lineVisuals.Count); 1425int actualLinesToRemove = Math.Min(Math.Max(lineIndexToBeginRemoval - _lineIndexFirstVisual + cLinesToRemove, 0), lineVisuals.Count); 1432if (lineVisuals.Count == 0) 1443else if (lineIndexToBeginRemoval < _lineIndexFirstVisual + lineVisuals.Count) 1453int actualLinesToRemove = Math.Min(cLinesToRemove, lineVisuals.Count - (lineIndexToBeginRemoval - _lineIndexFirstVisual)); 1466Debug.Assert(insertionIndex >= 0 && insertionIndex <= lineVisuals.Count); 1485for (int index = shiftIndex; index < lineVisuals.Count; index++) 1500if (lineVisuals.Count == 0) 1836lineCount = _visual.Children.Count; 3376else if (ContainedInRectOnV(ref viewport) && _lineIndexFirstVisual == 0 && visualChildren.Count == textDetails.cLines) 3434if (_lineIndexFirstVisual != -1 && ((lineIndexFirstVisible > _lineIndexFirstVisual + visualChildren.Count) || 3454else if (lineIndexFirstVisible != _lineIndexFirstVisual || (lineIndexFirstInvisible - lineIndexFirstVisible) != visualChildren.Count) 3492if (lineIndexFirstInvisible - lineIndexFirstVisible < visualChildren.Count) 3494int visualsToRemove = visualChildren.Count - (lineIndexFirstInvisible - lineIndexFirstVisible); 3496visualChildren.RemoveRange(visualChildren.Count - visualsToRemove, visualsToRemove); 3498else if ((lineIndexFirstInvisible - lineIndexFirstVisible) > visualChildren.Count) 3504for (int index = _lineIndexFirstVisual + visualChildren.Count; index < lineIndexFirstInvisible; index++) 3514Debug.Assert(visualChildren.Count == (lineIndexFirstInvisible - lineIndexFirstVisible)); 3521if (visualChildren.Count == 0)
MS\Internal\PtsHost\UIElementParaClient.cs (1)
111if (_visual.Children.Count != 1 || _visual.Children[0] != uiElementIsland)
System\Windows\Controls\TextBlock.cs (1)
1138get { return _complexContent == null ? 0 : _complexContent.VisualChildren.Count; }
System\Windows\Controls\UIElementCollection.cs (3)
51get { return _visualChildren.Count; } 248int cnt = vc.Count; 340int cnt = vc.Count;
System\Windows\Controls\ViewBox.cs (2)
166if (vc.Count != 0) return vc[0] as UIElement; 172if (vc.Count != 0) vc.Clear();
System\Windows\Documents\AdornerLayer.cs (1)
368return _children.Count;