src\Framework\MS\Internal\Documents\TextContainerHelper.cs (10)
31internal TextContentRange(int cpFirst, int cpLast, ITextContainer textContainer)
295private ITextContainer _textContainer;
512ITextContainer textContainer = textElement.TextContainer;
525ITextContainer textContainer = textElement.TextContainer;
543internal static ITextPointer GetContentStart(ITextContainer textContainer, DependencyObject element)
565internal static int GetElementLength(ITextContainer textContainer, DependencyObject element)
592internal static ITextPointer GetTextPointerFromCP(ITextContainer textContainer, int cp, LogicalDirection direction)
600internal static StaticTextPointer GetStaticTextPointerFromCP(ITextContainer textContainer, int cp)
631internal static int GetCPFromElement(ITextContainer textContainer, DependencyObject element, ElementEdge edge)
685internal static int GetCchFromElement(ITextContainer textContainer, DependencyObject element)
src\Framework\System\Windows\Controls\PasswordTextContainer.cs (36)
190void ITextContainer.BeginChange()
196/// <see cref="System.Windows.Documents.ITextContainer.BeginChangeNoUndo"/>
198void ITextContainer.BeginChangeNoUndo()
201((ITextContainer)this).BeginChange();
206void ITextContainer.EndChange()
213void ITextContainer.EndChange(bool skipEvents)
221ITextPointer ITextContainer.CreatePointerAtOffset(int offset, LogicalDirection direction)
227ITextPointer ITextContainer.CreatePointerAtCharOffset(int charOffset, LogicalDirection direction)
229return ((ITextContainer)this).CreatePointerAtOffset(charOffset, direction);
232ITextPointer ITextContainer.CreateDynamicTextPointer(StaticTextPointer position, LogicalDirection direction)
237StaticTextPointer ITextContainer.CreateStaticPointerAtOffset(int offset)
239return new StaticTextPointer(this, ((ITextContainer)this).CreatePointerAtOffset(offset, LogicalDirection.Forward));
242TextPointerContext ITextContainer.GetPointerContext(StaticTextPointer pointer, LogicalDirection direction)
247int ITextContainer.GetOffsetToPosition(StaticTextPointer position1, StaticTextPointer position2)
252int ITextContainer.GetTextInRun(StaticTextPointer position, LogicalDirection direction, char[] textBuffer, int startIndex, int count)
257object ITextContainer.GetAdjacentElement(StaticTextPointer position, LogicalDirection direction)
262DependencyObject ITextContainer.GetParent(StaticTextPointer position)
267StaticTextPointer ITextContainer.CreatePointer(StaticTextPointer position, int offset)
272StaticTextPointer ITextContainer.GetNextContextPosition(StaticTextPointer position, LogicalDirection direction)
277int ITextContainer.CompareTo(StaticTextPointer position1, StaticTextPointer position2)
282int ITextContainer.CompareTo(StaticTextPointer position1, ITextPointer position2)
287object ITextContainer.GetValue(StaticTextPointer position, DependencyProperty formattingProperty)
359bool ITextContainer.IsReadOnly
373ITextPointer ITextContainer.Start
387ITextPointer ITextContainer.End
398uint ITextContainer.Generation
413Highlights ITextContainer.Highlights
433DependencyObject ITextContainer.Parent
444ITextSelection ITextContainer.TextSelection
458UndoManager ITextContainer.UndoManager
467ITextView ITextContainer.TextView
496int ITextContainer.SymbolCount
505int ITextContainer.IMECharCount
601event EventHandler ITextContainer.Changing
607event TextContainerChangeEventHandler ITextContainer.Change
613event TextContainerChangedEventHandler ITextContainer.Changed
src\Framework\System\Windows\Documents\DocumentSequenceTextContainer.cs (39)
67void ITextContainer.BeginChange()
76/// <see cref="System.Windows.Documents.ITextContainer.BeginChangeNoUndo"/>
78void ITextContainer.BeginChangeNoUndo()
81((ITextContainer)this).BeginChange();
84void ITextContainer.EndChange()
86((ITextContainer)this).EndChange(false /* skipEvents */);
91void ITextContainer.EndChange(bool skipEvents)
115ITextPointer ITextContainer.CreatePointerAtOffset(int offset, LogicalDirection direction)
117return ((ITextContainer)this).Start.CreatePointer(offset, direction);
121ITextPointer ITextContainer.CreatePointerAtCharOffset(int charOffset, LogicalDirection direction)
126ITextPointer ITextContainer.CreateDynamicTextPointer(StaticTextPointer position, LogicalDirection direction)
131StaticTextPointer ITextContainer.CreateStaticPointerAtOffset(int offset)
133return new StaticTextPointer(this, ((ITextContainer)this).CreatePointerAtOffset(offset, LogicalDirection.Forward));
136TextPointerContext ITextContainer.GetPointerContext(StaticTextPointer pointer, LogicalDirection direction)
141int ITextContainer.GetOffsetToPosition(StaticTextPointer position1, StaticTextPointer position2)
146int ITextContainer.GetTextInRun(StaticTextPointer position, LogicalDirection direction, char[] textBuffer, int startIndex, int count)
151object ITextContainer.GetAdjacentElement(StaticTextPointer position, LogicalDirection direction)
156DependencyObject ITextContainer.GetParent(StaticTextPointer position)
161StaticTextPointer ITextContainer.CreatePointer(StaticTextPointer position, int offset)
166StaticTextPointer ITextContainer.GetNextContextPosition(StaticTextPointer position, LogicalDirection direction)
171int ITextContainer.CompareTo(StaticTextPointer position1, StaticTextPointer position2)
176int ITextContainer.CompareTo(StaticTextPointer position1, ITextPointer position2)
181object ITextContainer.GetValue(StaticTextPointer position, DependencyProperty formattingProperty)
222bool ITextContainer.IsReadOnly
233ITextPointer ITextContainer.Start
246ITextPointer ITextContainer.End
258uint ITextContainer.Generation
270Highlights ITextContainer.Highlights
281DependencyObject ITextContainer.Parent
288ITextSelection ITextContainer.TextSelection
295UndoManager ITextContainer.UndoManager { get { return null; } }
298ITextView ITextContainer.TextView
313int ITextContainer.SymbolCount
317return ((ITextContainer)this).Start.GetOffsetToPosition(((ITextContainer)this).End);
322int ITextContainer.IMECharCount
563ITextContainer textContainer = (ITextContainer)this;
651ITextContainer container = newBlock.ChildContainer;
src\Framework\System\Windows\Documents\FixedTextContainer.cs (38)
71void ITextContainer.BeginChange()
76/// <see cref="System.Windows.Documents.ITextContainer.BeginChangeNoUndo"/>
78void ITextContainer.BeginChangeNoUndo()
81((ITextContainer)this).BeginChange();
86void ITextContainer.EndChange()
88((ITextContainer)this).EndChange(false /* skipEvents */);
93void ITextContainer.EndChange(bool skipEvents)
100ITextPointer ITextContainer.CreatePointerAtOffset(int offset, LogicalDirection direction)
102return ((ITextContainer)this).Start.CreatePointer(offset, direction);
106ITextPointer ITextContainer.CreatePointerAtCharOffset(int charOffset, LogicalDirection direction)
111ITextPointer ITextContainer.CreateDynamicTextPointer(StaticTextPointer position, LogicalDirection direction)
116StaticTextPointer ITextContainer.CreateStaticPointerAtOffset(int offset)
118return new StaticTextPointer(this, ((ITextContainer)this).CreatePointerAtOffset(offset, LogicalDirection.Forward));
121TextPointerContext ITextContainer.GetPointerContext(StaticTextPointer pointer, LogicalDirection direction)
126int ITextContainer.GetOffsetToPosition(StaticTextPointer position1, StaticTextPointer position2)
131int ITextContainer.GetTextInRun(StaticTextPointer position, LogicalDirection direction, char[] textBuffer, int startIndex, int count)
136object ITextContainer.GetAdjacentElement(StaticTextPointer position, LogicalDirection direction)
141DependencyObject ITextContainer.GetParent(StaticTextPointer position)
146StaticTextPointer ITextContainer.CreatePointer(StaticTextPointer position, int offset)
151StaticTextPointer ITextContainer.GetNextContextPosition(StaticTextPointer position, LogicalDirection direction)
156int ITextContainer.CompareTo(StaticTextPointer position1, StaticTextPointer position2)
161int ITextContainer.CompareTo(StaticTextPointer position1, ITextPointer position2)
166object ITextContainer.GetValue(StaticTextPointer position, DependencyProperty formattingProperty)
191bool ITextContainer.IsReadOnly
202ITextPointer ITextContainer.Start
215ITextPointer ITextContainer.End
227uint ITextContainer.Generation
239Highlights ITextContainer.Highlights
250DependencyObject ITextContainer.Parent
257ITextSelection ITextContainer.TextSelection
264UndoManager ITextContainer.UndoManager { get { return null; } }
267ITextView ITextContainer.TextView
282int ITextContainer.SymbolCount
286return ((ITextContainer)this).Start.GetOffsetToPosition(((ITextContainer)this).End);
291int ITextContainer.IMECharCount
359if (fixedTextPointer.CompareTo(((ITextContainer)this).Start) == 0)
363else if (fixedTextPointer.CompareTo(((ITextContainer)this).End) == 0)
src\Framework\System\Windows\Documents\NullTextContainer.cs (39)
58void ITextContainer.BeginChange()
63/// <see cref="System.Windows.Documents.ITextContainer.BeginChangeNoUndo"/>
65void ITextContainer.BeginChangeNoUndo()
68((ITextContainer)this).BeginChange();
73void ITextContainer.EndChange()
75((ITextContainer)this).EndChange(false /* skipEvents */);
80void ITextContainer.EndChange(bool skipEvents)
87ITextPointer ITextContainer.CreatePointerAtOffset(int offset, LogicalDirection direction)
89return ((ITextContainer)this).Start.CreatePointer(offset, direction);
93ITextPointer ITextContainer.CreatePointerAtCharOffset(int charOffset, LogicalDirection direction)
98ITextPointer ITextContainer.CreateDynamicTextPointer(StaticTextPointer position, LogicalDirection direction)
103StaticTextPointer ITextContainer.CreateStaticPointerAtOffset(int offset)
105return new StaticTextPointer(this, ((ITextContainer)this).CreatePointerAtOffset(offset, LogicalDirection.Forward));
108TextPointerContext ITextContainer.GetPointerContext(StaticTextPointer pointer, LogicalDirection direction)
113int ITextContainer.GetOffsetToPosition(StaticTextPointer position1, StaticTextPointer position2)
118int ITextContainer.GetTextInRun(StaticTextPointer position, LogicalDirection direction, char[] textBuffer, int startIndex, int count)
123object ITextContainer.GetAdjacentElement(StaticTextPointer position, LogicalDirection direction)
128DependencyObject ITextContainer.GetParent(StaticTextPointer position)
133StaticTextPointer ITextContainer.CreatePointer(StaticTextPointer position, int offset)
138StaticTextPointer ITextContainer.GetNextContextPosition(StaticTextPointer position, LogicalDirection direction)
143int ITextContainer.CompareTo(StaticTextPointer position1, StaticTextPointer position2)
148int ITextContainer.CompareTo(StaticTextPointer position1, ITextPointer position2)
153object ITextContainer.GetValue(StaticTextPointer position, DependencyProperty formattingProperty)
169/// <see cref="ITextContainer.IsReadOnly" />
171bool ITextContainer.IsReadOnly
180/// <see cref="ITextContainer.Start"/>
182ITextPointer ITextContainer.Start
193/// <see cref="ITextContainer.End"/>
195ITextPointer ITextContainer.End
207uint ITextContainer.Generation
219Highlights ITextContainer.Highlights
230/// <see cref="ITextContainer.Parent"/>
232DependencyObject ITextContainer.Parent
238ITextSelection ITextContainer.TextSelection
245UndoManager ITextContainer.UndoManager { get { return null; } }
248/// <see cref="ITextContainer"/>
250ITextView ITextContainer.TextView
265int ITextContainer.SymbolCount
274int ITextContainer.IMECharCount
src\Framework\System\Windows\Documents\TextContainer.cs (33)
422void ITextContainer.BeginChange()
427void ITextContainer.BeginChangeNoUndo()
434void ITextContainer.EndChange()
441void ITextContainer.EndChange(bool skipEvents)
449ITextPointer ITextContainer.CreatePointerAtOffset(int offset, LogicalDirection direction)
466ITextPointer ITextContainer.CreatePointerAtCharOffset(int charOffset, LogicalDirection direction)
493ITextPointer ITextContainer.CreateDynamicTextPointer(StaticTextPointer position, LogicalDirection direction)
515StaticTextPointer ITextContainer.CreateStaticPointerAtOffset(int offset)
520TextPointerContext ITextContainer.GetPointerContext(StaticTextPointer pointer, LogicalDirection direction)
565int ITextContainer.GetOffsetToPosition(StaticTextPointer position1, StaticTextPointer position2)
570int ITextContainer.GetTextInRun(StaticTextPointer position, LogicalDirection direction, char[] textBuffer, int startIndex, int count)
586object ITextContainer.GetAdjacentElement(StaticTextPointer position, LogicalDirection direction)
622DependencyObject ITextContainer.GetParent(StaticTextPointer position)
627StaticTextPointer ITextContainer.CreatePointer(StaticTextPointer position, int offset)
630return ((ITextContainer)this).CreateStaticPointerAtOffset(positionOffset + offset);
633StaticTextPointer ITextContainer.GetNextContextPosition(StaticTextPointer position, LogicalDirection direction)
688int ITextContainer.CompareTo(StaticTextPointer position1, StaticTextPointer position2)
713int ITextContainer.CompareTo(StaticTextPointer position1, ITextPointer position2)
738object ITextContainer.GetValue(StaticTextPointer position, DependencyProperty formattingProperty)
1716bool ITextContainer.IsReadOnly
1724ITextPointer ITextContainer.Start
1732ITextPointer ITextContainer.End
1742uint ITextContainer.Generation
1750Highlights ITextContainer.Highlights
1758DependencyObject ITextContainer.Parent
1768ITextSelection ITextContainer.TextSelection
1782UndoManager ITextContainer.UndoManager
1791ITextView ITextContainer.TextView
1820int ITextContainer.SymbolCount
1860int ITextContainer.IMECharCount
2031event EventHandler ITextContainer.Changing
2037event TextContainerChangeEventHandler ITextContainer.Change
2043event TextContainerChangedEventHandler ITextContainer.Changed