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