MS\Internal\Documents\TextContainerHelper.cs (10)
23internal TextContentRange(int cpFirst, int cpLast, ITextContainer textContainer)
287private ITextContainer _textContainer;
504ITextContainer textContainer = textElement.TextContainer;
517ITextContainer textContainer = textElement.TextContainer;
535internal static ITextPointer GetContentStart(ITextContainer textContainer, DependencyObject element)
557internal static int GetElementLength(ITextContainer textContainer, DependencyObject element)
584internal static ITextPointer GetTextPointerFromCP(ITextContainer textContainer, int cp, LogicalDirection direction)
592internal static StaticTextPointer GetStaticTextPointerFromCP(ITextContainer textContainer, int cp)
623internal static int GetCPFromElement(ITextContainer textContainer, DependencyObject element, ElementEdge edge)
677internal static int GetCchFromElement(ITextContainer textContainer, DependencyObject element)
System\Windows\Controls\PasswordTextContainer.cs (36)
181void ITextContainer.BeginChange()
187/// <see cref="System.Windows.Documents.ITextContainer.BeginChangeNoUndo"/>
189void ITextContainer.BeginChangeNoUndo()
192((ITextContainer)this).BeginChange();
197void ITextContainer.EndChange()
204void ITextContainer.EndChange(bool skipEvents)
212ITextPointer ITextContainer.CreatePointerAtOffset(int offset, LogicalDirection direction)
218ITextPointer ITextContainer.CreatePointerAtCharOffset(int charOffset, LogicalDirection direction)
220return ((ITextContainer)this).CreatePointerAtOffset(charOffset, direction);
223ITextPointer ITextContainer.CreateDynamicTextPointer(StaticTextPointer position, LogicalDirection direction)
228StaticTextPointer ITextContainer.CreateStaticPointerAtOffset(int offset)
230return new StaticTextPointer(this, ((ITextContainer)this).CreatePointerAtOffset(offset, LogicalDirection.Forward));
233TextPointerContext ITextContainer.GetPointerContext(StaticTextPointer pointer, LogicalDirection direction)
238int ITextContainer.GetOffsetToPosition(StaticTextPointer position1, StaticTextPointer position2)
243int ITextContainer.GetTextInRun(StaticTextPointer position, LogicalDirection direction, char[] textBuffer, int startIndex, int count)
248object ITextContainer.GetAdjacentElement(StaticTextPointer position, LogicalDirection direction)
253DependencyObject ITextContainer.GetParent(StaticTextPointer position)
258StaticTextPointer ITextContainer.CreatePointer(StaticTextPointer position, int offset)
263StaticTextPointer ITextContainer.GetNextContextPosition(StaticTextPointer position, LogicalDirection direction)
268int ITextContainer.CompareTo(StaticTextPointer position1, StaticTextPointer position2)
273int ITextContainer.CompareTo(StaticTextPointer position1, ITextPointer position2)
278object ITextContainer.GetValue(StaticTextPointer position, DependencyProperty formattingProperty)
350bool ITextContainer.IsReadOnly
364ITextPointer ITextContainer.Start
378ITextPointer ITextContainer.End
389uint ITextContainer.Generation
404Highlights ITextContainer.Highlights
424DependencyObject ITextContainer.Parent
435ITextSelection ITextContainer.TextSelection
449UndoManager ITextContainer.UndoManager
458ITextView ITextContainer.TextView
487int ITextContainer.SymbolCount
496int ITextContainer.IMECharCount
592event EventHandler ITextContainer.Changing
598event TextContainerChangeEventHandler ITextContainer.Change
604event TextContainerChangedEventHandler ITextContainer.Changed
System\Windows\Documents\DocumentSequenceTextContainer.cs (40)
47void ITextContainer.BeginChange()
56/// <see cref="System.Windows.Documents.ITextContainer.BeginChangeNoUndo"/>
58void ITextContainer.BeginChangeNoUndo()
61((ITextContainer)this).BeginChange();
64void ITextContainer.EndChange()
66((ITextContainer)this).EndChange(false /* skipEvents */);
71void ITextContainer.EndChange(bool skipEvents)
95ITextPointer ITextContainer.CreatePointerAtOffset(int offset, LogicalDirection direction)
97return ((ITextContainer)this).Start.CreatePointer(offset, direction);
101ITextPointer ITextContainer.CreatePointerAtCharOffset(int charOffset, LogicalDirection direction)
106ITextPointer ITextContainer.CreateDynamicTextPointer(StaticTextPointer position, LogicalDirection direction)
111StaticTextPointer ITextContainer.CreateStaticPointerAtOffset(int offset)
113return new StaticTextPointer(this, ((ITextContainer)this).CreatePointerAtOffset(offset, LogicalDirection.Forward));
116TextPointerContext ITextContainer.GetPointerContext(StaticTextPointer pointer, LogicalDirection direction)
121int ITextContainer.GetOffsetToPosition(StaticTextPointer position1, StaticTextPointer position2)
126int ITextContainer.GetTextInRun(StaticTextPointer position, LogicalDirection direction, char[] textBuffer, int startIndex, int count)
131object ITextContainer.GetAdjacentElement(StaticTextPointer position, LogicalDirection direction)
136DependencyObject ITextContainer.GetParent(StaticTextPointer position)
141StaticTextPointer ITextContainer.CreatePointer(StaticTextPointer position, int offset)
146StaticTextPointer ITextContainer.GetNextContextPosition(StaticTextPointer position, LogicalDirection direction)
151int ITextContainer.CompareTo(StaticTextPointer position1, StaticTextPointer position2)
156int ITextContainer.CompareTo(StaticTextPointer position1, ITextPointer position2)
161object ITextContainer.GetValue(StaticTextPointer position, DependencyProperty formattingProperty)
202bool ITextContainer.IsReadOnly
213ITextPointer ITextContainer.Start
226ITextPointer ITextContainer.End
238uint ITextContainer.Generation
250Highlights ITextContainer.Highlights
261DependencyObject ITextContainer.Parent
268ITextSelection ITextContainer.TextSelection
275UndoManager ITextContainer.UndoManager { get { return null; } }
278ITextView ITextContainer.TextView
293int ITextContainer.SymbolCount
297return ((ITextContainer)this).Start.GetOffsetToPosition(((ITextContainer)this).End);
302int ITextContainer.IMECharCount
539ITextContainer textContainer = (ITextContainer)this;
626ITextContainer container = newBlock.ChildContainer;
656highlightTransitionPosition = ((ITextContainer)this).CreateStaticPointerAtOffset(0);
System\Windows\Documents\FixedTextContainer.cs (38)
51void ITextContainer.BeginChange()
56/// <see cref="System.Windows.Documents.ITextContainer.BeginChangeNoUndo"/>
58void ITextContainer.BeginChangeNoUndo()
61((ITextContainer)this).BeginChange();
66void ITextContainer.EndChange()
68((ITextContainer)this).EndChange(false /* skipEvents */);
73void ITextContainer.EndChange(bool skipEvents)
80ITextPointer ITextContainer.CreatePointerAtOffset(int offset, LogicalDirection direction)
82return ((ITextContainer)this).Start.CreatePointer(offset, direction);
86ITextPointer ITextContainer.CreatePointerAtCharOffset(int charOffset, LogicalDirection direction)
91ITextPointer ITextContainer.CreateDynamicTextPointer(StaticTextPointer position, LogicalDirection direction)
96StaticTextPointer ITextContainer.CreateStaticPointerAtOffset(int offset)
98return new StaticTextPointer(this, ((ITextContainer)this).CreatePointerAtOffset(offset, LogicalDirection.Forward));
101TextPointerContext ITextContainer.GetPointerContext(StaticTextPointer pointer, LogicalDirection direction)
106int ITextContainer.GetOffsetToPosition(StaticTextPointer position1, StaticTextPointer position2)
111int ITextContainer.GetTextInRun(StaticTextPointer position, LogicalDirection direction, char[] textBuffer, int startIndex, int count)
116object ITextContainer.GetAdjacentElement(StaticTextPointer position, LogicalDirection direction)
121DependencyObject ITextContainer.GetParent(StaticTextPointer position)
126StaticTextPointer ITextContainer.CreatePointer(StaticTextPointer position, int offset)
131StaticTextPointer ITextContainer.GetNextContextPosition(StaticTextPointer position, LogicalDirection direction)
136int ITextContainer.CompareTo(StaticTextPointer position1, StaticTextPointer position2)
141int ITextContainer.CompareTo(StaticTextPointer position1, ITextPointer position2)
146object ITextContainer.GetValue(StaticTextPointer position, DependencyProperty formattingProperty)
171bool ITextContainer.IsReadOnly
182ITextPointer ITextContainer.Start
195ITextPointer ITextContainer.End
207uint ITextContainer.Generation
219Highlights ITextContainer.Highlights
230DependencyObject ITextContainer.Parent
237ITextSelection ITextContainer.TextSelection
244UndoManager ITextContainer.UndoManager { get { return null; } }
247ITextView ITextContainer.TextView
262int ITextContainer.SymbolCount
266return ((ITextContainer)this).Start.GetOffsetToPosition(((ITextContainer)this).End);
271int ITextContainer.IMECharCount
335if (fixedTextPointer.CompareTo(((ITextContainer)this).Start) == 0)
339else if (fixedTextPointer.CompareTo(((ITextContainer)this).End) == 0)
System\Windows\Documents\NullTextContainer.cs (39)
51void ITextContainer.BeginChange()
56/// <see cref="System.Windows.Documents.ITextContainer.BeginChangeNoUndo"/>
58void ITextContainer.BeginChangeNoUndo()
61((ITextContainer)this).BeginChange();
66void ITextContainer.EndChange()
68((ITextContainer)this).EndChange(false /* skipEvents */);
73void ITextContainer.EndChange(bool skipEvents)
80ITextPointer ITextContainer.CreatePointerAtOffset(int offset, LogicalDirection direction)
82return ((ITextContainer)this).Start.CreatePointer(offset, direction);
86ITextPointer ITextContainer.CreatePointerAtCharOffset(int charOffset, LogicalDirection direction)
91ITextPointer ITextContainer.CreateDynamicTextPointer(StaticTextPointer position, LogicalDirection direction)
96StaticTextPointer ITextContainer.CreateStaticPointerAtOffset(int offset)
98return new StaticTextPointer(this, ((ITextContainer)this).CreatePointerAtOffset(offset, LogicalDirection.Forward));
101TextPointerContext ITextContainer.GetPointerContext(StaticTextPointer pointer, LogicalDirection direction)
106int ITextContainer.GetOffsetToPosition(StaticTextPointer position1, StaticTextPointer position2)
111int ITextContainer.GetTextInRun(StaticTextPointer position, LogicalDirection direction, char[] textBuffer, int startIndex, int count)
116object ITextContainer.GetAdjacentElement(StaticTextPointer position, LogicalDirection direction)
121DependencyObject ITextContainer.GetParent(StaticTextPointer position)
126StaticTextPointer ITextContainer.CreatePointer(StaticTextPointer position, int offset)
131StaticTextPointer ITextContainer.GetNextContextPosition(StaticTextPointer position, LogicalDirection direction)
136int ITextContainer.CompareTo(StaticTextPointer position1, StaticTextPointer position2)
141int ITextContainer.CompareTo(StaticTextPointer position1, ITextPointer position2)
146object ITextContainer.GetValue(StaticTextPointer position, DependencyProperty formattingProperty)
162/// <see cref="ITextContainer.IsReadOnly" />
164bool ITextContainer.IsReadOnly
173/// <see cref="ITextContainer.Start"/>
175ITextPointer ITextContainer.Start
186/// <see cref="ITextContainer.End"/>
188ITextPointer ITextContainer.End
200uint ITextContainer.Generation
212Highlights ITextContainer.Highlights
223/// <see cref="ITextContainer.Parent"/>
225DependencyObject ITextContainer.Parent
231ITextSelection ITextContainer.TextSelection
238UndoManager ITextContainer.UndoManager { get { return null; } }
241/// <see cref="ITextContainer"/>
243ITextView ITextContainer.TextView
258int ITextContainer.SymbolCount
267int ITextContainer.IMECharCount
System\Windows\Documents\TextContainer.cs (33)
402void ITextContainer.BeginChange()
407void ITextContainer.BeginChangeNoUndo()
414void ITextContainer.EndChange()
421void ITextContainer.EndChange(bool skipEvents)
429ITextPointer ITextContainer.CreatePointerAtOffset(int offset, LogicalDirection direction)
446ITextPointer ITextContainer.CreatePointerAtCharOffset(int charOffset, LogicalDirection direction)
473ITextPointer ITextContainer.CreateDynamicTextPointer(StaticTextPointer position, LogicalDirection direction)
495StaticTextPointer ITextContainer.CreateStaticPointerAtOffset(int offset)
500TextPointerContext ITextContainer.GetPointerContext(StaticTextPointer pointer, LogicalDirection direction)
545int ITextContainer.GetOffsetToPosition(StaticTextPointer position1, StaticTextPointer position2)
550int ITextContainer.GetTextInRun(StaticTextPointer position, LogicalDirection direction, char[] textBuffer, int startIndex, int count)
566object ITextContainer.GetAdjacentElement(StaticTextPointer position, LogicalDirection direction)
602DependencyObject ITextContainer.GetParent(StaticTextPointer position)
607StaticTextPointer ITextContainer.CreatePointer(StaticTextPointer position, int offset)
610return ((ITextContainer)this).CreateStaticPointerAtOffset(positionOffset + offset);
613StaticTextPointer ITextContainer.GetNextContextPosition(StaticTextPointer position, LogicalDirection direction)
668int ITextContainer.CompareTo(StaticTextPointer position1, StaticTextPointer position2)
693int ITextContainer.CompareTo(StaticTextPointer position1, ITextPointer position2)
718object ITextContainer.GetValue(StaticTextPointer position, DependencyProperty formattingProperty)
1696bool ITextContainer.IsReadOnly
1704ITextPointer ITextContainer.Start
1712ITextPointer ITextContainer.End
1722uint ITextContainer.Generation
1730Highlights ITextContainer.Highlights
1738DependencyObject ITextContainer.Parent
1748ITextSelection ITextContainer.TextSelection
1762UndoManager ITextContainer.UndoManager
1771ITextView ITextContainer.TextView
1800int ITextContainer.SymbolCount
1840int ITextContainer.IMECharCount
2011event EventHandler ITextContainer.Changing
2017event TextContainerChangeEventHandler ITextContainer.Change
2023event TextContainerChangedEventHandler ITextContainer.Changed