9 references to GetLayer
PresentationFramework (9)
src\Framework\MS\Internal\Annotations\Component\HighlightComponent.cs (4)
254
AnnotationHighlightLayer highlightLayer = textContainer.Highlights.
GetLayer
(typeof(HighlightComponent)) as AnnotationHighlightLayer;
304
AnnotationHighlightLayer highlightLayer = textContainer.Highlights.
GetLayer
(typeof(HighlightComponent)) as AnnotationHighlightLayer;
356
AnnotationHighlightLayer highlightLayer = textContainer.Highlights.
GetLayer
(typeof(HighlightComponent)) as AnnotationHighlightLayer;
626
AnnotationHighlightLayer highlightLayer = textContainer.Highlights.
GetLayer
(typeof(HighlightComponent)) as AnnotationHighlightLayer;
src\Framework\System\Windows\Documents\ChildDocumentBlock.cs (1)
133
Debug.Assert(ChildContainer.Highlights.
GetLayer
(typeof(TextSelection)) == null);
src\Framework\System\windows\Documents\TextSelection.cs (4)
731
if (_highlightLayer != null && thisSelection.Start.TextContainer.Highlights.
GetLayer
(typeof(TextSelection)) == _highlightLayer)
1824
if (textContainer.Highlights.
GetLayer
(typeof(TextSelection)) == null)
1834
TextSelectionHighlightLayer highlightLayer = textContainer.Highlights.
GetLayer
(typeof(TextSelection)) as TextSelectionHighlightLayer;
1838
Invariant.Assert(textContainer.Highlights.
GetLayer
(typeof(TextSelection)) == null);