10 writes to Context
PresentationFramework (10)
src\Framework\MS\Internal\PtsHost\Line.cs (4)
281
_host.
Context
= this;
345
_host.
Context
= null;
391
_host.
Context
= this;
468
_host.
Context
= null; // clear the context
src\Framework\MS\Internal\PtsHost\ListMarkerLine.cs (2)
114
_host.
Context
= this;
129
_host.
Context
= null;
src\Framework\MS\Internal\PtsHost\TextParagraph.cs (4)
212
StructuralCache.TextFormatterHost.
Context
= optimalTextSource;
221
StructuralCache.TextFormatterHost.
Context
= null;
402
StructuralCache.TextFormatterHost.
Context
= optimalTextSource;
412
StructuralCache.TextFormatterHost.
Context
= null;
7 references to Context
PresentationFramework (7)
src\Framework\MS\Internal\PtsHost\TextFormatterHost.cs (6)
46
Debug.Assert(
Context
!= null, "TextFormatter host is not initialized.");
48
TextRun run =
Context
.GetTextRun(textSourceCharacterIndex);
62
Debug.Assert(
Context
!= null, "TextFormatter host is not initialized.");
64
return
Context
.GetPrecedingText(textSourceCharacterIndexLimit);
76
Debug.Assert(
Context
!= null, "TextFormatter host is not initialized.");
78
return
Context
.GetTextEffectCharacterIndexFromTextSourceCharacterIndex(textSourceCharacterIndex);
src\Framework\MS\Internal\PtsHost\TextParagraph.cs (1)
1378
return ((OptimalTextSource)StructuralCache.TextFormatterHost.
Context
).MeasureChild(inlineObject);