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