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