28 references to List
PresentationFramework (28)
src\Framework\System\Windows\Documents\TextRangeEdit.cs (2)
777
if (listItem != null && listItem.
List
!= null)
779
start = listItem.
List
.ElementStart;
src\Framework\System\Windows\Documents\TextRangeEditLists.cs (26)
369
listToRemove = firstListItem.
List
;
681
startListItem.
List
!= null && // Check for unparented list items
682
!TextSchema.ValuesAreEqual(/*newValue*/newFlowDirectionValue, /*currentValue*/startListItem.
List
.GetValue(Paragraph.FlowDirectionProperty)))
685
startListItem.
List
!= null &&
686
startListItem.
List
.Parent is ListItem)
689
if (!UnindentListItems(new TextRange(start, GetPositionAfterList(startListItem.
List
))))
701
endListItem.
List
!= null &&
702
!TextSchema.ValuesAreEqual(/*newValue*/newFlowDirectionValue, /*currentValue*/endListItem.
List
.GetValue(Paragraph.FlowDirectionProperty)))
704
if (startListItem != null && startListItem.
List
!= null &&
705
endListItem.
List
.ElementEnd.CompareTo(startListItem.
List
.ElementEnd) < 0)
713
endListItem.
List
!= null &&
714
endListItem.
List
.Parent is ListItem)
717
if (!UnindentListItems(new TextRange(endListItem.
List
.ContentStart, GetPositionAfterList(endListItem.
List
))))
732
startListItem.
List
!= null && // Check for unparented list items
733
(!TextSchema.ValuesAreEqual(/*newValue*/newFlowDirectionValue, /*currentValue*/startListItem.
List
.GetValue(Paragraph.FlowDirectionProperty))))
735
Invariant.Assert(!(startListItem.
List
.Parent is ListItem), "startListItem's list must not be nested!");
740
endListItem.
List
!= null && // Check for unparented list items
741
(!TextSchema.ValuesAreEqual(/*newValue*/newFlowDirectionValue, /*currentValue*/endListItem.
List
.GetValue(Paragraph.FlowDirectionProperty))))
744
if (endListItem.
List
.Parent is ListItem)
746
while (endListItem.
List
!= null && endListItem.
List
.Parent is ListItem)
748
endListItem = (ListItem)endListItem.
List
.Parent;
751
if (endListItem.
List
!= null && endListItem.NextListItem != null)
753
Invariant.Assert(!(endListItem.
List
.Parent is ListItem), "endListItem's list must not be nested!");