Beispiel #1
0
        // Token: 0x06007C34 RID: 31796 RVA: 0x0022EBB0 File Offset: 0x0022CDB0
        public static UIElement GetParent(object selection)
        {
            if (selection == null)
            {
                throw new ArgumentNullException("selection");
            }
            ITextPointer        pointer     = null;
            ITextPointer        textPointer = null;
            IList <TextSegment> list;

            TextSelectionHelper.CheckSelection(selection, out pointer, out textPointer, out list);
            return(TextSelectionHelper.GetParent(pointer));
        }
 /// <summary>
 /// Gets the parent element of this selection. The parent element is the
 /// FixedPage that contains selection.Start TextPointer.
 /// </summary>
 /// <param name="selection">the selection to examine. Must implement ITextRange</param>
 /// <returns>the parent element of the selection; can be null</returns>
 /// <exception cref="ArgumentNullException">selection is null</exception>
 /// <exception cref="ArgumentException">selection is of wrong type</exception>
 public override UIElement GetParent(Object selection)
 {
     CheckAnchor(selection);
     return(TextSelectionHelper.GetParent(selection));
 }
 // Token: 0x06007C43 RID: 31811 RVA: 0x0022F22D File Offset: 0x0022D42D
 public override UIElement GetParent(object selection)
 {
     return(TextSelectionHelper.GetParent(selection));
 }