28 references to List
PresentationFramework (28)
System\Windows\Documents\TextRangeEdit.cs (2)
773
if (listItem != null && listItem.
List
!= null)
775
start = listItem.
List
.ElementStart;
System\Windows\Documents\TextRangeEditLists.cs (26)
365
listToRemove = firstListItem.
List
;
677
startListItem.
List
!= null && // Check for unparented list items
678
!TextSchema.ValuesAreEqual(/*newValue*/newFlowDirectionValue, /*currentValue*/startListItem.
List
.GetValue(Paragraph.FlowDirectionProperty)))
681
startListItem.
List
!= null &&
682
startListItem.
List
.Parent is ListItem)
685
if (!UnindentListItems(new TextRange(start, GetPositionAfterList(startListItem.
List
))))
697
endListItem.
List
!= null &&
698
!TextSchema.ValuesAreEqual(/*newValue*/newFlowDirectionValue, /*currentValue*/endListItem.
List
.GetValue(Paragraph.FlowDirectionProperty)))
700
if (startListItem != null && startListItem.
List
!= null &&
701
endListItem.
List
.ElementEnd.CompareTo(startListItem.
List
.ElementEnd) < 0)
709
endListItem.
List
!= null &&
710
endListItem.
List
.Parent is ListItem)
713
if (!UnindentListItems(new TextRange(endListItem.
List
.ContentStart, GetPositionAfterList(endListItem.
List
))))
728
startListItem.
List
!= null && // Check for unparented list items
729
(!TextSchema.ValuesAreEqual(/*newValue*/newFlowDirectionValue, /*currentValue*/startListItem.
List
.GetValue(Paragraph.FlowDirectionProperty))))
731
Invariant.Assert(!(startListItem.
List
.Parent is ListItem), "startListItem's list must not be nested!");
736
endListItem.
List
!= null && // Check for unparented list items
737
(!TextSchema.ValuesAreEqual(/*newValue*/newFlowDirectionValue, /*currentValue*/endListItem.
List
.GetValue(Paragraph.FlowDirectionProperty))))
740
if (endListItem.
List
.Parent is ListItem)
742
while (endListItem.
List
!= null && endListItem.
List
.Parent is ListItem)
744
endListItem = (ListItem)endListItem.
List
.Parent;
747
if (endListItem.
List
!= null && endListItem.NextListItem != null)
749
Invariant.Assert(!(endListItem.
List
.Parent is ListItem), "endListItem's list must not be nested!");