MS\Internal\Documents\TextContainerHelper.cs (10)
26internal TextContentRange(int cpFirst, int cpLast, ITextContainer textContainer)
290private ITextContainer _textContainer;
507ITextContainer textContainer = textElement.TextContainer;
520ITextContainer textContainer = textElement.TextContainer;
538internal static ITextPointer GetContentStart(ITextContainer textContainer, DependencyObject element)
560internal static int GetElementLength(ITextContainer textContainer, DependencyObject element)
587internal static ITextPointer GetTextPointerFromCP(ITextContainer textContainer, int cp, LogicalDirection direction)
595internal static StaticTextPointer GetStaticTextPointerFromCP(ITextContainer textContainer, int cp)
626internal static int GetCPFromElement(ITextContainer textContainer, DependencyObject element, ElementEdge edge)
680internal static int GetCchFromElement(ITextContainer textContainer, DependencyObject element)
System\Windows\Controls\PasswordTextContainer.cs (36)
184void ITextContainer.BeginChange()
190/// <see cref="System.Windows.Documents.ITextContainer.BeginChangeNoUndo"/>
192void ITextContainer.BeginChangeNoUndo()
195((ITextContainer)this).BeginChange();
200void ITextContainer.EndChange()
207void ITextContainer.EndChange(bool skipEvents)
215ITextPointer ITextContainer.CreatePointerAtOffset(int offset, LogicalDirection direction)
221ITextPointer ITextContainer.CreatePointerAtCharOffset(int charOffset, LogicalDirection direction)
223return ((ITextContainer)this).CreatePointerAtOffset(charOffset, direction);
226ITextPointer ITextContainer.CreateDynamicTextPointer(StaticTextPointer position, LogicalDirection direction)
231StaticTextPointer ITextContainer.CreateStaticPointerAtOffset(int offset)
233return new StaticTextPointer(this, ((ITextContainer)this).CreatePointerAtOffset(offset, LogicalDirection.Forward));
236TextPointerContext ITextContainer.GetPointerContext(StaticTextPointer pointer, LogicalDirection direction)
241int ITextContainer.GetOffsetToPosition(StaticTextPointer position1, StaticTextPointer position2)
246int ITextContainer.GetTextInRun(StaticTextPointer position, LogicalDirection direction, char[] textBuffer, int startIndex, int count)
251object ITextContainer.GetAdjacentElement(StaticTextPointer position, LogicalDirection direction)
256DependencyObject ITextContainer.GetParent(StaticTextPointer position)
261StaticTextPointer ITextContainer.CreatePointer(StaticTextPointer position, int offset)
266StaticTextPointer ITextContainer.GetNextContextPosition(StaticTextPointer position, LogicalDirection direction)
271int ITextContainer.CompareTo(StaticTextPointer position1, StaticTextPointer position2)
276int ITextContainer.CompareTo(StaticTextPointer position1, ITextPointer position2)
281object ITextContainer.GetValue(StaticTextPointer position, DependencyProperty formattingProperty)
353bool ITextContainer.IsReadOnly
367ITextPointer ITextContainer.Start
381ITextPointer ITextContainer.End
392uint ITextContainer.Generation
407Highlights ITextContainer.Highlights
427DependencyObject ITextContainer.Parent
438ITextSelection ITextContainer.TextSelection
452UndoManager ITextContainer.UndoManager
461ITextView ITextContainer.TextView
490int ITextContainer.SymbolCount
499int ITextContainer.IMECharCount
595event EventHandler ITextContainer.Changing
601event TextContainerChangeEventHandler ITextContainer.Change
607event TextContainerChangedEventHandler ITextContainer.Changed
System\Windows\Documents\DocumentSequenceTextContainer.cs (40)
63void ITextContainer.BeginChange()
72/// <see cref="System.Windows.Documents.ITextContainer.BeginChangeNoUndo"/>
74void ITextContainer.BeginChangeNoUndo()
77((ITextContainer)this).BeginChange();
80void ITextContainer.EndChange()
82((ITextContainer)this).EndChange(false /* skipEvents */);
87void ITextContainer.EndChange(bool skipEvents)
111ITextPointer ITextContainer.CreatePointerAtOffset(int offset, LogicalDirection direction)
113return ((ITextContainer)this).Start.CreatePointer(offset, direction);
117ITextPointer ITextContainer.CreatePointerAtCharOffset(int charOffset, LogicalDirection direction)
122ITextPointer ITextContainer.CreateDynamicTextPointer(StaticTextPointer position, LogicalDirection direction)
127StaticTextPointer ITextContainer.CreateStaticPointerAtOffset(int offset)
129return new StaticTextPointer(this, ((ITextContainer)this).CreatePointerAtOffset(offset, LogicalDirection.Forward));
132TextPointerContext ITextContainer.GetPointerContext(StaticTextPointer pointer, LogicalDirection direction)
137int ITextContainer.GetOffsetToPosition(StaticTextPointer position1, StaticTextPointer position2)
142int ITextContainer.GetTextInRun(StaticTextPointer position, LogicalDirection direction, char[] textBuffer, int startIndex, int count)
147object ITextContainer.GetAdjacentElement(StaticTextPointer position, LogicalDirection direction)
152DependencyObject ITextContainer.GetParent(StaticTextPointer position)
157StaticTextPointer ITextContainer.CreatePointer(StaticTextPointer position, int offset)
162StaticTextPointer ITextContainer.GetNextContextPosition(StaticTextPointer position, LogicalDirection direction)
167int ITextContainer.CompareTo(StaticTextPointer position1, StaticTextPointer position2)
172int ITextContainer.CompareTo(StaticTextPointer position1, ITextPointer position2)
177object ITextContainer.GetValue(StaticTextPointer position, DependencyProperty formattingProperty)
218bool ITextContainer.IsReadOnly
229ITextPointer ITextContainer.Start
242ITextPointer ITextContainer.End
254uint ITextContainer.Generation
266Highlights ITextContainer.Highlights
277DependencyObject ITextContainer.Parent
284ITextSelection ITextContainer.TextSelection
291UndoManager ITextContainer.UndoManager { get { return null; } }
294ITextView ITextContainer.TextView
309int ITextContainer.SymbolCount
313return ((ITextContainer)this).Start.GetOffsetToPosition(((ITextContainer)this).End);
318int ITextContainer.IMECharCount
556ITextContainer textContainer = (ITextContainer)this;
643ITextContainer container = newBlock.ChildContainer;
673highlightTransitionPosition = ((ITextContainer)this).CreateStaticPointerAtOffset(0);
System\Windows\Documents\FixedTextContainer.cs (38)
67void ITextContainer.BeginChange()
72/// <see cref="System.Windows.Documents.ITextContainer.BeginChangeNoUndo"/>
74void ITextContainer.BeginChangeNoUndo()
77((ITextContainer)this).BeginChange();
82void ITextContainer.EndChange()
84((ITextContainer)this).EndChange(false /* skipEvents */);
89void ITextContainer.EndChange(bool skipEvents)
96ITextPointer ITextContainer.CreatePointerAtOffset(int offset, LogicalDirection direction)
98return ((ITextContainer)this).Start.CreatePointer(offset, direction);
102ITextPointer ITextContainer.CreatePointerAtCharOffset(int charOffset, LogicalDirection direction)
107ITextPointer ITextContainer.CreateDynamicTextPointer(StaticTextPointer position, LogicalDirection direction)
112StaticTextPointer ITextContainer.CreateStaticPointerAtOffset(int offset)
114return new StaticTextPointer(this, ((ITextContainer)this).CreatePointerAtOffset(offset, LogicalDirection.Forward));
117TextPointerContext ITextContainer.GetPointerContext(StaticTextPointer pointer, LogicalDirection direction)
122int ITextContainer.GetOffsetToPosition(StaticTextPointer position1, StaticTextPointer position2)
127int ITextContainer.GetTextInRun(StaticTextPointer position, LogicalDirection direction, char[] textBuffer, int startIndex, int count)
132object ITextContainer.GetAdjacentElement(StaticTextPointer position, LogicalDirection direction)
137DependencyObject ITextContainer.GetParent(StaticTextPointer position)
142StaticTextPointer ITextContainer.CreatePointer(StaticTextPointer position, int offset)
147StaticTextPointer ITextContainer.GetNextContextPosition(StaticTextPointer position, LogicalDirection direction)
152int ITextContainer.CompareTo(StaticTextPointer position1, StaticTextPointer position2)
157int ITextContainer.CompareTo(StaticTextPointer position1, ITextPointer position2)
162object ITextContainer.GetValue(StaticTextPointer position, DependencyProperty formattingProperty)
187bool ITextContainer.IsReadOnly
198ITextPointer ITextContainer.Start
211ITextPointer ITextContainer.End
223uint ITextContainer.Generation
235Highlights ITextContainer.Highlights
246DependencyObject ITextContainer.Parent
253ITextSelection ITextContainer.TextSelection
260UndoManager ITextContainer.UndoManager { get { return null; } }
263ITextView ITextContainer.TextView
278int ITextContainer.SymbolCount
282return ((ITextContainer)this).Start.GetOffsetToPosition(((ITextContainer)this).End);
287int ITextContainer.IMECharCount
352if (fixedTextPointer.CompareTo(((ITextContainer)this).Start) == 0)
356else if (fixedTextPointer.CompareTo(((ITextContainer)this).End) == 0)
System\Windows\Documents\NullTextContainer.cs (39)
55void ITextContainer.BeginChange()
60/// <see cref="System.Windows.Documents.ITextContainer.BeginChangeNoUndo"/>
62void ITextContainer.BeginChangeNoUndo()
65((ITextContainer)this).BeginChange();
70void ITextContainer.EndChange()
72((ITextContainer)this).EndChange(false /* skipEvents */);
77void ITextContainer.EndChange(bool skipEvents)
84ITextPointer ITextContainer.CreatePointerAtOffset(int offset, LogicalDirection direction)
86return ((ITextContainer)this).Start.CreatePointer(offset, direction);
90ITextPointer ITextContainer.CreatePointerAtCharOffset(int charOffset, LogicalDirection direction)
95ITextPointer ITextContainer.CreateDynamicTextPointer(StaticTextPointer position, LogicalDirection direction)
100StaticTextPointer ITextContainer.CreateStaticPointerAtOffset(int offset)
102return new StaticTextPointer(this, ((ITextContainer)this).CreatePointerAtOffset(offset, LogicalDirection.Forward));
105TextPointerContext ITextContainer.GetPointerContext(StaticTextPointer pointer, LogicalDirection direction)
110int ITextContainer.GetOffsetToPosition(StaticTextPointer position1, StaticTextPointer position2)
115int ITextContainer.GetTextInRun(StaticTextPointer position, LogicalDirection direction, char[] textBuffer, int startIndex, int count)
120object ITextContainer.GetAdjacentElement(StaticTextPointer position, LogicalDirection direction)
125DependencyObject ITextContainer.GetParent(StaticTextPointer position)
130StaticTextPointer ITextContainer.CreatePointer(StaticTextPointer position, int offset)
135StaticTextPointer ITextContainer.GetNextContextPosition(StaticTextPointer position, LogicalDirection direction)
140int ITextContainer.CompareTo(StaticTextPointer position1, StaticTextPointer position2)
145int ITextContainer.CompareTo(StaticTextPointer position1, ITextPointer position2)
150object ITextContainer.GetValue(StaticTextPointer position, DependencyProperty formattingProperty)
166/// <see cref="ITextContainer.IsReadOnly" />
168bool ITextContainer.IsReadOnly
177/// <see cref="ITextContainer.Start"/>
179ITextPointer ITextContainer.Start
190/// <see cref="ITextContainer.End"/>
192ITextPointer ITextContainer.End
204uint ITextContainer.Generation
216Highlights ITextContainer.Highlights
227/// <see cref="ITextContainer.Parent"/>
229DependencyObject ITextContainer.Parent
235ITextSelection ITextContainer.TextSelection
242UndoManager ITextContainer.UndoManager { get { return null; } }
245/// <see cref="ITextContainer"/>
247ITextView ITextContainer.TextView
262int ITextContainer.SymbolCount
271int ITextContainer.IMECharCount
System\Windows\Documents\TextContainer.cs (33)
407void ITextContainer.BeginChange()
412void ITextContainer.BeginChangeNoUndo()
419void ITextContainer.EndChange()
426void ITextContainer.EndChange(bool skipEvents)
434ITextPointer ITextContainer.CreatePointerAtOffset(int offset, LogicalDirection direction)
451ITextPointer ITextContainer.CreatePointerAtCharOffset(int charOffset, LogicalDirection direction)
478ITextPointer ITextContainer.CreateDynamicTextPointer(StaticTextPointer position, LogicalDirection direction)
500StaticTextPointer ITextContainer.CreateStaticPointerAtOffset(int offset)
505TextPointerContext ITextContainer.GetPointerContext(StaticTextPointer pointer, LogicalDirection direction)
550int ITextContainer.GetOffsetToPosition(StaticTextPointer position1, StaticTextPointer position2)
555int ITextContainer.GetTextInRun(StaticTextPointer position, LogicalDirection direction, char[] textBuffer, int startIndex, int count)
571object ITextContainer.GetAdjacentElement(StaticTextPointer position, LogicalDirection direction)
607DependencyObject ITextContainer.GetParent(StaticTextPointer position)
612StaticTextPointer ITextContainer.CreatePointer(StaticTextPointer position, int offset)
615return ((ITextContainer)this).CreateStaticPointerAtOffset(positionOffset + offset);
618StaticTextPointer ITextContainer.GetNextContextPosition(StaticTextPointer position, LogicalDirection direction)
673int ITextContainer.CompareTo(StaticTextPointer position1, StaticTextPointer position2)
698int ITextContainer.CompareTo(StaticTextPointer position1, ITextPointer position2)
723object ITextContainer.GetValue(StaticTextPointer position, DependencyProperty formattingProperty)
1701bool ITextContainer.IsReadOnly
1709ITextPointer ITextContainer.Start
1717ITextPointer ITextContainer.End
1727uint ITextContainer.Generation
1735Highlights ITextContainer.Highlights
1743DependencyObject ITextContainer.Parent
1753ITextSelection ITextContainer.TextSelection
1767UndoManager ITextContainer.UndoManager
1776ITextView ITextContainer.TextView
1805int ITextContainer.SymbolCount
1845int ITextContainer.IMECharCount
2016event EventHandler ITextContainer.Changing
2022event TextContainerChangeEventHandler ITextContainer.Change
2028event TextContainerChangedEventHandler ITextContainer.Changed