44 references to GetAdjacentElement
PresentationFramework (44)
MS\Internal\Documents\HostedElements.cs (2)
191
Debug.Assert(_currentPosition.
GetAdjacentElement
(LogicalDirection.Forward) is IInputElement);
192
currentElement = (IInputElement)_currentPosition.
GetAdjacentElement
(LogicalDirection.Forward);
MS\Internal\PtsHost\FlowDocumentPage.cs (1)
966
DependencyObject embeddedObject = searchPosition.
GetAdjacentElement
(LogicalDirection.Forward);
System\Windows\Controls\TextBlock.cs (1)
3672
DependencyObject embeddedObject = position.
GetAdjacentElement
(LogicalDirection.Forward);
System\Windows\Documents\BlockUIContainer.cs (1)
73
return this.ContentStart.
GetAdjacentElement
(LogicalDirection.Forward) as UIElement;
System\Windows\Documents\Hyperlink.cs (1)
111
Hyperlink hyperlink = navigator.
GetAdjacentElement
(LogicalDirection.Forward) as Hyperlink;
System\Windows\Documents\InlineUIContainer.cs (1)
107
return this.ContentStart.
GetAdjacentElement
(LogicalDirection.Forward) as UIElement;
System\Windows\Documents\List.cs (2)
250
listItem = block.ElementStart.
GetAdjacentElement
(LogicalDirection.Backward) as ListItem;
278
block = block == lastBlock ? null : (Block)listItem.ElementEnd.
GetAdjacentElement
(LogicalDirection.Forward);
System\Windows\Documents\RangeContentEnumerator.cs (1)
126
_currentCache = _navigator.
GetAdjacentElement
(LogicalDirection.Forward);
System\Windows\Documents\TextContainer.cs (1)
3422
TextElement adjacentElement = startPosition.
GetAdjacentElement
(LogicalDirection.Forward) as TextElement;
System\Windows\Documents\TextPointer.cs (2)
1619
TextSchema.IsFormattingType(position.
GetAdjacentElement
(LogicalDirection.Backward).GetType()))
2411
return
GetAdjacentElement
(direction);
System\Windows\Documents\TextRangeEdit.cs (15)
282
(firstInline = position.
GetAdjacentElement
(LogicalDirection.Backward) as Inline) != null &&
283
(secondInline = position.
GetAdjacentElement
(LogicalDirection.Forward) as Inline) != null)
977
firstChild = (Inline)start.
GetAdjacentElement
(LogicalDirection.Forward);
978
lastChild = (Inline)end.
GetAdjacentElement
(LogicalDirection.Backward);
1301
TextSchema.IsMergeableInline(previousPosition.
GetAdjacentElement
(LogicalDirection.Backward).GetType()))
1303
previousPosition = ((Inline)previousPosition.
GetAdjacentElement
(LogicalDirection.Backward)).ContentEnd;
1310
TextSchema.IsMergeableInline(nextPosition.
GetAdjacentElement
(LogicalDirection.Forward).GetType()))
1312
nextPosition = ((Inline)nextPosition.
GetAdjacentElement
(LogicalDirection.Forward)).ContentStart;
2055
Span parent = (Span)end.
GetAdjacentElement
(LogicalDirection.Backward);
2086
(run = pointer.
GetAdjacentElement
(LogicalDirection.Forward) as Run) != null)
2151
run = (Run)start.
GetAdjacentElement
(LogicalDirection.Forward);
2164
DependencyObject forwardElement = start.
GetAdjacentElement
(LogicalDirection.Forward);
2165
DependencyObject backwardElement = end.
GetAdjacentElement
(LogicalDirection.Backward);
2170
Inline inline = (Inline)start.
GetAdjacentElement
(LogicalDirection.Forward);
2191
start.
GetAdjacentElement
(LogicalDirection.Backward) == commonAncestor)
System\Windows\Documents\TextRangeEditLists.cs (8)
102
TextElement previousBlock = secondParagraphOrBlockUIContainer.ElementStart.
GetAdjacentElement
(LogicalDirection.Backward) as TextElement;
147
? positionAfterSecondParagraph.
GetAdjacentElement
(LogicalDirection.Forward) as ListItem : null;
150
ListItem precedingListItem = positionAfterSecondParagraph.
GetAdjacentElement
(LogicalDirection.Backward) as ListItem;
217
List precedingList = mergePosition.
GetAdjacentElement
(LogicalDirection.Backward) as List;
218
List followingList = mergePosition.
GetAdjacentElement
(LogicalDirection.Forward) as List;
310
Block nextBlock = block == lastBlock ? null : block.ElementEnd.
GetAdjacentElement
(LogicalDirection.Forward) as Block;
374
ListItem nextListItem = listItem.ElementEnd.
GetAdjacentElement
(LogicalDirection.Forward) as ListItem;
560
ListItem nextListItem = listItem.ElementEnd.
GetAdjacentElement
(LogicalDirection.Forward) as ListItem;
System\Windows\Documents\TextRangeEditTables.cs (1)
1087
cell = (TableCell)cellEnd.
GetAdjacentElement
(LogicalDirection.Forward);
System\Windows\Documents\TextRangeSerialization.cs (5)
1232
TextElement uiContainer = fragment.ContentStart.
GetAdjacentElement
(LogicalDirection.Forward) as TextElement;
1522
Invariant.Assert(itemType.IsAssignableFrom(start.
GetAdjacentElement
(LogicalDirection.Forward).GetType()),
1524
Invariant.Assert(itemType.IsAssignableFrom(end.
GetAdjacentElement
(LogicalDirection.Backward).GetType()),
1531
Invariant.Assert(!(backwardFromStart == TextPointerContext.ElementEnd) || itemType.IsAssignableFrom(start.
GetAdjacentElement
(LogicalDirection.Backward).GetType()),
1534
Invariant.Assert(!(forwardFromEnd == TextPointerContext.ElementStart) || itemType.IsAssignableFrom(end.
GetAdjacentElement
(LogicalDirection.Forward).GetType()),
System\Windows\Documents\TextSchema.cs (1)
897
TextElement nextElement = (TextElement)start.
GetAdjacentElement
(LogicalDirection.Forward);
System\Windows\Documents\TextStore.cs (1)
440
TextElement element = (TextElement)((TextPointer)navigator).
GetAdjacentElement
(LogicalDirection.Forward);