5 implementations of Highlights
PresentationFramework (5)
System\Windows\Controls\PasswordTextContainer.cs (1)
404Highlights ITextContainer.Highlights
System\Windows\Documents\DocumentSequenceTextContainer.cs (1)
250Highlights ITextContainer.Highlights
System\Windows\Documents\FixedTextContainer.cs (1)
219Highlights ITextContainer.Highlights
System\Windows\Documents\NullTextContainer.cs (1)
212Highlights ITextContainer.Highlights
System\Windows\Documents\TextContainer.cs (1)
1730Highlights ITextContainer.Highlights
31 references to Highlights
PresentationFramework (31)
MS\Internal\Annotations\Component\HighlightComponent.cs (8)
233Invariant.Assert(textContainer.Highlights != null, "textContainer.Highlights is null"); 236AnnotationHighlightLayer highlightLayer = textContainer.Highlights.GetLayer(typeof(HighlightComponent)) as AnnotationHighlightLayer; 240textContainer.Highlights.AddLayer(highlightLayer); 279Invariant.Assert(textContainer.Highlights != null, "textContainer.Highlights is null"); 282AnnotationHighlightLayer highlightLayer = textContainer.Highlights.GetLayer(typeof(HighlightComponent)) as AnnotationHighlightLayer; 332AnnotationHighlightLayer highlightLayer = textContainer.Highlights.GetLayer(typeof(HighlightComponent)) as AnnotationHighlightLayer; 589Invariant.Assert(textContainer.Highlights != null, "textContainer.Highlights is null"); 592AnnotationHighlightLayer highlightLayer = textContainer.Highlights.GetLayer(typeof(HighlightComponent)) as AnnotationHighlightLayer;
MS\Internal\Documents\TextBoxLine.cs (2)
424StaticTextPointer endOfRunPosition = _owner.Host.TextContainer.Highlights.GetNextPropertyChangePosition(position, LogicalDirection.Forward); 433var highlights = position.TextContainer.Highlights;
MS\Internal\Documents\TextBoxView.cs (3)
1223System.Diagnostics.Debug.Assert(_host != null && _host.TextContainer != null && _host.TextContainer.Highlights != null, 1228_host.TextContainer.Highlights.Changed -= new HighlightChangedEventHandler(OnHighlightChanged); 1402_host.TextContainer.Highlights.Changed += new HighlightChangedEventHandler(OnHighlightChanged);
MS\Internal\PtsHost\LineBase.cs (1)
102endOfRunPosition = position.TextContainer.Highlights.GetNextPropertyChangePosition(position, LogicalDirection.Forward);
MS\Internal\Text\DynamicPropertyReader.cs (1)
254selected = position.TextContainer.Highlights.GetHighlightValue(position, LogicalDirection.Forward, typeof(TextSelection));
MS\Internal\Text\TextProperties.cs (1)
224Highlights highlights = highlightPosition.TextContainer.Highlights;
System\Windows\Controls\TextBlock.cs (1)
3950internal Highlights Highlights { get { return this.TextContainer.Highlights; } }
System\Windows\Documents\ChildDocumentBlock.cs (2)
127Debug.Assert(ChildContainer.Highlights.GetLayer(typeof(TextSelection)) == null); 128ChildContainer.Highlights.AddLayer(_highlightLayer);
System\Windows\Documents\DocumentSequenceTextContainer.cs (3)
916if (textPosition.TextContainer.Highlights != this) 959if (textPosition.TextContainer.Highlights != this) 980if (textPosition.TextContainer.Highlights != this)
System\Windows\Documents\Speller.cs (2)
82_textEditor.TextContainer.Highlights.RemoveLayer(_highlightLayer); 462_textEditor.TextContainer.Highlights.AddLayer(_highlightLayer);
System\windows\Documents\TextSelection.cs (7)
725if (_highlightLayer != null && thisSelection.Start.TextContainer.Highlights.GetLayer(typeof(TextSelection)) == _highlightLayer) 727thisSelection.Start.TextContainer.Highlights.RemoveLayer(_highlightLayer); 1813if (textContainer.Highlights.GetLayer(typeof(TextSelection)) == null) 1815textContainer.Highlights.AddLayer(_highlightLayer); 1823TextSelectionHighlightLayer highlightLayer = textContainer.Highlights.GetLayer(typeof(TextSelection)) as TextSelectionHighlightLayer; 1826textContainer.Highlights.RemoveLayer(highlightLayer); 1827Invariant.Assert(textContainer.Highlights.GetLayer(typeof(TextSelection)) == null);