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