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