1 write to TextContainer
PresentationFramework (1)
System\Windows\Controls\TextBlock.cs (1)
3906
TextContainer
= textContainer;
50 references to TextContainer
PresentationFramework (50)
System\Windows\Controls\TextBlock.cs (50)
125
if (!(_complexContent.
TextContainer
is TextContainer))
132
Type parentType = _complexContent.
TextContainer
.Parent.GetType();
152
TextContainer textContainer = (TextContainer)_complexContent.
TextContainer
;
182
TextContainer textContainer = (TextContainer)_complexContent.
TextContainer
;
278
return _complexContent.
TextContainer
;
283
return _complexContent.
TextContainer
as TextContainer;
401
position = snapToText ? new TextPointer((TextPointer)_complexContent.
TextContainer
.Start) : null;
444
return (TextPointer)_complexContent.
TextContainer
.Start;
461
return (TextPointer)_complexContent.
TextContainer
.End;
1738
if (_complexContent == null || !(_complexContent.
TextContainer
is TextContainer))
1767
int startOffset = _complexContent.
TextContainer
.Start.GetOffsetToPosition(start);
1768
int endOffset = _complexContent.
TextContainer
.Start.GetOffsetToPosition(end);
1849
if (_complexContent == null || !(_complexContent.
TextContainer
is TextContainer))
1857
TextSegment textSegment = new TextSegment(_complexContent.
TextContainer
.Start, _complexContent.
TextContainer
.End);
2000
return TextRangeBase.GetTextInternal(_complexContent.
TextContainer
.Start, _complexContent.
TextContainer
.End);
2135
pos = _complexContent.
TextContainer
.Start.CreatePointer(charIndex.FirstCharacterIndex + charIndex.TrailingLength, logicalDirection);
2164
int characterIndex = _complexContent.
TextContainer
.Start.GetOffsetToPosition(orientedPosition);
2268
int dcpPositionStart = _complexContent.
TextContainer
.Start.GetOffsetToPosition(startPosition);
2269
int dcpPositionEnd = _complexContent.
TextContainer
.Start.GetOffsetToPosition(endPosition);
2278
ITextPointer endOfLineTextPointer = _complexContent.
TextContainer
.Start.CreatePointer(0);
2376
int characterIndex = _complexContent.
TextContainer
.Start.GetOffsetToPosition(position);
2442
int characterIndex = _complexContent.
TextContainer
.Start.GetOffsetToPosition(position);
2542
ITextPointer nextCaretPosition = _complexContent.
TextContainer
.Start.CreatePointer(nextCharacterHit.FirstCharacterIndex + nextCharacterHit.TrailingLength, logicalDirection);
2571
int characterIndex = _complexContent.
TextContainer
.Start.GetOffsetToPosition(position);
2630
ITextPointer backspaceCaretPosition = _complexContent.
TextContainer
.Start.CreatePointer(backspaceCharacterHit.FirstCharacterIndex + backspaceCharacterHit.TrailingLength, logicalDirection);
2681
return _complexContent.
TextContainer
;
2944
Debug.Assert(sender == _complexContent.
TextContainer
, "Received text change for foreign TextContainer.");
2972
Invariant.Assert(sender == _complexContent.
TextContainer
, "Received text change for foreign TextContainer.");
3484
if (textBlock._complexContent == null || !(textBlock._complexContent.
TextContainer
is TextContainer))
3490
if (textBlock._complexContent.
TextContainer
!= ((TextElement)element).TextContainer)
3629
Debug.Assert(_complexContent.
TextContainer
is TextContainer);
3636
if ((e as TextElement).TextContainer == _complexContent.
TextContainer
)
3645
position = new TextPointer((TextPointer)_complexContent.
TextContainer
.Start);
3646
while (position.CompareTo((TextPointer)_complexContent.
TextContainer
.End) < 0)
3726
_complexContent.
TextContainer
.Changing += new EventHandler(OnTextContainerChanging);
3727
_complexContent.
TextContainer
.Change += new TextContainerChangeEventHandler(OnTextContainerChange);
3912
TextBlock.InsertTextRun(this.
TextContainer
.End, content, /*whitespacesIgnorable:*/false);
3916
this.TextView = new TextParagraphView(owner,
TextContainer
);
3919
this.
TextContainer
.TextView = this.TextView;
3928
this.
TextContainer
.Changing -= new EventHandler(owner.OnTextContainerChanging);
3929
this.
TextContainer
.Change -= new TextContainerChangeEventHandler(owner.OnTextContainerChange);
3940
internal Highlights Highlights { get { return this.
TextContainer
.Highlights; } }
4094
text._complexContent.
TextContainer
.BeginChange();
4097
((TextContainer)text._complexContent.
TextContainer
).DeleteContentInternal((TextPointer)text._complexContent.
TextContainer
.Start, (TextPointer)text._complexContent.
TextContainer
.End);
4098
InsertTextRun(text._complexContent.
TextContainer
.End, newText, /*whitespacesIgnorable:*/true);
4103
text._complexContent.
TextContainer
.EndChange();