4 writes to _complexContent
PresentationFramework (4)
src\Framework\System\Windows\Controls\TextBlock.cs (4)
2031
_complexContent
= null;
2037
_complexContent
= null;
2980
_complexContent
= new ComplexContent(this, textContainer, false, Text);
3023
_complexContent
= null;
89 references to _complexContent
PresentationFramework (89)
src\Framework\System\Windows\Controls\TextBlock.cs (89)
147
if (!(
_complexContent
.TextContainer is TextContainer))
154
Type parentType =
_complexContent
.TextContainer.Parent.GetType();
174
TextContainer textContainer = (TextContainer)
_complexContent
.TextContainer;
201
if (
_complexContent
== null)
207
TextContainer textContainer = (TextContainer)
_complexContent
.TextContainer;
249
else if (
_complexContent
== null)
255
if (!
_complexContent
.ForeignTextContainer)
301
return
_complexContent
.TextView;
306
return
_complexContent
.TextContainer;
311
return
_complexContent
.TextContainer as TextContainer;
426
if (((ITextView)
_complexContent
.TextView).Validate(point))
428
position = (TextPointer)
_complexContent
.TextView.GetTextPositionFromPoint(point, snapToText);
432
position = snapToText ? new TextPointer((TextPointer)
_complexContent
.TextContainer.Start) : null;
475
return (TextPointer)
_complexContent
.TextContainer.Start;
492
return (TextPointer)
_complexContent
.TextContainer.End;
633
if (textblock.
_complexContent
!= null &&
1226
get { return
_complexContent
== null ? 0 :
_complexContent
.VisualChildren.Count; }
1240
if (
_complexContent
== null)
1244
return
_complexContent
.VisualChildren[index];
1270
Invariant.Assert(
_complexContent
!= null);
1328
if (
_complexContent
!= null)
1330
_complexContent
.TextView.Invalidate();
1473
if (
_complexContent
!= null)
1475
_complexContent
.VisualChildren.Clear();
1532
line.Arrange(
_complexContent
.VisualChildren, lineOffset);
1554
if (
_complexContent
!= null)
1845
if (
_complexContent
== null || !(
_complexContent
.TextContainer is TextContainer))
1874
int startOffset =
_complexContent
.TextContainer.Start.GetOffsetToPosition(start);
1875
int endOffset =
_complexContent
.TextContainer.Start.GetOffsetToPosition(end);
1956
if (
_complexContent
== null || !(
_complexContent
.TextContainer is TextContainer))
1964
TextSegment textSegment = new TextSegment(
_complexContent
.TextContainer.Start,
_complexContent
.TextContainer.End);
2008
if (
_complexContent
!= null)
2010
_complexContent
.VisualChildren.Remove(child);
2028
if (
_complexContent
!= null)
2030
_complexContent
.Detach(this);
2056
Debug.Assert(
_complexContent
!= null, "Inline objects are supported only in complex content.");
2109
if (
_complexContent
!= null)
2111
return TextRangeBase.GetTextInternal(
_complexContent
.TextContainer.Start,
_complexContent
.TextContainer.End);
2244
pos =
_complexContent
.TextContainer.Start.CreatePointer(charIndex.FirstCharacterIndex + charIndex.TrailingLength, logicalDirection);
2273
int characterIndex =
_complexContent
.TextContainer.Start.GetOffsetToPosition(orientedPosition);
2378
int dcpPositionStart =
_complexContent
.TextContainer.Start.GetOffsetToPosition(startPosition);
2379
int dcpPositionEnd =
_complexContent
.TextContainer.Start.GetOffsetToPosition(endPosition);
2388
ITextPointer endOfLineTextPointer =
_complexContent
.TextContainer.Start.CreatePointer(0);
2486
int characterIndex =
_complexContent
.TextContainer.Start.GetOffsetToPosition(position);
2552
int characterIndex =
_complexContent
.TextContainer.Start.GetOffsetToPosition(position);
2653
ITextPointer nextCaretPosition =
_complexContent
.TextContainer.Start.CreatePointer(nextCharacterHit.FirstCharacterIndex + nextCharacterHit.TrailingLength, logicalDirection);
2682
int characterIndex =
_complexContent
.TextContainer.Start.GetOffsetToPosition(position);
2741
ITextPointer backspaceCaretPosition =
_complexContent
.TextContainer.Start.CreatePointer(backspaceCharacterHit.FirstCharacterIndex + backspaceCharacterHit.TrailingLength, logicalDirection);
2792
return
_complexContent
.TextContainer;
2804
return
_complexContent
.TextView;
2816
return
_complexContent
.Highlights;
2855
return (
_complexContent
!= null);
2875
get { return (
_complexContent
== null) ? null :
_complexContent
.InlineObjects; }
2876
set { if (
_complexContent
!= null)
_complexContent
.InlineObjects = value; }
2912
if (IsLayoutDataValid &&
_complexContent
!= null)
2914
_complexContent
.TextView.OnUpdated();
2953
if (
_complexContent
== null)
2973
if (
_complexContent
== null)
3020
if (
_complexContent
!= null)
3022
_complexContent
.Detach(this);
3055
Debug.Assert(sender ==
_complexContent
.TextContainer, "Received text change for foreign TextContainer.");
3075
if (
_complexContent
== null)
3083
Invariant.Assert(sender ==
_complexContent
.TextContainer, "Received text change for foreign TextContainer.");
3368
if (
_complexContent
== null)
3397
return (
_complexContent
!= null) && (manager != null) && (manager.XmlWriter == null);
3493
if (textBlock.
_complexContent
== null || !(textBlock.
_complexContent
.TextContainer is TextContainer))
3499
if (textBlock.
_complexContent
.TextContainer != ((TextElement)element).TextContainer)
3638
Debug.Assert(
_complexContent
.TextContainer is TextContainer);
3645
if ((e as TextElement).TextContainer ==
_complexContent
.TextContainer)
3654
position = new TextPointer((TextPointer)
_complexContent
.TextContainer.Start);
3655
while (position.CompareTo((TextPointer)
_complexContent
.TextContainer.End) < 0)
3735
_complexContent
.TextContainer.Changing += new EventHandler(OnTextContainerChanging);
3736
_complexContent
.TextContainer.Change += new TextContainerChangeEventHandler(OnTextContainerChange);
3737
_complexContent
.Highlights.Changed += new HighlightChangedEventHandler(OnHighlightChanged);
4090
if (text.
_complexContent
== null)
4103
text.
_complexContent
.TextContainer.BeginChange();
4106
((TextContainer)text.
_complexContent
.TextContainer).DeleteContentInternal((TextPointer)text.
_complexContent
.TextContainer.Start, (TextPointer)text.
_complexContent
.TextContainer.End);
4107
InsertTextRun(text.
_complexContent
.TextContainer.End, newText, /*whitespacesIgnorable:*/true);
4112
text.
_complexContent
.TextContainer.EndChange();