Implemented interface member:
92 references to Count
PresentationCore (3)
MS\Internal\Ink\Renderer.cs (2)
544for (int j = parent.Children.Count - 1; j >= 0; j--) 619hcVisual.Children.Count == 0 &&
System\Windows\Media\ContainerVisual.cs (1)
251return _children.Count;
PresentationFramework (89)
MS\Internal\Documents\DocumentGrid.cs (15)
859int count = _childrenCollection.Count; 1007if (_childrenCollection == null || index < 0 || index >= _childrenCollection.Count) 1029return _childrenCollection.Count; 1052int count = _childrenCollection.Count; 1168int count = _childrenCollection.Count; 1204if (visualChild > _childrenCollection.Count - 1) 1394if (_childrenCollection.Count > _firstPageVisualIndex) 1399DocumentGridPage lastDp = _childrenCollection[_childrenCollection.Count - 1] as DocumentGridPage; 1436if (j < firstPage || j > lastPage || _childrenCollection.Count <= _firstPageVisualIndex) 1510if (vcIndex < _childrenCollection.Count && _childrenCollection[vcIndex] == current) 1528if (vcIndex >= _childrenCollection.Count || _childrenCollection[vcIndex] != current) 1654for (int i = _childrenCollection.Count - 1; i >= _firstPageVisualIndex; i--) 2280int count = _childrenCollection.Count; 2765for (int i = _firstPageVisualIndex; i < _childrenCollection.Count; i++) 2787for (int i = _firstPageVisualIndex; i < _childrenCollection.Count; i++)
MS\Internal\PtsHost\FigureParaClient.cs (6)
372if(_visual.Children.Count != 2) 402else if (visualChildren.Count == 1 && !(visualChildren[0] is ContainerVisual)) 407Debug.Assert(visualChildren.Count == 1 && visualChildren[0] is ContainerVisual); 433if (visualChildren.Count == 0) 442Debug.Assert(visualChildren.Count == 1 && visualChildren[0] is SectionVisual); 458ErrorHandler.Assert(visualChildren.Count == arrayColumnDesc.Length, ErrorHandler.ColumnVisualCountMismatch);
MS\Internal\PtsHost\FloaterParaClient.cs (6)
378if(_visual.Children.Count != 2) 408else if (visualChildren.Count == 1 && !(visualChildren[0] is ContainerVisual)) 413Debug.Assert(visualChildren.Count == 1 && visualChildren[0] is ContainerVisual); 439if (visualChildren.Count == 0) 448Debug.Assert(visualChildren.Count == 1 && visualChildren[0] is SectionVisual); 464ErrorHandler.Assert(visualChildren.Count == arrayColumnDesc.Length, ErrorHandler.ColumnVisualCountMismatch);
MS\Internal\PtsHost\FlowDocumentPage.cs (1)
1020for (int index = 0; index < vc.Count; index++)
MS\Internal\PtsHost\PageVisual.cs (4)
72Debug.Assert(vc.Count <= 1); 73return (vc.Count == 0) ? null : vc[0]; 78Debug.Assert(vc.Count <= 1); 79if (vc.Count == 0)
MS\Internal\PtsHost\PtsHelper.cs (8)
65for(int index = 0; index < visualChildren.Count; index++) 89while(visualIndex < visualChildren.Count && visualChildren[visualIndex] != paraVisual) 94if(visualIndex == visualChildren.Count) 103if(visualChildren.Count > floatingElementList.Count) 105visualChildren.RemoveRange(floatingElementList.Count, visualChildren.Count - floatingElementList.Count); 292Invariant.Assert(index < visualCollection.Count); 302if (arrayParaDesc.Length < visualCollection.Count) 304visualCollection.RemoveRange(arrayParaDesc.Length, visualCollection.Count - arrayParaDesc.Length);
MS\Internal\PtsHost\PtsPage.cs (5)
1018if(_visual.Children.Count != 2) 1049else if (visualChildren.Count == 1 && visualChildren[0] is SectionVisual) 1054Debug.Assert(visualChildren.Count == 1 && visualChildren[0] is ContainerVisual); 1082if (visualChildren.Count == 0) 1164ErrorHandler.Assert(visualChildren.Count == arrayColumnDesc.Length, ErrorHandler.ColumnVisualCountMismatch);
MS\Internal\PtsHost\SubpageParaClient.cs (6)
304if(_visual.Children.Count != 2) 335else if (visualChildren.Count == 1 && visualChildren[0] is SectionVisual) 340Debug.Assert(visualChildren.Count == 1 && visualChildren[0] is ContainerVisual); 366if (visualChildren.Count == 0) 375Debug.Assert(visualChildren.Count == 1 && visualChildren[0] is SectionVisual); 391ErrorHandler.Assert(visualChildren.Count == arrayColumnDesc.Length, ErrorHandler.ColumnVisualCountMismatch);
MS\Internal\PtsHost\TableParaClient.cs (8)
311if (rowVisualsCollection.Count > arrayTableRowDesc.Length) 315rowVisualsCollection.Count - arrayTableRowDesc.Length); 1485int count = rowVisualsCollection.Count; 1512int count = cellVisualsCollection.Count; 1603if (cellVisualsCollection.Count > sourceIndex) 1607cellVisualsCollection.Count - sourceIndex); 1732if (cellVisualsCollection.Count > sourceIndex) 1736cellVisualsCollection.Count - sourceIndex);
MS\Internal\PtsHost\TextParaClient.cs (22)
75if (visualChildren.Count != 0 && !(visualChildren[0] is LineVisual)) 85if(_lineIndexFirstVisual == -1 && lineContainerVisual.Children.Count > 0) 102if(lineContainerVisual.Children.Count == 0) 1414int countVisualsShiftBeforeChange = Math.Min(Math.Max(lineIndexToBeginRemoval - _lineIndexFirstVisual, 0), lineVisuals.Count); 1431int actualLinesToRemove = Math.Min(Math.Max(lineIndexToBeginRemoval - _lineIndexFirstVisual + cLinesToRemove, 0), lineVisuals.Count); 1438if (lineVisuals.Count == 0) 1449else if (lineIndexToBeginRemoval < _lineIndexFirstVisual + lineVisuals.Count) 1459int actualLinesToRemove = Math.Min(cLinesToRemove, lineVisuals.Count - (lineIndexToBeginRemoval - _lineIndexFirstVisual)); 1472Debug.Assert(insertionIndex >= 0 && insertionIndex <= lineVisuals.Count); 1491for (int index = shiftIndex; index < lineVisuals.Count; index++) 1506if (lineVisuals.Count == 0) 1842lineCount = _visual.Children.Count; 3382else if (ContainedInRectOnV(ref viewport) && _lineIndexFirstVisual == 0 && visualChildren.Count == textDetails.cLines) 3440if (_lineIndexFirstVisual != -1 && ((lineIndexFirstVisible > _lineIndexFirstVisual + visualChildren.Count) || 3460else if (lineIndexFirstVisible != _lineIndexFirstVisual || (lineIndexFirstInvisible - lineIndexFirstVisible) != visualChildren.Count) 3498if (lineIndexFirstInvisible - lineIndexFirstVisible < visualChildren.Count) 3500int visualsToRemove = visualChildren.Count - (lineIndexFirstInvisible - lineIndexFirstVisible); 3502visualChildren.RemoveRange(visualChildren.Count - visualsToRemove, visualsToRemove); 3504else if ((lineIndexFirstInvisible - lineIndexFirstVisible) > visualChildren.Count) 3510for (int index = _lineIndexFirstVisual + visualChildren.Count; index < lineIndexFirstInvisible; index++) 3520Debug.Assert(visualChildren.Count == (lineIndexFirstInvisible - lineIndexFirstVisible)); 3527if (visualChildren.Count == 0)
MS\Internal\PtsHost\UIElementParaClient.cs (1)
115if (_visual.Children.Count != 1 || _visual.Children[0] != uiElementIsland)
System\Windows\Controls\TextBlock.cs (1)
1148get { return _complexContent == null ? 0 : _complexContent.VisualChildren.Count; }
System\Windows\Controls\UIElementCollection.cs (3)
55get { return _visualChildren.Count; } 252int cnt = vc.Count; 344int cnt = vc.Count;
System\Windows\Controls\ViewBox.cs (2)
172if (vc.Count != 0) return vc[0] as UIElement; 178if (vc.Count != 0) vc.Clear();
System\Windows\Documents\AdornerLayer.cs (1)
372return _children.Count;