5 implementations of Highlights
PresentationFramework (5)
System\Windows\Controls\PasswordTextContainer.cs (1)
407Highlights ITextContainer.Highlights
System\Windows\Documents\DocumentSequenceTextContainer.cs (1)
266Highlights ITextContainer.Highlights
System\Windows\Documents\FixedTextContainer.cs (1)
235Highlights ITextContainer.Highlights
System\Windows\Documents\NullTextContainer.cs (1)
216Highlights ITextContainer.Highlights
System\Windows\Documents\TextContainer.cs (1)
1735Highlights ITextContainer.Highlights
31 references to Highlights
PresentationFramework (31)
MS\Internal\Annotations\Component\HighlightComponent.cs (8)
241Invariant.Assert(textContainer.Highlights != null, "textContainer.Highlights is null"); 244AnnotationHighlightLayer highlightLayer = textContainer.Highlights.GetLayer(typeof(HighlightComponent)) as AnnotationHighlightLayer; 248textContainer.Highlights.AddLayer(highlightLayer); 287Invariant.Assert(textContainer.Highlights != null, "textContainer.Highlights is null"); 290AnnotationHighlightLayer highlightLayer = textContainer.Highlights.GetLayer(typeof(HighlightComponent)) as AnnotationHighlightLayer; 340AnnotationHighlightLayer highlightLayer = textContainer.Highlights.GetLayer(typeof(HighlightComponent)) as AnnotationHighlightLayer; 597Invariant.Assert(textContainer.Highlights != null, "textContainer.Highlights is null"); 600AnnotationHighlightLayer highlightLayer = textContainer.Highlights.GetLayer(typeof(HighlightComponent)) as AnnotationHighlightLayer;
MS\Internal\Documents\TextBoxLine.cs (2)
431StaticTextPointer endOfRunPosition = _owner.Host.TextContainer.Highlights.GetNextPropertyChangePosition(position, LogicalDirection.Forward); 440var 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)
112endOfRunPosition = position.TextContainer.Highlights.GetNextPropertyChangePosition(position, LogicalDirection.Forward);
MS\Internal\Text\DynamicPropertyReader.cs (1)
260selected = position.TextContainer.Highlights.GetHighlightValue(position, LogicalDirection.Forward, typeof(TextSelection));
MS\Internal\Text\TextProperties.cs (1)
226Highlights highlights = highlightPosition.TextContainer.Highlights;
System\Windows\Controls\TextBlock.cs (1)
3960internal Highlights Highlights { get { return this.TextContainer.Highlights; } }
System\Windows\Documents\ChildDocumentBlock.cs (2)
130Debug.Assert(ChildContainer.Highlights.GetLayer(typeof(TextSelection)) == null); 131ChildContainer.Highlights.AddLayer(_highlightLayer);
System\Windows\Documents\DocumentSequenceTextContainer.cs (3)
933if (textPosition.TextContainer.Highlights != this) 976if (textPosition.TextContainer.Highlights != this) 997if (textPosition.TextContainer.Highlights != this)
System\Windows\Documents\Speller.cs (2)
85_textEditor.TextContainer.Highlights.RemoveLayer(_highlightLayer); 479_textEditor.TextContainer.Highlights.AddLayer(_highlightLayer);
System\windows\Documents\TextSelection.cs (7)
728if (_highlightLayer != null && thisSelection.Start.TextContainer.Highlights.GetLayer(typeof(TextSelection)) == _highlightLayer) 730thisSelection.Start.TextContainer.Highlights.RemoveLayer(_highlightLayer); 1816if (textContainer.Highlights.GetLayer(typeof(TextSelection)) == null) 1818textContainer.Highlights.AddLayer(_highlightLayer); 1826TextSelectionHighlightLayer highlightLayer = textContainer.Highlights.GetLayer(typeof(TextSelection)) as TextSelectionHighlightLayer; 1829textContainer.Highlights.RemoveLayer(highlightLayer); 1830Invariant.Assert(textContainer.Highlights.GetLayer(typeof(TextSelection)) == null);