10 writes to Context
PresentationFramework (10)
MS\Internal\PtsHost\Line.cs (4)
260
_host.
Context
= this;
324
_host.
Context
= null;
370
_host.
Context
= this;
446
_host.
Context
= null; // clear the context
MS\Internal\PtsHost\ListMarkerLine.cs (2)
102
_host.
Context
= this;
117
_host.
Context
= null;
MS\Internal\PtsHost\TextParagraph.cs (4)
188
StructuralCache.TextFormatterHost.
Context
= optimalTextSource;
197
StructuralCache.TextFormatterHost.
Context
= null;
377
StructuralCache.TextFormatterHost.
Context
= optimalTextSource;
387
StructuralCache.TextFormatterHost.
Context
= null;
7 references to Context
PresentationFramework (7)
MS\Internal\PtsHost\TextFormatterHost.cs (6)
39
Debug.Assert(
Context
!= null, "TextFormatter host is not initialized.");
41
TextRun run =
Context
.GetTextRun(textSourceCharacterIndex);
55
Debug.Assert(
Context
!= null, "TextFormatter host is not initialized.");
57
return
Context
.GetPrecedingText(textSourceCharacterIndexLimit);
69
Debug.Assert(
Context
!= null, "TextFormatter host is not initialized.");
71
return
Context
.GetTextEffectCharacterIndexFromTextSourceCharacterIndex(textSourceCharacterIndex);
MS\Internal\PtsHost\TextParagraph.cs (1)
1340
return ((OptimalTextSource)StructuralCache.TextFormatterHost.
Context
).MeasureChild(inlineObject);