5 implementations of Highlights
PresentationFramework (5)
src\Framework\System\Windows\Controls\PasswordTextContainer.cs (1)
413Highlights ITextContainer.Highlights
src\Framework\System\Windows\Documents\DocumentSequenceTextContainer.cs (1)
270Highlights ITextContainer.Highlights
src\Framework\System\Windows\Documents\FixedTextContainer.cs (1)
239Highlights ITextContainer.Highlights
src\Framework\System\Windows\Documents\NullTextContainer.cs (1)
219Highlights ITextContainer.Highlights
src\Framework\System\Windows\Documents\TextContainer.cs (1)
1750Highlights ITextContainer.Highlights
31 references to Highlights
PresentationFramework (31)
src\Framework\MS\Internal\Annotations\Component\HighlightComponent.cs (8)
251Invariant.Assert(textContainer.Highlights != null, "textContainer.Highlights is null"); 254AnnotationHighlightLayer highlightLayer = textContainer.Highlights.GetLayer(typeof(HighlightComponent)) as AnnotationHighlightLayer; 258textContainer.Highlights.AddLayer(highlightLayer); 301Invariant.Assert(textContainer.Highlights != null, "textContainer.Highlights is null"); 304AnnotationHighlightLayer highlightLayer = textContainer.Highlights.GetLayer(typeof(HighlightComponent)) as AnnotationHighlightLayer; 356AnnotationHighlightLayer highlightLayer = textContainer.Highlights.GetLayer(typeof(HighlightComponent)) as AnnotationHighlightLayer; 623Invariant.Assert(textContainer.Highlights != null, "textContainer.Highlights is null"); 626AnnotationHighlightLayer highlightLayer = textContainer.Highlights.GetLayer(typeof(HighlightComponent)) as AnnotationHighlightLayer;
src\Framework\MS\Internal\Documents\TextBoxLine.cs (2)
433StaticTextPointer endOfRunPosition = _owner.Host.TextContainer.Highlights.GetNextPropertyChangePosition(position, LogicalDirection.Forward); 442var highlights = position.TextContainer.Highlights;
src\Framework\MS\Internal\Documents\TextBoxView.cs (3)
1225System.Diagnostics.Debug.Assert(_host != null && _host.TextContainer != null && _host.TextContainer.Highlights != null, 1230_host.TextContainer.Highlights.Changed -= new HighlightChangedEventHandler(OnHighlightChanged); 1402_host.TextContainer.Highlights.Changed += new HighlightChangedEventHandler(OnHighlightChanged);
src\Framework\MS\Internal\PtsHost\LineBase.cs (1)
116endOfRunPosition = position.TextContainer.Highlights.GetNextPropertyChangePosition(position, LogicalDirection.Forward);
src\Framework\MS\Internal\Text\DynamicPropertyReader.cs (1)
263selected = position.TextContainer.Highlights.GetHighlightValue(position, LogicalDirection.Forward, typeof(TextSelection));
src\Framework\MS\Internal\Text\TextProperties.cs (1)
229Highlights highlights = highlightPosition.TextContainer.Highlights;
src\Framework\System\Windows\Controls\TextBlock.cs (1)
3949internal Highlights Highlights { get { return this.TextContainer.Highlights; } }
src\Framework\System\Windows\Documents\ChildDocumentBlock.cs (2)
133Debug.Assert(ChildContainer.Highlights.GetLayer(typeof(TextSelection)) == null); 134ChildContainer.Highlights.AddLayer(_highlightLayer);
src\Framework\System\Windows\Documents\DocumentSequenceTextContainer.cs (3)
941if (textPosition.TextContainer.Highlights != this) 984if (textPosition.TextContainer.Highlights != this) 1005if (textPosition.TextContainer.Highlights != this)
src\Framework\System\Windows\Documents\Speller.cs (2)
91_textEditor.TextContainer.Highlights.RemoveLayer(_highlightLayer); 528_textEditor.TextContainer.Highlights.AddLayer(_highlightLayer);
src\Framework\System\windows\Documents\TextSelection.cs (7)
731if (_highlightLayer != null && thisSelection.Start.TextContainer.Highlights.GetLayer(typeof(TextSelection)) == _highlightLayer) 733thisSelection.Start.TextContainer.Highlights.RemoveLayer(_highlightLayer); 1824if (textContainer.Highlights.GetLayer(typeof(TextSelection)) == null) 1826textContainer.Highlights.AddLayer(_highlightLayer); 1834TextSelectionHighlightLayer highlightLayer = textContainer.Highlights.GetLayer(typeof(TextSelection)) as TextSelectionHighlightLayer; 1837textContainer.Highlights.RemoveLayer(highlightLayer); 1838Invariant.Assert(textContainer.Highlights.GetLayer(typeof(TextSelection)) == null);