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