예제 #1
0
 // Token: 0x06002B7B RID: 11131 RVA: 0x000C67A8 File Offset: 0x000C49A8
 internal ContentPosition GetObjectPosition(object o)
 {
     if (o == null)
     {
         throw new ArgumentNullException("o");
     }
     foreach (DocumentReference docRef in this.References)
     {
         DynamicDocumentPaginator paginator = this.GetPaginator(docRef);
         if (paginator != null)
         {
             ContentPosition objectPosition = paginator.GetObjectPosition(o);
             if (objectPosition != ContentPosition.Missing && objectPosition is ITextPointer)
             {
                 ChildDocumentBlock childBlock = new ChildDocumentBlock(this.TextContainer, docRef);
                 return(new DocumentSequenceTextPointer(childBlock, (ITextPointer)objectPosition));
             }
         }
     }
     return(ContentPosition.Missing);
 }