9 references to GetLayer
PresentationFramework (9)
MS\Internal\Annotations\Component\HighlightComponent.cs (4)
235
AnnotationHighlightLayer highlightLayer = textContainer.Highlights.
GetLayer
(typeof(HighlightComponent)) as AnnotationHighlightLayer;
281
AnnotationHighlightLayer highlightLayer = textContainer.Highlights.
GetLayer
(typeof(HighlightComponent)) as AnnotationHighlightLayer;
331
AnnotationHighlightLayer highlightLayer = textContainer.Highlights.
GetLayer
(typeof(HighlightComponent)) as AnnotationHighlightLayer;
591
AnnotationHighlightLayer highlightLayer = textContainer.Highlights.
GetLayer
(typeof(HighlightComponent)) as AnnotationHighlightLayer;
System\Windows\Documents\ChildDocumentBlock.cs (1)
126
Debug.Assert(ChildContainer.Highlights.
GetLayer
(typeof(TextSelection)) == null);
System\windows\Documents\TextSelection.cs (4)
712
if (_highlightLayer != null && thisSelection.Start.TextContainer.Highlights.
GetLayer
(typeof(TextSelection)) == _highlightLayer)
1797
if (textContainer.Highlights.
GetLayer
(typeof(TextSelection)) == null)
1807
TextSelectionHighlightLayer highlightLayer = textContainer.Highlights.
GetLayer
(typeof(TextSelection)) as TextSelectionHighlightLayer;
1811
Invariant.Assert(textContainer.Highlights.
GetLayer
(typeof(TextSelection)) == null);