5 implementations of Highlights
PresentationFramework (5)
System\Windows\Controls\PasswordTextContainer.cs (1)
403Highlights ITextContainer.Highlights
System\Windows\Documents\DocumentSequenceTextContainer.cs (1)
249Highlights ITextContainer.Highlights
System\Windows\Documents\FixedTextContainer.cs (1)
218Highlights ITextContainer.Highlights
System\Windows\Documents\NullTextContainer.cs (1)
211Highlights ITextContainer.Highlights
System\Windows\Documents\TextContainer.cs (1)
1723Highlights ITextContainer.Highlights
31 references to Highlights
PresentationFramework (31)
MS\Internal\Annotations\Component\HighlightComponent.cs (8)
232Invariant.Assert(textContainer.Highlights != null, "textContainer.Highlights is null"); 235AnnotationHighlightLayer highlightLayer = textContainer.Highlights.GetLayer(typeof(HighlightComponent)) as AnnotationHighlightLayer; 239textContainer.Highlights.AddLayer(highlightLayer); 278Invariant.Assert(textContainer.Highlights != null, "textContainer.Highlights is null"); 281AnnotationHighlightLayer highlightLayer = textContainer.Highlights.GetLayer(typeof(HighlightComponent)) as AnnotationHighlightLayer; 331AnnotationHighlightLayer highlightLayer = textContainer.Highlights.GetLayer(typeof(HighlightComponent)) as AnnotationHighlightLayer; 588Invariant.Assert(textContainer.Highlights != null, "textContainer.Highlights is null"); 591AnnotationHighlightLayer highlightLayer = textContainer.Highlights.GetLayer(typeof(HighlightComponent)) as AnnotationHighlightLayer;
MS\Internal\Documents\TextBoxLine.cs (2)
423StaticTextPointer endOfRunPosition = _owner.Host.TextContainer.Highlights.GetNextPropertyChangePosition(position, LogicalDirection.Forward); 432var highlights = position.TextContainer.Highlights;
MS\Internal\Documents\TextBoxView.cs (3)
1180System.Diagnostics.Debug.Assert(_host != null && _host.TextContainer != null && _host.TextContainer.Highlights != null, 1185_host.TextContainer.Highlights.Changed -= new HighlightChangedEventHandler(OnHighlightChanged); 1359_host.TextContainer.Highlights.Changed += new HighlightChangedEventHandler(OnHighlightChanged);
MS\Internal\PtsHost\LineBase.cs (1)
101endOfRunPosition = position.TextContainer.Highlights.GetNextPropertyChangePosition(position, LogicalDirection.Forward);
MS\Internal\Text\DynamicPropertyReader.cs (1)
253selected = position.TextContainer.Highlights.GetHighlightValue(position, LogicalDirection.Forward, typeof(TextSelection));
MS\Internal\Text\TextProperties.cs (1)
223Highlights highlights = highlightPosition.TextContainer.Highlights;
System\Windows\Controls\TextBlock.cs (1)
3940internal Highlights Highlights { get { return this.TextContainer.Highlights; } }
System\Windows\Documents\ChildDocumentBlock.cs (2)
126Debug.Assert(ChildContainer.Highlights.GetLayer(typeof(TextSelection)) == null); 127ChildContainer.Highlights.AddLayer(_highlightLayer);
System\Windows\Documents\DocumentSequenceTextContainer.cs (3)
915if (textPosition.TextContainer.Highlights != this) 958if (textPosition.TextContainer.Highlights != this) 979if (textPosition.TextContainer.Highlights != this)
System\Windows\Documents\Speller.cs (2)
81_textEditor.TextContainer.Highlights.RemoveLayer(_highlightLayer); 461_textEditor.TextContainer.Highlights.AddLayer(_highlightLayer);
System\windows\Documents\TextSelection.cs (7)
712if (_highlightLayer != null && thisSelection.Start.TextContainer.Highlights.GetLayer(typeof(TextSelection)) == _highlightLayer) 714thisSelection.Start.TextContainer.Highlights.RemoveLayer(_highlightLayer); 1797if (textContainer.Highlights.GetLayer(typeof(TextSelection)) == null) 1799textContainer.Highlights.AddLayer(_highlightLayer); 1807TextSelectionHighlightLayer highlightLayer = textContainer.Highlights.GetLayer(typeof(TextSelection)) as TextSelectionHighlightLayer; 1810textContainer.Highlights.RemoveLayer(highlightLayer); 1811Invariant.Assert(textContainer.Highlights.GetLayer(typeof(TextSelection)) == null);