10 writes to Context
PresentationFramework (10)
MS\Internal\PtsHost\Line.cs (4)
278
_host.
Context
= this;
342
_host.
Context
= null;
388
_host.
Context
= this;
465
_host.
Context
= null; // clear the context
MS\Internal\PtsHost\ListMarkerLine.cs (2)
110
_host.
Context
= this;
125
_host.
Context
= null;
MS\Internal\PtsHost\TextParagraph.cs (4)
207
StructuralCache.TextFormatterHost.
Context
= optimalTextSource;
216
StructuralCache.TextFormatterHost.
Context
= null;
396
StructuralCache.TextFormatterHost.
Context
= optimalTextSource;
406
StructuralCache.TextFormatterHost.
Context
= null;
7 references to Context
PresentationFramework (7)
MS\Internal\PtsHost\TextFormatterHost.cs (6)
43
Debug.Assert(
Context
!= null, "TextFormatter host is not initialized.");
45
TextRun run =
Context
.GetTextRun(textSourceCharacterIndex);
59
Debug.Assert(
Context
!= null, "TextFormatter host is not initialized.");
61
return
Context
.GetPrecedingText(textSourceCharacterIndexLimit);
73
Debug.Assert(
Context
!= null, "TextFormatter host is not initialized.");
75
return
Context
.GetTextEffectCharacterIndexFromTextSourceCharacterIndex(textSourceCharacterIndex);
MS\Internal\PtsHost\TextParagraph.cs (1)
1370
return ((OptimalTextSource)StructuralCache.TextFormatterHost.
Context
).MeasureChild(inlineObject);