44 references to GetAdjacentElement
PresentationFramework (44)
MS\Internal\Documents\HostedElements.cs (2)
187
Debug.Assert(_currentPosition.
GetAdjacentElement
(LogicalDirection.Forward) is IInputElement);
188
currentElement = (IInputElement)_currentPosition.
GetAdjacentElement
(LogicalDirection.Forward);
MS\Internal\PtsHost\FlowDocumentPage.cs (1)
958
DependencyObject embeddedObject = searchPosition.
GetAdjacentElement
(LogicalDirection.Forward);
System\Windows\Controls\TextBlock.cs (1)
3662
DependencyObject embeddedObject = position.
GetAdjacentElement
(LogicalDirection.Forward);
System\Windows\Documents\BlockUIContainer.cs (1)
72
return this.ContentStart.
GetAdjacentElement
(LogicalDirection.Forward) as UIElement;
System\Windows\Documents\Hyperlink.cs (1)
105
Hyperlink hyperlink = navigator.
GetAdjacentElement
(LogicalDirection.Forward) as Hyperlink;
System\Windows\Documents\InlineUIContainer.cs (1)
105
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)
122
_currentCache = _navigator.
GetAdjacentElement
(LogicalDirection.Forward);
System\Windows\Documents\TextContainer.cs (1)
3417
TextElement adjacentElement = startPosition.
GetAdjacentElement
(LogicalDirection.Forward) as TextElement;
System\Windows\Documents\TextPointer.cs (2)
1614
TextSchema.IsFormattingType(position.
GetAdjacentElement
(LogicalDirection.Backward).GetType()))
2406
return
GetAdjacentElement
(direction);
System\Windows\Documents\TextRangeEdit.cs (15)
280
(firstInline = position.
GetAdjacentElement
(LogicalDirection.Backward) as Inline) != null &&
281
(secondInline = position.
GetAdjacentElement
(LogicalDirection.Forward) as Inline) != null)
975
firstChild = (Inline)start.
GetAdjacentElement
(LogicalDirection.Forward);
976
lastChild = (Inline)end.
GetAdjacentElement
(LogicalDirection.Backward);
1299
TextSchema.IsMergeableInline(previousPosition.
GetAdjacentElement
(LogicalDirection.Backward).GetType()))
1301
previousPosition = ((Inline)previousPosition.
GetAdjacentElement
(LogicalDirection.Backward)).ContentEnd;
1308
TextSchema.IsMergeableInline(nextPosition.
GetAdjacentElement
(LogicalDirection.Forward).GetType()))
1310
nextPosition = ((Inline)nextPosition.
GetAdjacentElement
(LogicalDirection.Forward)).ContentStart;
2053
Span parent = (Span)end.
GetAdjacentElement
(LogicalDirection.Backward);
2084
(run = pointer.
GetAdjacentElement
(LogicalDirection.Forward) as Run) != null)
2149
run = (Run)start.
GetAdjacentElement
(LogicalDirection.Forward);
2162
DependencyObject forwardElement = start.
GetAdjacentElement
(LogicalDirection.Forward);
2163
DependencyObject backwardElement = end.
GetAdjacentElement
(LogicalDirection.Backward);
2168
Inline inline = (Inline)start.
GetAdjacentElement
(LogicalDirection.Forward);
2189
start.
GetAdjacentElement
(LogicalDirection.Backward) == commonAncestor)
System\Windows\Documents\TextRangeEditLists.cs (8)
100
TextElement previousBlock = secondParagraphOrBlockUIContainer.ElementStart.
GetAdjacentElement
(LogicalDirection.Backward) as TextElement;
145
? positionAfterSecondParagraph.
GetAdjacentElement
(LogicalDirection.Forward) as ListItem : null;
148
ListItem precedingListItem = positionAfterSecondParagraph.
GetAdjacentElement
(LogicalDirection.Backward) as ListItem;
215
List precedingList = mergePosition.
GetAdjacentElement
(LogicalDirection.Backward) as List;
216
List followingList = mergePosition.
GetAdjacentElement
(LogicalDirection.Forward) as List;
308
Block nextBlock = block == lastBlock ? null : block.ElementEnd.
GetAdjacentElement
(LogicalDirection.Forward) as Block;
372
ListItem nextListItem = listItem.ElementEnd.
GetAdjacentElement
(LogicalDirection.Forward) as ListItem;
558
ListItem nextListItem = listItem.ElementEnd.
GetAdjacentElement
(LogicalDirection.Forward) as ListItem;
System\Windows\Documents\TextRangeEditTables.cs (1)
1085
cell = (TableCell)cellEnd.
GetAdjacentElement
(LogicalDirection.Forward);
System\Windows\Documents\TextRangeSerialization.cs (5)
1226
TextElement uiContainer = fragment.ContentStart.
GetAdjacentElement
(LogicalDirection.Forward) as TextElement;
1516
Invariant.Assert(itemType.IsAssignableFrom(start.
GetAdjacentElement
(LogicalDirection.Forward).GetType()),
1518
Invariant.Assert(itemType.IsAssignableFrom(end.
GetAdjacentElement
(LogicalDirection.Backward).GetType()),
1525
Invariant.Assert(!(backwardFromStart == TextPointerContext.ElementEnd) || itemType.IsAssignableFrom(start.
GetAdjacentElement
(LogicalDirection.Backward).GetType()),
1528
Invariant.Assert(!(forwardFromEnd == TextPointerContext.ElementStart) || itemType.IsAssignableFrom(end.
GetAdjacentElement
(LogicalDirection.Forward).GetType()),
System\Windows\Documents\TextSchema.cs (1)
896
TextElement nextElement = (TextElement)start.
GetAdjacentElement
(LogicalDirection.Forward);
System\Windows\Documents\TextStore.cs (1)
429
TextElement element = (TextElement)((TextPointer)navigator).
GetAdjacentElement
(LogicalDirection.Forward);