5 instantiations of ListItem
PresentationFramework (5)
System\Windows\Documents\List.cs (2)
259listItem = new ListItem(); 267listItem = new ListItem();
System\Windows\Documents\TextRangeEditTables.cs (1)
853ListItem listItem = new ListItem();
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
6478bamlType.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)
508Invariant.Assert(Element is Block || Element is ListItem); 668Invariant.Assert(Element is Block || Element is ListItem); 798Invariant.Assert(Element is Block || Element is ListItem); 1078else if (element is Block || element is ListItem)
MS\Internal\PtsHost\ListParaClient.cs (1)
92indexFirstParaInSubtrack = list.GetListItemIndex(listItemParaClient.Paragraph.Element as ListItem);
MS\Internal\PtsHost\ListParagraph.cs (1)
84if (element is ListItem)
MS\Internal\PtsHost\MbpInfo.cs (2)
30if (o is Block || o is AnchoredBlock || o is TableCell || o is ListItem) 118if (parent is ListItem || parent is TableCell || parent is AnchoredBlock)
System\Windows\Documents\FixedElement.cs (1)
414return 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)
114public ListItem NextListItem 118return this.NextElement as ListItem; 126public ListItem PreviousListItem 130return this.PreviousElement as ListItem; 139typeof(ListItem), 158typeof(ListItem), 177typeof(ListItem), 196typeof(ListItem), 214Block.TextAlignmentProperty.AddOwner(typeof(ListItem)); 229Block.FlowDirectionProperty.AddOwner(typeof(ListItem)); 244Block.LineHeightProperty.AddOwner(typeof(ListItem)); 260Block.LineStackingStrategyProperty.AddOwner(typeof(ListItem));
System\Windows\Documents\ListItemCollection.cs (3)
16public class ListItemCollection : TextElementCollection<ListItem> 47public ListItem FirstListItem 58public ListItem LastListItem
System\windows\Documents\TextEditorLists.cs (14)
58ListItem parentListItem = TextPointerBase.GetListItem(thisSelection.Start); 59ListItem immediateListItem = TextPointerBase.GetImmediateListItem(thisSelection.Start); 142ListItem parentListItem = TextPointerBase.GetListItem(thisSelection.Start); 143ListItem immediateListItem = TextPointerBase.GetImmediateListItem(thisSelection.Start); 177private static void ToggleBullets(TextSelection thisSelection, ListItem parentListItem, ListItem immediateListItem, List list) 181if (list.Parent is ListItem) 206private static void ToggleNumbering(TextSelection thisSelection, ListItem parentListItem, ListItem immediateListItem, List list) 210if (list.Parent is ListItem) 235private static void IncreaseIndentation(TextSelection thisSelection, ListItem parentListItem, ListItem immediateListItem) 290private static void DecreaseIndentation(TextSelection thisSelection, ListItem parentListItem, ListItem immediateListItem)
System\windows\Documents\TextEditorTyping.cs (3)
818if (typeof(ListItem).IsAssignableFrom(position.ParentType) && 834typeof(ListItem).IsAssignableFrom(position.ParentType)) 881return typeof(ListItem).IsAssignableFrom(navigator.ParentType);
System\Windows\Documents\TextPointer.cs (3)
1738internal ListItem GetListAncestor() 1742while (ancestor != null && !(ancestor is ListItem)) 1747return ancestor as ListItem;
System\Windows\Documents\TextPointerBase.cs (12)
236typeof(ListItem).IsAssignableFrom(parentType) || 754internal static ListItem GetListItem(TextPointer pointer) 756if (pointer.Parent is ListItem) 758return (ListItem)pointer.Parent; 763return paragraphOrBlockUIContainer == null ? null : (paragraphOrBlockUIContainer.Parent as ListItem); 770internal static ListItem GetImmediateListItem(TextPointer position) 772if (position.Parent is ListItem) 774return (ListItem)position.Parent; 778if (paragraphOrBlockUIContainer != null && paragraphOrBlockUIContainer.Parent is ListItem && 781return (ListItem)paragraphOrBlockUIContainer.Parent; 791ListItem listItem = position.Parent as ListItem;
System\Windows\Documents\TextRangeBase.cs (3)
726else if (typeof(ListItem).IsAssignableFrom(elementType)) 830ListItem listItem = (ListItem)navigator.GetAdjacentElement(LogicalDirection.Forward);
System\Windows\Documents\TextRangeEdit.cs (2)
651Invariant.Assert(breakPosition.Parent is ListItem, "breakPosition must be in ListItem scope"); 774ListItem listItem = start.GetListAncestor();
System\Windows\Documents\TextRangeEditLists.cs (38)
53ListItem secondListItem = secondParagraphOrBlockUIContainer.PreviousBlock == null ? secondParagraphOrBlockUIContainer.Parent as ListItem : null; 146ListItem followingListItem = positionAfterSecondParagraph.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementStart 147? positionAfterSecondParagraph.GetAdjacentElement(LogicalDirection.Forward) as ListItem : null; 150ListItem precedingListItem = positionAfterSecondParagraph.GetAdjacentElement(LogicalDirection.Backward) as ListItem; 284firstBlock.Parent is ListItem && firstBlock.PreviousBlock == null) 301ListItem parentListItem = firstBlock.Parent as ListItem; 312Invariant.Assert(block.Parent is ListItem); 339ListItem firstListItem = TextPointerBase.GetListItem(range.Start); 340ListItem lastListItem = TextPointerBase.GetListItem((TextPointer)TextRangeEdit.GetAdjustedRangeEnd(range.Start, range.End)); 350ListItem leadingListItem = firstListItem.PreviousListItem; 371ListItem listItem = firstListItem; 374ListItem nextListItem = listItem.ElementEnd.GetAdjacentElement(LogicalDirection.Forward) as ListItem; 397ListItem firstListItem = TextPointerBase.GetImmediateListItem(range.Start); 398ListItem lastListItem = TextPointerBase.GetImmediateListItem((TextPointer)TextRangeEdit.GetAdjustedRangeEnd(range.Start, range.End)); 409ListItem leadingListItem = firstListItem.PreviousListItem; 451ListItem firstListItem = TextPointerBase.GetListItem(range.Start); 452ListItem lastListItem = TextPointerBase.GetListItem((TextPointer)TextRangeEdit.GetAdjustedRangeEnd(range.Start, range.End)); 474lastListItem = parent as ListItem; 500ListItem outerListItem = unindentedList.Parent as ListItem; 557ListItem listItem = firstListItem; 560ListItem nextListItem = listItem.ElementEnd.GetAdjacentElement(LogicalDirection.Forward) as ListItem; 586ListItem startListItem = TextPointerBase.GetListItem(range.Start); 590ListItem endListItem = TextPointerBase.GetListItem(end); 675ListItem startListItem = start.GetListAncestor(); 684startListItem.List.Parent is ListItem) 695ListItem endListItem = end.GetListAncestor(); 712endListItem.List.Parent is ListItem) 733Invariant.Assert(!(startListItem.List.Parent is ListItem), "startListItem's list must not be nested!"); 742if (endListItem.List.Parent is ListItem) 744while (endListItem.List != null && endListItem.List.Parent is ListItem) 746endListItem = (ListItem)endListItem.List.Parent; 751Invariant.Assert(!(endListItem.List.Parent is ListItem), "endListItem's list must not be nested!");
System\Windows\Documents\TextRangeEditTables.cs (1)
853ListItem listItem = new ListItem();
System\Windows\Documents\TextRangeSerialization.cs (1)
1381ListItem listItem = list.ListItems.FirstListItem;
System\Windows\Documents\TextSchema.cs (12)
206else if (typeof(ListItem).IsAssignableFrom(newType)) 208return typeof(ListItem).IsAssignableFrom(siblingType); 308typeof(ListItem).IsAssignableFrom(elementType) || 428else if (typeof(ListItem).IsAssignableFrom(type)) 430return typeof(ListItem); 542else if (typeof(ListItem).IsAssignableFrom(type)) 847return typeof(ListItem).IsAssignableFrom(childType); 866typeof(ListItem).IsAssignableFrom(parentType) || 1026ListItem.MarginProperty, 1027ListItem.PaddingProperty, 1028ListItem.BorderThicknessProperty, 1029ListItem.BorderBrushProperty,
System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
472case 376: t = () => typeof(ListItem); break;
System\Windows\Markup\Baml2006\WpfGeneratedKnownProperties.cs (3)
5072Type type = typeof(System.Windows.Documents.ListItem); 5074this.GetXamlType(typeof(System.Windows.Documents.ListItem)), // DeclaringType 5080bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Documents.ListItem)target).Blocks; };
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
6476typeof(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;