1 write to TextContainer
PresentationFramework (1)
System\Windows\Controls\TextBlock.cs (1)
3926
TextContainer
= textContainer;
50 references to TextContainer
PresentationFramework (50)
System\Windows\Controls\TextBlock.cs (50)
138
if (!(_complexContent.
TextContainer
is TextContainer))
145
Type parentType = _complexContent.
TextContainer
.Parent.GetType();
165
TextContainer textContainer = (TextContainer)_complexContent.
TextContainer
;
195
TextContainer textContainer = (TextContainer)_complexContent.
TextContainer
;
291
return _complexContent.
TextContainer
;
296
return _complexContent.
TextContainer
as TextContainer;
414
position = snapToText ? new TextPointer((TextPointer)_complexContent.
TextContainer
.Start) : null;
457
return (TextPointer)_complexContent.
TextContainer
.Start;
474
return (TextPointer)_complexContent.
TextContainer
.End;
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);
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
;
2966
Debug.Assert(sender == _complexContent.
TextContainer
, "Received text change for foreign TextContainer.");
2994
Invariant.Assert(sender == _complexContent.
TextContainer
, "Received text change for foreign TextContainer.");
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);
3932
TextBlock.InsertTextRun(this.
TextContainer
.End, content, /*whitespacesIgnorable:*/false);
3936
this.TextView = new TextParagraphView(owner,
TextContainer
);
3939
this.
TextContainer
.TextView = this.TextView;
3948
this.
TextContainer
.Changing -= new EventHandler(owner.OnTextContainerChanging);
3949
this.
TextContainer
.Change -= new TextContainerChangeEventHandler(owner.OnTextContainerChange);
3960
internal Highlights Highlights { get { return this.
TextContainer
.Highlights; } }
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();