28 references to List
PresentationFramework (28)
System\Windows\Documents\TextRangeEdit.cs (2)
775
if (listItem != null && listItem.
List
!= null)
777
start = listItem.
List
.ElementStart;
System\Windows\Documents\TextRangeEditLists.cs (26)
367
listToRemove = firstListItem.
List
;
679
startListItem.
List
!= null && // Check for unparented list items
680
!TextSchema.ValuesAreEqual(/*newValue*/newFlowDirectionValue, /*currentValue*/startListItem.
List
.GetValue(Paragraph.FlowDirectionProperty)))
683
startListItem.
List
!= null &&
684
startListItem.
List
.Parent is ListItem)
687
if (!UnindentListItems(new TextRange(start, GetPositionAfterList(startListItem.
List
))))
699
endListItem.
List
!= null &&
700
!TextSchema.ValuesAreEqual(/*newValue*/newFlowDirectionValue, /*currentValue*/endListItem.
List
.GetValue(Paragraph.FlowDirectionProperty)))
702
if (startListItem != null && startListItem.
List
!= null &&
703
endListItem.
List
.ElementEnd.CompareTo(startListItem.
List
.ElementEnd) < 0)
711
endListItem.
List
!= null &&
712
endListItem.
List
.Parent is ListItem)
715
if (!UnindentListItems(new TextRange(endListItem.
List
.ContentStart, GetPositionAfterList(endListItem.
List
))))
730
startListItem.
List
!= null && // Check for unparented list items
731
(!TextSchema.ValuesAreEqual(/*newValue*/newFlowDirectionValue, /*currentValue*/startListItem.
List
.GetValue(Paragraph.FlowDirectionProperty))))
733
Invariant.Assert(!(startListItem.
List
.Parent is ListItem), "startListItem's list must not be nested!");
738
endListItem.
List
!= null && // Check for unparented list items
739
(!TextSchema.ValuesAreEqual(/*newValue*/newFlowDirectionValue, /*currentValue*/endListItem.
List
.GetValue(Paragraph.FlowDirectionProperty))))
742
if (endListItem.
List
.Parent is ListItem)
744
while (endListItem.
List
!= null && endListItem.
List
.Parent is ListItem)
746
endListItem = (ListItem)endListItem.
List
.Parent;
749
if (endListItem.
List
!= null && endListItem.NextListItem != null)
751
Invariant.Assert(!(endListItem.
List
.Parent is ListItem), "endListItem's list must not be nested!");