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