9 references to GetLayer
PresentationFramework (9)
MS\Internal\Annotations\Component\HighlightComponent.cs (4)
236
AnnotationHighlightLayer highlightLayer = textContainer.Highlights.
GetLayer
(typeof(HighlightComponent)) as AnnotationHighlightLayer;
282
AnnotationHighlightLayer highlightLayer = textContainer.Highlights.
GetLayer
(typeof(HighlightComponent)) as AnnotationHighlightLayer;
332
AnnotationHighlightLayer highlightLayer = textContainer.Highlights.
GetLayer
(typeof(HighlightComponent)) as AnnotationHighlightLayer;
592
AnnotationHighlightLayer highlightLayer = textContainer.Highlights.
GetLayer
(typeof(HighlightComponent)) as AnnotationHighlightLayer;
System\Windows\Documents\ChildDocumentBlock.cs (1)
127
Debug.Assert(ChildContainer.Highlights.
GetLayer
(typeof(TextSelection)) == null);
System\windows\Documents\TextSelection.cs (4)
725
if (_highlightLayer != null && thisSelection.Start.TextContainer.Highlights.
GetLayer
(typeof(TextSelection)) == _highlightLayer)
1813
if (textContainer.Highlights.
GetLayer
(typeof(TextSelection)) == null)
1823
TextSelectionHighlightLayer highlightLayer = textContainer.Highlights.
GetLayer
(typeof(TextSelection)) as TextSelectionHighlightLayer;
1827
Invariant.Assert(textContainer.Highlights.
GetLayer
(typeof(TextSelection)) == null);