4 writes to _complexContent
PresentationFramework (4)
System\Windows\Controls\TextBlock.cs (4)
1922
_complexContent
= null;
1928
_complexContent
= null;
2870
_complexContent
= new ComplexContent(this, textContainer, false, Text);
2913
_complexContent
= null;
85 references to _complexContent
PresentationFramework (85)
System\Windows\Controls\TextBlock.cs (85)
126
if (!(
_complexContent
.TextContainer is TextContainer))
133
Type parentType =
_complexContent
.TextContainer.Parent.GetType();
153
TextContainer textContainer = (TextContainer)
_complexContent
.TextContainer;
177
if (
_complexContent
== null)
183
TextContainer textContainer = (TextContainer)
_complexContent
.TextContainer;
225
else if (
_complexContent
== null)
231
if (!
_complexContent
.ForeignTextContainer)
274
return
_complexContent
.TextView;
279
return
_complexContent
.TextContainer;
284
return
_complexContent
.TextContainer as TextContainer;
396
if (((ITextView)
_complexContent
.TextView).Validate(point))
398
position = (TextPointer)
_complexContent
.TextView.GetTextPositionFromPoint(point, snapToText);
402
position = snapToText ? new TextPointer((TextPointer)
_complexContent
.TextContainer.Start) : null;
445
return (TextPointer)
_complexContent
.TextContainer.Start;
462
return (TextPointer)
_complexContent
.TextContainer.End;
597
if (textblock.
_complexContent
!= null &&
1136
get { return
_complexContent
== null ? 0 :
_complexContent
.VisualChildren.Count; }
1150
if (
_complexContent
== null)
1154
return
_complexContent
.VisualChildren[index];
1180
Invariant.Assert(
_complexContent
!= null);
1238
_complexContent
?.TextView.Invalidate();
1380
_complexContent
?.VisualChildren.Clear();
1436
line.Arrange(
_complexContent
.VisualChildren, lineOffset);
1458
if (
_complexContent
!= null)
1739
if (
_complexContent
== null || !(
_complexContent
.TextContainer is TextContainer))
1768
int startOffset =
_complexContent
.TextContainer.Start.GetOffsetToPosition(start);
1769
int endOffset =
_complexContent
.TextContainer.Start.GetOffsetToPosition(end);
1850
if (
_complexContent
== null || !(
_complexContent
.TextContainer is TextContainer))
1858
TextSegment textSegment = new TextSegment(
_complexContent
.TextContainer.Start,
_complexContent
.TextContainer.End);
1902
_complexContent
?.VisualChildren.Remove(child);
1919
if (
_complexContent
!= null)
1921
_complexContent
.Detach(this);
1946
Debug.Assert(
_complexContent
!= null, "Inline objects are supported only in complex content.");
1999
if (
_complexContent
!= null)
2001
return TextRangeBase.GetTextInternal(
_complexContent
.TextContainer.Start,
_complexContent
.TextContainer.End);
2136
pos =
_complexContent
.TextContainer.Start.CreatePointer(charIndex.FirstCharacterIndex + charIndex.TrailingLength, logicalDirection);
2165
int characterIndex =
_complexContent
.TextContainer.Start.GetOffsetToPosition(orientedPosition);
2269
int dcpPositionStart =
_complexContent
.TextContainer.Start.GetOffsetToPosition(startPosition);
2270
int dcpPositionEnd =
_complexContent
.TextContainer.Start.GetOffsetToPosition(endPosition);
2279
ITextPointer endOfLineTextPointer =
_complexContent
.TextContainer.Start.CreatePointer(0);
2377
int characterIndex =
_complexContent
.TextContainer.Start.GetOffsetToPosition(position);
2443
int characterIndex =
_complexContent
.TextContainer.Start.GetOffsetToPosition(position);
2543
ITextPointer nextCaretPosition =
_complexContent
.TextContainer.Start.CreatePointer(nextCharacterHit.FirstCharacterIndex + nextCharacterHit.TrailingLength, logicalDirection);
2572
int characterIndex =
_complexContent
.TextContainer.Start.GetOffsetToPosition(position);
2631
ITextPointer backspaceCaretPosition =
_complexContent
.TextContainer.Start.CreatePointer(backspaceCharacterHit.FirstCharacterIndex + backspaceCharacterHit.TrailingLength, logicalDirection);
2682
return
_complexContent
.TextContainer;
2694
return
_complexContent
.TextView;
2706
return
_complexContent
.Highlights;
2745
return (
_complexContent
!= null);
2765
get { return
_complexContent
?.InlineObjects; }
2766
set { if (
_complexContent
!= null)
_complexContent
.InlineObjects = value; }
2802
if (IsLayoutDataValid &&
_complexContent
!= null)
2804
_complexContent
.TextView.OnUpdated();
2843
if (
_complexContent
== null)
2863
if (
_complexContent
== null)
2910
if (
_complexContent
!= null)
2912
_complexContent
.Detach(this);
2945
Debug.Assert(sender ==
_complexContent
.TextContainer, "Received text change for foreign TextContainer.");
2965
if (
_complexContent
== null)
2973
Invariant.Assert(sender ==
_complexContent
.TextContainer, "Received text change for foreign TextContainer.");
3360
if (
_complexContent
== null)
3389
return (
_complexContent
!= null) && (manager != null) && (manager.XmlWriter == null);
3485
if (textBlock.
_complexContent
== null || !(textBlock.
_complexContent
.TextContainer is TextContainer))
3491
if (textBlock.
_complexContent
.TextContainer != ((TextElement)element).TextContainer)
3630
Debug.Assert(
_complexContent
.TextContainer is TextContainer);
3637
if ((e as TextElement).TextContainer ==
_complexContent
.TextContainer)
3646
position = new TextPointer((TextPointer)
_complexContent
.TextContainer.Start);
3647
while (position.CompareTo((TextPointer)
_complexContent
.TextContainer.End) < 0)
3727
_complexContent
.TextContainer.Changing += new EventHandler(OnTextContainerChanging);
3728
_complexContent
.TextContainer.Change += new TextContainerChangeEventHandler(OnTextContainerChange);
3729
_complexContent
.Highlights.Changed += new HighlightChangedEventHandler(OnHighlightChanged);
4082
if (text.
_complexContent
== null)
4095
text.
_complexContent
.TextContainer.BeginChange();
4098
((TextContainer)text.
_complexContent
.TextContainer).DeleteContentInternal((TextPointer)text.
_complexContent
.TextContainer.Start, (TextPointer)text.
_complexContent
.TextContainer.End);
4099
InsertTextRun(text.
_complexContent
.TextContainer.End, newText, /*whitespacesIgnorable:*/true);
4104
text.
_complexContent
.TextContainer.EndChange();