4 writes to _complexContent
PresentationFramework (4)
System\Windows\Controls\TextBlock.cs (4)
1921
_complexContent
= null;
1927
_complexContent
= null;
2869
_complexContent
= new ComplexContent(this, textContainer, false, Text);
2912
_complexContent
= null;
84 references to _complexContent
PresentationFramework (84)
System\Windows\Controls\TextBlock.cs (84)
125
if (!(
_complexContent
.TextContainer is TextContainer))
132
Type parentType =
_complexContent
.TextContainer.Parent.GetType();
152
TextContainer textContainer = (TextContainer)
_complexContent
.TextContainer;
176
if (
_complexContent
== null)
182
TextContainer textContainer = (TextContainer)
_complexContent
.TextContainer;
224
else if (
_complexContent
== null)
230
if (!
_complexContent
.ForeignTextContainer)
273
return
_complexContent
.TextView;
278
return
_complexContent
.TextContainer;
283
return
_complexContent
.TextContainer as TextContainer;
395
if (((ITextView)
_complexContent
.TextView).Validate(point))
397
position = (TextPointer)
_complexContent
.TextView.GetTextPositionFromPoint(point, snapToText);
401
position = snapToText ? new TextPointer((TextPointer)
_complexContent
.TextContainer.Start) : null;
444
return (TextPointer)
_complexContent
.TextContainer.Start;
461
return (TextPointer)
_complexContent
.TextContainer.End;
596
if (textblock.
_complexContent
!= null &&
1135
get { return
_complexContent
== null ? 0 :
_complexContent
.VisualChildren.Count; }
1149
if (
_complexContent
== null)
1153
return
_complexContent
.VisualChildren[index];
1179
Invariant.Assert(
_complexContent
!= null);
1237
_complexContent
?.TextView.Invalidate();
1379
_complexContent
?.VisualChildren.Clear();
1435
line.Arrange(
_complexContent
.VisualChildren, lineOffset);
1457
if (
_complexContent
!= null)
1738
if (
_complexContent
== null || !(
_complexContent
.TextContainer is TextContainer))
1767
int startOffset =
_complexContent
.TextContainer.Start.GetOffsetToPosition(start);
1768
int endOffset =
_complexContent
.TextContainer.Start.GetOffsetToPosition(end);
1849
if (
_complexContent
== null || !(
_complexContent
.TextContainer is TextContainer))
1857
TextSegment textSegment = new TextSegment(
_complexContent
.TextContainer.Start,
_complexContent
.TextContainer.End);
1901
_complexContent
?.VisualChildren.Remove(child);
1918
if (
_complexContent
!= null)
1920
_complexContent
.Detach(this);
1945
Debug.Assert(
_complexContent
!= null, "Inline objects are supported only in complex content.");
1998
if (
_complexContent
!= null)
2000
return TextRangeBase.GetTextInternal(
_complexContent
.TextContainer.Start,
_complexContent
.TextContainer.End);
2135
pos =
_complexContent
.TextContainer.Start.CreatePointer(charIndex.FirstCharacterIndex + charIndex.TrailingLength, logicalDirection);
2164
int characterIndex =
_complexContent
.TextContainer.Start.GetOffsetToPosition(orientedPosition);
2268
int dcpPositionStart =
_complexContent
.TextContainer.Start.GetOffsetToPosition(startPosition);
2269
int dcpPositionEnd =
_complexContent
.TextContainer.Start.GetOffsetToPosition(endPosition);
2278
ITextPointer endOfLineTextPointer =
_complexContent
.TextContainer.Start.CreatePointer(0);
2376
int characterIndex =
_complexContent
.TextContainer.Start.GetOffsetToPosition(position);
2442
int characterIndex =
_complexContent
.TextContainer.Start.GetOffsetToPosition(position);
2542
ITextPointer nextCaretPosition =
_complexContent
.TextContainer.Start.CreatePointer(nextCharacterHit.FirstCharacterIndex + nextCharacterHit.TrailingLength, logicalDirection);
2571
int characterIndex =
_complexContent
.TextContainer.Start.GetOffsetToPosition(position);
2630
ITextPointer backspaceCaretPosition =
_complexContent
.TextContainer.Start.CreatePointer(backspaceCharacterHit.FirstCharacterIndex + backspaceCharacterHit.TrailingLength, logicalDirection);
2681
return
_complexContent
.TextContainer;
2693
return
_complexContent
.TextView;
2705
return
_complexContent
.Highlights;
2744
return (
_complexContent
!= null);
2764
get { return
_complexContent
?.InlineObjects; }
2765
set {
_complexContent
?.InlineObjects = value; }
2801
if (IsLayoutDataValid &&
_complexContent
!= null)
2803
_complexContent
.TextView.OnUpdated();
2842
if (
_complexContent
== null)
2862
if (
_complexContent
== null)
2909
if (
_complexContent
!= null)
2911
_complexContent
.Detach(this);
2944
Debug.Assert(sender ==
_complexContent
.TextContainer, "Received text change for foreign TextContainer.");
2964
if (
_complexContent
== null)
2972
Invariant.Assert(sender ==
_complexContent
.TextContainer, "Received text change for foreign TextContainer.");
3359
if (
_complexContent
== null)
3388
return (
_complexContent
!= null) && (manager != null) && (manager.XmlWriter == null);
3484
if (textBlock.
_complexContent
== null || !(textBlock.
_complexContent
.TextContainer is TextContainer))
3490
if (textBlock.
_complexContent
.TextContainer != ((TextElement)element).TextContainer)
3629
Debug.Assert(
_complexContent
.TextContainer is TextContainer);
3636
if ((e as TextElement).TextContainer ==
_complexContent
.TextContainer)
3645
position = new TextPointer((TextPointer)
_complexContent
.TextContainer.Start);
3646
while (position.CompareTo((TextPointer)
_complexContent
.TextContainer.End) < 0)
3726
_complexContent
.TextContainer.Changing += new EventHandler(OnTextContainerChanging);
3727
_complexContent
.TextContainer.Change += new TextContainerChangeEventHandler(OnTextContainerChange);
3728
_complexContent
.Highlights.Changed += new HighlightChangedEventHandler(OnHighlightChanged);
4081
if (text.
_complexContent
== null)
4094
text.
_complexContent
.TextContainer.BeginChange();
4097
((TextContainer)text.
_complexContent
.TextContainer).DeleteContentInternal((TextPointer)text.
_complexContent
.TextContainer.Start, (TextPointer)text.
_complexContent
.TextContainer.End);
4098
InsertTextRun(text.
_complexContent
.TextContainer.End, newText, /*whitespacesIgnorable:*/true);
4103
text.
_complexContent
.TextContainer.EndChange();