1 write to TextContainer
PresentationFramework (1)
System\Windows\Controls\TextBlock.cs (1)
3916
TextContainer
= textContainer;
50 references to TextContainer
PresentationFramework (50)
System\Windows\Controls\TextBlock.cs (50)
128
if (!(_complexContent.
TextContainer
is TextContainer))
135
Type parentType = _complexContent.
TextContainer
.Parent.GetType();
155
TextContainer textContainer = (TextContainer)_complexContent.
TextContainer
;
185
TextContainer textContainer = (TextContainer)_complexContent.
TextContainer
;
281
return _complexContent.
TextContainer
;
286
return _complexContent.
TextContainer
as TextContainer;
404
position = snapToText ? new TextPointer((TextPointer)_complexContent.
TextContainer
.Start) : null;
447
return (TextPointer)_complexContent.
TextContainer
.Start;
464
return (TextPointer)_complexContent.
TextContainer
.End;
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);
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
;
2956
Debug.Assert(sender == _complexContent.
TextContainer
, "Received text change for foreign TextContainer.");
2984
Invariant.Assert(sender == _complexContent.
TextContainer
, "Received text change for foreign TextContainer.");
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);
3922
TextBlock.InsertTextRun(this.
TextContainer
.End, content, /*whitespacesIgnorable:*/false);
3926
this.TextView = new TextParagraphView(owner,
TextContainer
);
3929
this.
TextContainer
.TextView = this.TextView;
3938
this.
TextContainer
.Changing -= new EventHandler(owner.OnTextContainerChanging);
3939
this.
TextContainer
.Change -= new TextContainerChangeEventHandler(owner.OnTextContainerChange);
3950
internal Highlights Highlights { get { return this.
TextContainer
.Highlights; } }
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();