1 write to TextContainer
PresentationFramework (1)
src\Framework\System\Windows\Controls\TextBlock.cs (1)
3915
TextContainer
= textContainer;
50 references to TextContainer
PresentationFramework (50)
src\Framework\System\Windows\Controls\TextBlock.cs (50)
147
if (!(_complexContent.
TextContainer
is TextContainer))
154
Type parentType = _complexContent.
TextContainer
.Parent.GetType();
174
TextContainer textContainer = (TextContainer)_complexContent.
TextContainer
;
207
TextContainer textContainer = (TextContainer)_complexContent.
TextContainer
;
306
return _complexContent.
TextContainer
;
311
return _complexContent.
TextContainer
as TextContainer;
432
position = snapToText ? new TextPointer((TextPointer)_complexContent.
TextContainer
.Start) : null;
475
return (TextPointer)_complexContent.
TextContainer
.Start;
492
return (TextPointer)_complexContent.
TextContainer
.End;
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);
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
;
3055
Debug.Assert(sender == _complexContent.
TextContainer
, "Received text change for foreign TextContainer.");
3083
Invariant.Assert(sender == _complexContent.
TextContainer
, "Received text change for foreign TextContainer.");
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);
3921
TextBlock.InsertTextRun(this.
TextContainer
.End, content, /*whitespacesIgnorable:*/false);
3925
this.TextView = new TextParagraphView(owner,
TextContainer
);
3928
this.
TextContainer
.TextView = this.TextView;
3937
this.
TextContainer
.Changing -= new EventHandler(owner.OnTextContainerChanging);
3938
this.
TextContainer
.Change -= new TextContainerChangeEventHandler(owner.OnTextContainerChange);
3949
internal Highlights Highlights { get { return this.
TextContainer
.Highlights; } }
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();