4 writes to _complexContent
PresentationFramework (4)
System\Windows\Controls\TextBlock.cs (4)
1943
_complexContent
= null;
1949
_complexContent
= null;
2891
_complexContent
= new ComplexContent(this, textContainer, false, Text);
2934
_complexContent
= null;
89 references to _complexContent
PresentationFramework (89)
System\Windows\Controls\TextBlock.cs (89)
138
if (!(
_complexContent
.TextContainer is TextContainer))
145
Type parentType =
_complexContent
.TextContainer.Parent.GetType();
165
TextContainer textContainer = (TextContainer)
_complexContent
.TextContainer;
189
if (
_complexContent
== null)
195
TextContainer textContainer = (TextContainer)
_complexContent
.TextContainer;
237
else if (
_complexContent
== null)
243
if (!
_complexContent
.ForeignTextContainer)
286
return
_complexContent
.TextView;
291
return
_complexContent
.TextContainer;
296
return
_complexContent
.TextContainer as TextContainer;
408
if (((ITextView)
_complexContent
.TextView).Validate(point))
410
position = (TextPointer)
_complexContent
.TextView.GetTextPositionFromPoint(point, snapToText);
414
position = snapToText ? new TextPointer((TextPointer)
_complexContent
.TextContainer.Start) : null;
457
return (TextPointer)
_complexContent
.TextContainer.Start;
474
return (TextPointer)
_complexContent
.TextContainer.End;
609
if (textblock.
_complexContent
!= null &&
1148
get { return
_complexContent
== null ? 0 :
_complexContent
.VisualChildren.Count; }
1162
if (
_complexContent
== null)
1166
return
_complexContent
.VisualChildren[index];
1192
Invariant.Assert(
_complexContent
!= null);
1250
if (
_complexContent
!= null)
1252
_complexContent
.TextView.Invalidate();
1395
if (
_complexContent
!= null)
1397
_complexContent
.VisualChildren.Clear();
1454
line.Arrange(
_complexContent
.VisualChildren, lineOffset);
1476
if (
_complexContent
!= null)
1757
if (
_complexContent
== null || !(
_complexContent
.TextContainer is TextContainer))
1786
int startOffset =
_complexContent
.TextContainer.Start.GetOffsetToPosition(start);
1787
int endOffset =
_complexContent
.TextContainer.Start.GetOffsetToPosition(end);
1868
if (
_complexContent
== null || !(
_complexContent
.TextContainer is TextContainer))
1876
TextSegment textSegment = new TextSegment(
_complexContent
.TextContainer.Start,
_complexContent
.TextContainer.End);
1920
if (
_complexContent
!= null)
1922
_complexContent
.VisualChildren.Remove(child);
1940
if (
_complexContent
!= null)
1942
_complexContent
.Detach(this);
1967
Debug.Assert(
_complexContent
!= null, "Inline objects are supported only in complex content.");
2020
if (
_complexContent
!= null)
2022
return TextRangeBase.GetTextInternal(
_complexContent
.TextContainer.Start,
_complexContent
.TextContainer.End);
2157
pos =
_complexContent
.TextContainer.Start.CreatePointer(charIndex.FirstCharacterIndex + charIndex.TrailingLength, logicalDirection);
2186
int characterIndex =
_complexContent
.TextContainer.Start.GetOffsetToPosition(orientedPosition);
2290
int dcpPositionStart =
_complexContent
.TextContainer.Start.GetOffsetToPosition(startPosition);
2291
int dcpPositionEnd =
_complexContent
.TextContainer.Start.GetOffsetToPosition(endPosition);
2300
ITextPointer endOfLineTextPointer =
_complexContent
.TextContainer.Start.CreatePointer(0);
2398
int characterIndex =
_complexContent
.TextContainer.Start.GetOffsetToPosition(position);
2464
int characterIndex =
_complexContent
.TextContainer.Start.GetOffsetToPosition(position);
2564
ITextPointer nextCaretPosition =
_complexContent
.TextContainer.Start.CreatePointer(nextCharacterHit.FirstCharacterIndex + nextCharacterHit.TrailingLength, logicalDirection);
2593
int characterIndex =
_complexContent
.TextContainer.Start.GetOffsetToPosition(position);
2652
ITextPointer backspaceCaretPosition =
_complexContent
.TextContainer.Start.CreatePointer(backspaceCharacterHit.FirstCharacterIndex + backspaceCharacterHit.TrailingLength, logicalDirection);
2703
return
_complexContent
.TextContainer;
2715
return
_complexContent
.TextView;
2727
return
_complexContent
.Highlights;
2766
return (
_complexContent
!= null);
2786
get { return (
_complexContent
== null) ? null :
_complexContent
.InlineObjects; }
2787
set { if (
_complexContent
!= null)
_complexContent
.InlineObjects = value; }
2823
if (IsLayoutDataValid &&
_complexContent
!= null)
2825
_complexContent
.TextView.OnUpdated();
2864
if (
_complexContent
== null)
2884
if (
_complexContent
== null)
2931
if (
_complexContent
!= null)
2933
_complexContent
.Detach(this);
2966
Debug.Assert(sender ==
_complexContent
.TextContainer, "Received text change for foreign TextContainer.");
2986
if (
_complexContent
== null)
2994
Invariant.Assert(sender ==
_complexContent
.TextContainer, "Received text change for foreign TextContainer.");
3379
if (
_complexContent
== null)
3408
return (
_complexContent
!= null) && (manager != null) && (manager.XmlWriter == null);
3504
if (textBlock.
_complexContent
== null || !(textBlock.
_complexContent
.TextContainer is TextContainer))
3510
if (textBlock.
_complexContent
.TextContainer != ((TextElement)element).TextContainer)
3649
Debug.Assert(
_complexContent
.TextContainer is TextContainer);
3656
if ((e as TextElement).TextContainer ==
_complexContent
.TextContainer)
3665
position = new TextPointer((TextPointer)
_complexContent
.TextContainer.Start);
3666
while (position.CompareTo((TextPointer)
_complexContent
.TextContainer.End) < 0)
3746
_complexContent
.TextContainer.Changing += new EventHandler(OnTextContainerChanging);
3747
_complexContent
.TextContainer.Change += new TextContainerChangeEventHandler(OnTextContainerChange);
3748
_complexContent
.Highlights.Changed += new HighlightChangedEventHandler(OnHighlightChanged);
4101
if (text.
_complexContent
== null)
4114
text.
_complexContent
.TextContainer.BeginChange();
4117
((TextContainer)text.
_complexContent
.TextContainer).DeleteContentInternal((TextPointer)text.
_complexContent
.TextContainer.Start, (TextPointer)text.
_complexContent
.TextContainer.End);
4118
InsertTextRun(text.
_complexContent
.TextContainer.End, newText, /*whitespacesIgnorable:*/true);
4123
text.
_complexContent
.TextContainer.EndChange();