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