10 writes to Context
PresentationFramework (10)
MS\Internal\PtsHost\Line.cs (4)
264
_host.
Context
= this;
328
_host.
Context
= null;
374
_host.
Context
= this;
450
_host.
Context
= null; // clear the context
MS\Internal\PtsHost\ListMarkerLine.cs (2)
103
_host.
Context
= this;
118
_host.
Context
= null;
MS\Internal\PtsHost\TextParagraph.cs (4)
189
StructuralCache.TextFormatterHost.
Context
= optimalTextSource;
198
StructuralCache.TextFormatterHost.
Context
= null;
378
StructuralCache.TextFormatterHost.
Context
= optimalTextSource;
388
StructuralCache.TextFormatterHost.
Context
= null;
7 references to Context
PresentationFramework (7)
MS\Internal\PtsHost\TextFormatterHost.cs (6)
40
Debug.Assert(
Context
!= null, "TextFormatter host is not initialized.");
42
TextRun run =
Context
.GetTextRun(textSourceCharacterIndex);
56
Debug.Assert(
Context
!= null, "TextFormatter host is not initialized.");
58
return
Context
.GetPrecedingText(textSourceCharacterIndexLimit);
70
Debug.Assert(
Context
!= null, "TextFormatter host is not initialized.");
72
return
Context
.GetTextEffectCharacterIndexFromTextSourceCharacterIndex(textSourceCharacterIndex);
MS\Internal\PtsHost\TextParagraph.cs (1)
1341
return ((OptimalTextSource)StructuralCache.TextFormatterHost.
Context
).MeasureChild(inlineObject);