1 write to TextContainer
PresentationFramework (1)
System\Windows\Controls\TextBlock.cs (1)
3907
TextContainer
= textContainer;
50 references to TextContainer
PresentationFramework (50)
System\Windows\Controls\TextBlock.cs (50)
126
if (!(_complexContent.
TextContainer
is TextContainer))
133
Type parentType = _complexContent.
TextContainer
.Parent.GetType();
153
TextContainer textContainer = (TextContainer)_complexContent.
TextContainer
;
183
TextContainer textContainer = (TextContainer)_complexContent.
TextContainer
;
279
return _complexContent.
TextContainer
;
284
return _complexContent.
TextContainer
as TextContainer;
402
position = snapToText ? new TextPointer((TextPointer)_complexContent.
TextContainer
.Start) : null;
445
return (TextPointer)_complexContent.
TextContainer
.Start;
462
return (TextPointer)_complexContent.
TextContainer
.End;
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);
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
;
2945
Debug.Assert(sender == _complexContent.
TextContainer
, "Received text change for foreign TextContainer.");
2973
Invariant.Assert(sender == _complexContent.
TextContainer
, "Received text change for foreign TextContainer.");
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);
3913
TextBlock.InsertTextRun(this.
TextContainer
.End, content, /*whitespacesIgnorable:*/false);
3917
this.TextView = new TextParagraphView(owner,
TextContainer
);
3920
this.
TextContainer
.TextView = this.TextView;
3929
this.
TextContainer
.Changing -= new EventHandler(owner.OnTextContainerChanging);
3930
this.
TextContainer
.Change -= new TextContainerChangeEventHandler(owner.OnTextContainerChange);
3941
internal Highlights Highlights { get { return this.
TextContainer
.Highlights; } }
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();