MS\Internal\Documents\TextContainerHelper.cs (10)
22internal TextContentRange(int cpFirst, int cpLast, ITextContainer textContainer)
286private ITextContainer _textContainer;
503ITextContainer textContainer = textElement.TextContainer;
516ITextContainer textContainer = textElement.TextContainer;
534internal static ITextPointer GetContentStart(ITextContainer textContainer, DependencyObject element)
556internal static int GetElementLength(ITextContainer textContainer, DependencyObject element)
583internal static ITextPointer GetTextPointerFromCP(ITextContainer textContainer, int cp, LogicalDirection direction)
591internal static StaticTextPointer GetStaticTextPointerFromCP(ITextContainer textContainer, int cp)
622internal static int GetCPFromElement(ITextContainer textContainer, DependencyObject element, ElementEdge edge)
676internal static int GetCchFromElement(ITextContainer textContainer, DependencyObject element)
System\Windows\Controls\PasswordTextContainer.cs (36)
180void ITextContainer.BeginChange()
186/// <see cref="System.Windows.Documents.ITextContainer.BeginChangeNoUndo"/>
188void ITextContainer.BeginChangeNoUndo()
191((ITextContainer)this).BeginChange();
196void ITextContainer.EndChange()
203void ITextContainer.EndChange(bool skipEvents)
211ITextPointer ITextContainer.CreatePointerAtOffset(int offset, LogicalDirection direction)
217ITextPointer ITextContainer.CreatePointerAtCharOffset(int charOffset, LogicalDirection direction)
219return ((ITextContainer)this).CreatePointerAtOffset(charOffset, direction);
222ITextPointer ITextContainer.CreateDynamicTextPointer(StaticTextPointer position, LogicalDirection direction)
227StaticTextPointer ITextContainer.CreateStaticPointerAtOffset(int offset)
229return new StaticTextPointer(this, ((ITextContainer)this).CreatePointerAtOffset(offset, LogicalDirection.Forward));
232TextPointerContext ITextContainer.GetPointerContext(StaticTextPointer pointer, LogicalDirection direction)
237int ITextContainer.GetOffsetToPosition(StaticTextPointer position1, StaticTextPointer position2)
242int ITextContainer.GetTextInRun(StaticTextPointer position, LogicalDirection direction, char[] textBuffer, int startIndex, int count)
247object ITextContainer.GetAdjacentElement(StaticTextPointer position, LogicalDirection direction)
252DependencyObject ITextContainer.GetParent(StaticTextPointer position)
257StaticTextPointer ITextContainer.CreatePointer(StaticTextPointer position, int offset)
262StaticTextPointer ITextContainer.GetNextContextPosition(StaticTextPointer position, LogicalDirection direction)
267int ITextContainer.CompareTo(StaticTextPointer position1, StaticTextPointer position2)
272int ITextContainer.CompareTo(StaticTextPointer position1, ITextPointer position2)
277object ITextContainer.GetValue(StaticTextPointer position, DependencyProperty formattingProperty)
349bool ITextContainer.IsReadOnly
363ITextPointer ITextContainer.Start
377ITextPointer ITextContainer.End
388uint ITextContainer.Generation
403Highlights ITextContainer.Highlights
423DependencyObject ITextContainer.Parent
434ITextSelection ITextContainer.TextSelection
448UndoManager ITextContainer.UndoManager
457ITextView ITextContainer.TextView
486int ITextContainer.SymbolCount
495int ITextContainer.IMECharCount
591event EventHandler ITextContainer.Changing
597event TextContainerChangeEventHandler ITextContainer.Change
603event TextContainerChangedEventHandler ITextContainer.Changed
System\Windows\Documents\DocumentSequenceTextContainer.cs (40)
46void ITextContainer.BeginChange()
55/// <see cref="System.Windows.Documents.ITextContainer.BeginChangeNoUndo"/>
57void ITextContainer.BeginChangeNoUndo()
60((ITextContainer)this).BeginChange();
63void ITextContainer.EndChange()
65((ITextContainer)this).EndChange(false /* skipEvents */);
70void ITextContainer.EndChange(bool skipEvents)
94ITextPointer ITextContainer.CreatePointerAtOffset(int offset, LogicalDirection direction)
96return ((ITextContainer)this).Start.CreatePointer(offset, direction);
100ITextPointer ITextContainer.CreatePointerAtCharOffset(int charOffset, LogicalDirection direction)
105ITextPointer ITextContainer.CreateDynamicTextPointer(StaticTextPointer position, LogicalDirection direction)
110StaticTextPointer ITextContainer.CreateStaticPointerAtOffset(int offset)
112return new StaticTextPointer(this, ((ITextContainer)this).CreatePointerAtOffset(offset, LogicalDirection.Forward));
115TextPointerContext ITextContainer.GetPointerContext(StaticTextPointer pointer, LogicalDirection direction)
120int ITextContainer.GetOffsetToPosition(StaticTextPointer position1, StaticTextPointer position2)
125int ITextContainer.GetTextInRun(StaticTextPointer position, LogicalDirection direction, char[] textBuffer, int startIndex, int count)
130object ITextContainer.GetAdjacentElement(StaticTextPointer position, LogicalDirection direction)
135DependencyObject ITextContainer.GetParent(StaticTextPointer position)
140StaticTextPointer ITextContainer.CreatePointer(StaticTextPointer position, int offset)
145StaticTextPointer ITextContainer.GetNextContextPosition(StaticTextPointer position, LogicalDirection direction)
150int ITextContainer.CompareTo(StaticTextPointer position1, StaticTextPointer position2)
155int ITextContainer.CompareTo(StaticTextPointer position1, ITextPointer position2)
160object ITextContainer.GetValue(StaticTextPointer position, DependencyProperty formattingProperty)
201bool ITextContainer.IsReadOnly
212ITextPointer ITextContainer.Start
225ITextPointer ITextContainer.End
237uint ITextContainer.Generation
249Highlights ITextContainer.Highlights
260DependencyObject ITextContainer.Parent
267ITextSelection ITextContainer.TextSelection
274UndoManager ITextContainer.UndoManager { get { return null; } }
277ITextView ITextContainer.TextView
292int ITextContainer.SymbolCount
296return ((ITextContainer)this).Start.GetOffsetToPosition(((ITextContainer)this).End);
301int ITextContainer.IMECharCount
538ITextContainer textContainer = (ITextContainer)this;
625ITextContainer container = newBlock.ChildContainer;
655highlightTransitionPosition = ((ITextContainer)this).CreateStaticPointerAtOffset(0);
System\Windows\Documents\FixedTextContainer.cs (38)
50void ITextContainer.BeginChange()
55/// <see cref="System.Windows.Documents.ITextContainer.BeginChangeNoUndo"/>
57void ITextContainer.BeginChangeNoUndo()
60((ITextContainer)this).BeginChange();
65void ITextContainer.EndChange()
67((ITextContainer)this).EndChange(false /* skipEvents */);
72void ITextContainer.EndChange(bool skipEvents)
79ITextPointer ITextContainer.CreatePointerAtOffset(int offset, LogicalDirection direction)
81return ((ITextContainer)this).Start.CreatePointer(offset, direction);
85ITextPointer ITextContainer.CreatePointerAtCharOffset(int charOffset, LogicalDirection direction)
90ITextPointer ITextContainer.CreateDynamicTextPointer(StaticTextPointer position, LogicalDirection direction)
95StaticTextPointer ITextContainer.CreateStaticPointerAtOffset(int offset)
97return new StaticTextPointer(this, ((ITextContainer)this).CreatePointerAtOffset(offset, LogicalDirection.Forward));
100TextPointerContext ITextContainer.GetPointerContext(StaticTextPointer pointer, LogicalDirection direction)
105int ITextContainer.GetOffsetToPosition(StaticTextPointer position1, StaticTextPointer position2)
110int ITextContainer.GetTextInRun(StaticTextPointer position, LogicalDirection direction, char[] textBuffer, int startIndex, int count)
115object ITextContainer.GetAdjacentElement(StaticTextPointer position, LogicalDirection direction)
120DependencyObject ITextContainer.GetParent(StaticTextPointer position)
125StaticTextPointer ITextContainer.CreatePointer(StaticTextPointer position, int offset)
130StaticTextPointer ITextContainer.GetNextContextPosition(StaticTextPointer position, LogicalDirection direction)
135int ITextContainer.CompareTo(StaticTextPointer position1, StaticTextPointer position2)
140int ITextContainer.CompareTo(StaticTextPointer position1, ITextPointer position2)
145object ITextContainer.GetValue(StaticTextPointer position, DependencyProperty formattingProperty)
170bool ITextContainer.IsReadOnly
181ITextPointer ITextContainer.Start
194ITextPointer ITextContainer.End
206uint ITextContainer.Generation
218Highlights ITextContainer.Highlights
229DependencyObject ITextContainer.Parent
236ITextSelection ITextContainer.TextSelection
243UndoManager ITextContainer.UndoManager { get { return null; } }
246ITextView ITextContainer.TextView
261int ITextContainer.SymbolCount
265return ((ITextContainer)this).Start.GetOffsetToPosition(((ITextContainer)this).End);
270int ITextContainer.IMECharCount
334if (fixedTextPointer.CompareTo(((ITextContainer)this).Start) == 0)
338else if (fixedTextPointer.CompareTo(((ITextContainer)this).End) == 0)
System\Windows\Documents\NullTextContainer.cs (39)
50void ITextContainer.BeginChange()
55/// <see cref="System.Windows.Documents.ITextContainer.BeginChangeNoUndo"/>
57void ITextContainer.BeginChangeNoUndo()
60((ITextContainer)this).BeginChange();
65void ITextContainer.EndChange()
67((ITextContainer)this).EndChange(false /* skipEvents */);
72void ITextContainer.EndChange(bool skipEvents)
79ITextPointer ITextContainer.CreatePointerAtOffset(int offset, LogicalDirection direction)
81return ((ITextContainer)this).Start.CreatePointer(offset, direction);
85ITextPointer ITextContainer.CreatePointerAtCharOffset(int charOffset, LogicalDirection direction)
90ITextPointer ITextContainer.CreateDynamicTextPointer(StaticTextPointer position, LogicalDirection direction)
95StaticTextPointer ITextContainer.CreateStaticPointerAtOffset(int offset)
97return new StaticTextPointer(this, ((ITextContainer)this).CreatePointerAtOffset(offset, LogicalDirection.Forward));
100TextPointerContext ITextContainer.GetPointerContext(StaticTextPointer pointer, LogicalDirection direction)
105int ITextContainer.GetOffsetToPosition(StaticTextPointer position1, StaticTextPointer position2)
110int ITextContainer.GetTextInRun(StaticTextPointer position, LogicalDirection direction, char[] textBuffer, int startIndex, int count)
115object ITextContainer.GetAdjacentElement(StaticTextPointer position, LogicalDirection direction)
120DependencyObject ITextContainer.GetParent(StaticTextPointer position)
125StaticTextPointer ITextContainer.CreatePointer(StaticTextPointer position, int offset)
130StaticTextPointer ITextContainer.GetNextContextPosition(StaticTextPointer position, LogicalDirection direction)
135int ITextContainer.CompareTo(StaticTextPointer position1, StaticTextPointer position2)
140int ITextContainer.CompareTo(StaticTextPointer position1, ITextPointer position2)
145object ITextContainer.GetValue(StaticTextPointer position, DependencyProperty formattingProperty)
161/// <see cref="ITextContainer.IsReadOnly" />
163bool ITextContainer.IsReadOnly
172/// <see cref="ITextContainer.Start"/>
174ITextPointer ITextContainer.Start
185/// <see cref="ITextContainer.End"/>
187ITextPointer ITextContainer.End
199uint ITextContainer.Generation
211Highlights ITextContainer.Highlights
222/// <see cref="ITextContainer.Parent"/>
224DependencyObject ITextContainer.Parent
230ITextSelection ITextContainer.TextSelection
237UndoManager ITextContainer.UndoManager { get { return null; } }
240/// <see cref="ITextContainer"/>
242ITextView ITextContainer.TextView
257int ITextContainer.SymbolCount
266int ITextContainer.IMECharCount
System\Windows\Documents\TextContainer.cs (33)
401void ITextContainer.BeginChange()
406void ITextContainer.BeginChangeNoUndo()
413void ITextContainer.EndChange()
420void ITextContainer.EndChange(bool skipEvents)
428ITextPointer ITextContainer.CreatePointerAtOffset(int offset, LogicalDirection direction)
445ITextPointer ITextContainer.CreatePointerAtCharOffset(int charOffset, LogicalDirection direction)
472ITextPointer ITextContainer.CreateDynamicTextPointer(StaticTextPointer position, LogicalDirection direction)
494StaticTextPointer ITextContainer.CreateStaticPointerAtOffset(int offset)
499TextPointerContext ITextContainer.GetPointerContext(StaticTextPointer pointer, LogicalDirection direction)
544int ITextContainer.GetOffsetToPosition(StaticTextPointer position1, StaticTextPointer position2)
549int ITextContainer.GetTextInRun(StaticTextPointer position, LogicalDirection direction, char[] textBuffer, int startIndex, int count)
565object ITextContainer.GetAdjacentElement(StaticTextPointer position, LogicalDirection direction)
601DependencyObject ITextContainer.GetParent(StaticTextPointer position)
606StaticTextPointer ITextContainer.CreatePointer(StaticTextPointer position, int offset)
609return ((ITextContainer)this).CreateStaticPointerAtOffset(positionOffset + offset);
612StaticTextPointer ITextContainer.GetNextContextPosition(StaticTextPointer position, LogicalDirection direction)
667int ITextContainer.CompareTo(StaticTextPointer position1, StaticTextPointer position2)
692int ITextContainer.CompareTo(StaticTextPointer position1, ITextPointer position2)
717object ITextContainer.GetValue(StaticTextPointer position, DependencyProperty formattingProperty)
1689bool ITextContainer.IsReadOnly
1697ITextPointer ITextContainer.Start
1705ITextPointer ITextContainer.End
1715uint ITextContainer.Generation
1723Highlights ITextContainer.Highlights
1731DependencyObject ITextContainer.Parent
1741ITextSelection ITextContainer.TextSelection
1755UndoManager ITextContainer.UndoManager
1764ITextView ITextContainer.TextView
1793int ITextContainer.SymbolCount
1833int ITextContainer.IMECharCount
2004event EventHandler ITextContainer.Changing
2010event TextContainerChangeEventHandler ITextContainer.Change
2016event TextContainerChangedEventHandler ITextContainer.Changed