4 writes to _complexContent
PresentationFramework (4)
System\Windows\Controls\TextBlock.cs (4)
1933
_complexContent
= null;
1939
_complexContent
= null;
2881
_complexContent
= new ComplexContent(this, textContainer, false, Text);
2924
_complexContent
= null;
89 references to _complexContent
PresentationFramework (89)
System\Windows\Controls\TextBlock.cs (89)
128
if (!(
_complexContent
.TextContainer is TextContainer))
135
Type parentType =
_complexContent
.TextContainer.Parent.GetType();
155
TextContainer textContainer = (TextContainer)
_complexContent
.TextContainer;
179
if (
_complexContent
== null)
185
TextContainer textContainer = (TextContainer)
_complexContent
.TextContainer;
227
else if (
_complexContent
== null)
233
if (!
_complexContent
.ForeignTextContainer)
276
return
_complexContent
.TextView;
281
return
_complexContent
.TextContainer;
286
return
_complexContent
.TextContainer as TextContainer;
398
if (((ITextView)
_complexContent
.TextView).Validate(point))
400
position = (TextPointer)
_complexContent
.TextView.GetTextPositionFromPoint(point, snapToText);
404
position = snapToText ? new TextPointer((TextPointer)
_complexContent
.TextContainer.Start) : null;
447
return (TextPointer)
_complexContent
.TextContainer.Start;
464
return (TextPointer)
_complexContent
.TextContainer.End;
599
if (textblock.
_complexContent
!= null &&
1138
get { return
_complexContent
== null ? 0 :
_complexContent
.VisualChildren.Count; }
1152
if (
_complexContent
== null)
1156
return
_complexContent
.VisualChildren[index];
1182
Invariant.Assert(
_complexContent
!= null);
1240
if (
_complexContent
!= null)
1242
_complexContent
.TextView.Invalidate();
1385
if (
_complexContent
!= null)
1387
_complexContent
.VisualChildren.Clear();
1444
line.Arrange(
_complexContent
.VisualChildren, lineOffset);
1466
if (
_complexContent
!= null)
1747
if (
_complexContent
== null || !(
_complexContent
.TextContainer is TextContainer))
1776
int startOffset =
_complexContent
.TextContainer.Start.GetOffsetToPosition(start);
1777
int endOffset =
_complexContent
.TextContainer.Start.GetOffsetToPosition(end);
1858
if (
_complexContent
== null || !(
_complexContent
.TextContainer is TextContainer))
1866
TextSegment textSegment = new TextSegment(
_complexContent
.TextContainer.Start,
_complexContent
.TextContainer.End);
1910
if (
_complexContent
!= null)
1912
_complexContent
.VisualChildren.Remove(child);
1930
if (
_complexContent
!= null)
1932
_complexContent
.Detach(this);
1957
Debug.Assert(
_complexContent
!= null, "Inline objects are supported only in complex content.");
2010
if (
_complexContent
!= null)
2012
return TextRangeBase.GetTextInternal(
_complexContent
.TextContainer.Start,
_complexContent
.TextContainer.End);
2147
pos =
_complexContent
.TextContainer.Start.CreatePointer(charIndex.FirstCharacterIndex + charIndex.TrailingLength, logicalDirection);
2176
int characterIndex =
_complexContent
.TextContainer.Start.GetOffsetToPosition(orientedPosition);
2280
int dcpPositionStart =
_complexContent
.TextContainer.Start.GetOffsetToPosition(startPosition);
2281
int dcpPositionEnd =
_complexContent
.TextContainer.Start.GetOffsetToPosition(endPosition);
2290
ITextPointer endOfLineTextPointer =
_complexContent
.TextContainer.Start.CreatePointer(0);
2388
int characterIndex =
_complexContent
.TextContainer.Start.GetOffsetToPosition(position);
2454
int characterIndex =
_complexContent
.TextContainer.Start.GetOffsetToPosition(position);
2554
ITextPointer nextCaretPosition =
_complexContent
.TextContainer.Start.CreatePointer(nextCharacterHit.FirstCharacterIndex + nextCharacterHit.TrailingLength, logicalDirection);
2583
int characterIndex =
_complexContent
.TextContainer.Start.GetOffsetToPosition(position);
2642
ITextPointer backspaceCaretPosition =
_complexContent
.TextContainer.Start.CreatePointer(backspaceCharacterHit.FirstCharacterIndex + backspaceCharacterHit.TrailingLength, logicalDirection);
2693
return
_complexContent
.TextContainer;
2705
return
_complexContent
.TextView;
2717
return
_complexContent
.Highlights;
2756
return (
_complexContent
!= null);
2776
get { return (
_complexContent
== null) ? null :
_complexContent
.InlineObjects; }
2777
set { if (
_complexContent
!= null)
_complexContent
.InlineObjects = value; }
2813
if (IsLayoutDataValid &&
_complexContent
!= null)
2815
_complexContent
.TextView.OnUpdated();
2854
if (
_complexContent
== null)
2874
if (
_complexContent
== null)
2921
if (
_complexContent
!= null)
2923
_complexContent
.Detach(this);
2956
Debug.Assert(sender ==
_complexContent
.TextContainer, "Received text change for foreign TextContainer.");
2976
if (
_complexContent
== null)
2984
Invariant.Assert(sender ==
_complexContent
.TextContainer, "Received text change for foreign TextContainer.");
3369
if (
_complexContent
== null)
3398
return (
_complexContent
!= null) && (manager != null) && (manager.XmlWriter == null);
3494
if (textBlock.
_complexContent
== null || !(textBlock.
_complexContent
.TextContainer is TextContainer))
3500
if (textBlock.
_complexContent
.TextContainer != ((TextElement)element).TextContainer)
3639
Debug.Assert(
_complexContent
.TextContainer is TextContainer);
3646
if ((e as TextElement).TextContainer ==
_complexContent
.TextContainer)
3655
position = new TextPointer((TextPointer)
_complexContent
.TextContainer.Start);
3656
while (position.CompareTo((TextPointer)
_complexContent
.TextContainer.End) < 0)
3736
_complexContent
.TextContainer.Changing += new EventHandler(OnTextContainerChanging);
3737
_complexContent
.TextContainer.Change += new TextContainerChangeEventHandler(OnTextContainerChange);
3738
_complexContent
.Highlights.Changed += new HighlightChangedEventHandler(OnHighlightChanged);
4091
if (text.
_complexContent
== null)
4104
text.
_complexContent
.TextContainer.BeginChange();
4107
((TextContainer)text.
_complexContent
.TextContainer).DeleteContentInternal((TextPointer)text.
_complexContent
.TextContainer.Start, (TextPointer)text.
_complexContent
.TextContainer.End);
4108
InsertTextRun(text.
_complexContent
.TextContainer.End, newText, /*whitespacesIgnorable:*/true);
4113
text.
_complexContent
.TextContainer.EndChange();