5 instantiations of ListItem
PresentationFramework (5)
System\Windows\Documents\List.cs (2)
259listItem = new ListItem(); 267listItem = new ListItem();
System\Windows\Documents\TextRangeEditTables.cs (1)
851ListItem listItem = new ListItem();
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
6476bamlType.DefaultConstructor = delegate() { return new System.Windows.Documents.ListItem(); };
System\Windows\Markup\KnownTypes.cs (1)
1390case KnownElements.ListItem: o = new System.Windows.Documents.ListItem(); break;
125 references to ListItem
PresentationFramework (125)
MS\Internal\PtsHost\ContainerParagraph.cs (4)
503Invariant.Assert(Element is Block || Element is ListItem); 663Invariant.Assert(Element is Block || Element is ListItem); 793Invariant.Assert(Element is Block || Element is ListItem); 1073else if (element is Block || element is ListItem)
MS\Internal\PtsHost\ListParaClient.cs (1)
88indexFirstParaInSubtrack = list.GetListItemIndex(listItemParaClient.Paragraph.Element as ListItem);
MS\Internal\PtsHost\ListParagraph.cs (1)
81if (element is ListItem)
MS\Internal\PtsHost\MbpInfo.cs (2)
28if (o is Block || o is AnchoredBlock || o is TableCell || o is ListItem) 116if (parent is ListItem || parent is TableCell || parent is AnchoredBlock)
System\Windows\Documents\FixedElement.cs (1)
406return typeof(ListItem);
System\Windows\Documents\List.cs (5)
56public List(ListItem listItem) 179internal int GetListItemIndex(ListItem item) 197if (element is ListItem) 246ListItem listItem; 250listItem = block.ElementStart.GetAdjacentElement(LogicalDirection.Backward) as ListItem;
System\Windows\Documents\ListItem.cs (12)
113public ListItem NextListItem 117return this.NextElement as ListItem; 125public ListItem PreviousListItem 129return this.PreviousElement as ListItem; 138typeof(ListItem), 157typeof(ListItem), 176typeof(ListItem), 195typeof(ListItem), 213Block.TextAlignmentProperty.AddOwner(typeof(ListItem)); 228Block.FlowDirectionProperty.AddOwner(typeof(ListItem)); 243Block.LineHeightProperty.AddOwner(typeof(ListItem)); 259Block.LineStackingStrategyProperty.AddOwner(typeof(ListItem));
System\Windows\Documents\ListItemCollection.cs (3)
14public class ListItemCollection : TextElementCollection<ListItem> 45public ListItem FirstListItem 56public ListItem LastListItem
System\windows\Documents\TextEditorLists.cs (14)
42ListItem parentListItem = TextPointerBase.GetListItem(thisSelection.Start); 43ListItem immediateListItem = TextPointerBase.GetImmediateListItem(thisSelection.Start); 126ListItem parentListItem = TextPointerBase.GetListItem(thisSelection.Start); 127ListItem immediateListItem = TextPointerBase.GetImmediateListItem(thisSelection.Start); 161private static void ToggleBullets(TextSelection thisSelection, ListItem parentListItem, ListItem immediateListItem, List list) 165if (list.Parent is ListItem) 190private static void ToggleNumbering(TextSelection thisSelection, ListItem parentListItem, ListItem immediateListItem, List list) 194if (list.Parent is ListItem) 219private static void IncreaseIndentation(TextSelection thisSelection, ListItem parentListItem, ListItem immediateListItem) 274private static void DecreaseIndentation(TextSelection thisSelection, ListItem parentListItem, ListItem immediateListItem)
System\windows\Documents\TextEditorTyping.cs (3)
809if (typeof(ListItem).IsAssignableFrom(position.ParentType) && 825typeof(ListItem).IsAssignableFrom(position.ParentType)) 872return typeof(ListItem).IsAssignableFrom(navigator.ParentType);
System\Windows\Documents\TextPointer.cs (3)
1733internal ListItem GetListAncestor() 1737while (ancestor != null && !(ancestor is ListItem)) 1742return ancestor as ListItem;
System\Windows\Documents\TextPointerBase.cs (12)
234typeof(ListItem).IsAssignableFrom(parentType) || 752internal static ListItem GetListItem(TextPointer pointer) 754if (pointer.Parent is ListItem) 756return (ListItem)pointer.Parent; 761return paragraphOrBlockUIContainer == null ? null : (paragraphOrBlockUIContainer.Parent as ListItem); 768internal static ListItem GetImmediateListItem(TextPointer position) 770if (position.Parent is ListItem) 772return (ListItem)position.Parent; 776if (paragraphOrBlockUIContainer != null && paragraphOrBlockUIContainer.Parent is ListItem && 779return (ListItem)paragraphOrBlockUIContainer.Parent; 789ListItem listItem = position.Parent as ListItem;
System\Windows\Documents\TextRangeBase.cs (3)
723else if (typeof(ListItem).IsAssignableFrom(elementType)) 827ListItem listItem = (ListItem)navigator.GetAdjacentElement(LogicalDirection.Forward);
System\Windows\Documents\TextRangeEdit.cs (2)
649Invariant.Assert(breakPosition.Parent is ListItem, "breakPosition must be in ListItem scope"); 772ListItem listItem = start.GetListAncestor();
System\Windows\Documents\TextRangeEditLists.cs (38)
51ListItem secondListItem = secondParagraphOrBlockUIContainer.PreviousBlock == null ? secondParagraphOrBlockUIContainer.Parent as ListItem : null; 144ListItem followingListItem = positionAfterSecondParagraph.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart 145? positionAfterSecondParagraph.GetAdjacentElement(LogicalDirection.Forward) as ListItem : null; 148ListItem precedingListItem = positionAfterSecondParagraph.GetAdjacentElement(LogicalDirection.Backward) as ListItem; 282firstBlock.Parent is ListItem && firstBlock.PreviousBlock == null) 299ListItem parentListItem = firstBlock.Parent as ListItem; 310Invariant.Assert(block.Parent is ListItem); 337ListItem firstListItem = TextPointerBase.GetListItem(range.Start); 338ListItem lastListItem = TextPointerBase.GetListItem((TextPointer)TextRangeEdit.GetAdjustedRangeEnd(range.Start, range.End)); 348ListItem leadingListItem = firstListItem.PreviousListItem; 369ListItem listItem = firstListItem; 372ListItem nextListItem = listItem.ElementEnd.GetAdjacentElement(LogicalDirection.Forward) as ListItem; 395ListItem firstListItem = TextPointerBase.GetImmediateListItem(range.Start); 396ListItem lastListItem = TextPointerBase.GetImmediateListItem((TextPointer)TextRangeEdit.GetAdjustedRangeEnd(range.Start, range.End)); 407ListItem leadingListItem = firstListItem.PreviousListItem; 449ListItem firstListItem = TextPointerBase.GetListItem(range.Start); 450ListItem lastListItem = TextPointerBase.GetListItem((TextPointer)TextRangeEdit.GetAdjustedRangeEnd(range.Start, range.End)); 472lastListItem = parent as ListItem; 498ListItem outerListItem = unindentedList.Parent as ListItem; 555ListItem listItem = firstListItem; 558ListItem nextListItem = listItem.ElementEnd.GetAdjacentElement(LogicalDirection.Forward) as ListItem; 584ListItem startListItem = TextPointerBase.GetListItem(range.Start); 588ListItem endListItem = TextPointerBase.GetListItem(end); 673ListItem startListItem = start.GetListAncestor(); 682startListItem.List.Parent is ListItem) 693ListItem endListItem = end.GetListAncestor(); 710endListItem.List.Parent is ListItem) 731Invariant.Assert(!(startListItem.List.Parent is ListItem), "startListItem's list must not be nested!"); 740if (endListItem.List.Parent is ListItem) 742while (endListItem.List != null && endListItem.List.Parent is ListItem) 744endListItem = (ListItem)endListItem.List.Parent; 749Invariant.Assert(!(endListItem.List.Parent is ListItem), "endListItem's list must not be nested!");
System\Windows\Documents\TextRangeEditTables.cs (1)
851ListItem listItem = new ListItem();
System\Windows\Documents\TextRangeSerialization.cs (1)
1375ListItem listItem = list.ListItems.FirstListItem;
System\Windows\Documents\TextSchema.cs (12)
205else if (typeof(ListItem).IsAssignableFrom(newType)) 207return typeof(ListItem).IsAssignableFrom(siblingType); 307typeof(ListItem).IsAssignableFrom(elementType) || 427else if (typeof(ListItem).IsAssignableFrom(type)) 429return typeof(ListItem); 541else if (typeof(ListItem).IsAssignableFrom(type)) 846return typeof(ListItem).IsAssignableFrom(childType); 865typeof(ListItem).IsAssignableFrom(parentType) || 1025ListItem.MarginProperty, 1026ListItem.PaddingProperty, 1027ListItem.BorderThicknessProperty, 1028ListItem.BorderBrushProperty,
System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
470case 376: t = () => typeof(ListItem); break;
System\Windows\Markup\Baml2006\WpfGeneratedKnownProperties.cs (3)
5070Type type = typeof(System.Windows.Documents.ListItem); 5072this.GetXamlType(typeof(System.Windows.Documents.ListItem)), // DeclaringType 5078bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Documents.ListItem)target).Blocks; };
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
6474typeof(System.Windows.Documents.ListItem),
System\Windows\Markup\KnownTypes.cs (2)
2506case KnownElements.ListItem: return (o as System.Windows.Documents.ListItem).Blocks; 5930case KnownElements.ListItem: t = typeof(System.Windows.Documents.ListItem); break;