Exemplo n.º 1
0
 public int Start(int ilvl, bool takeOverride, out bool isOverride)
 {
     if (FromParagraph != null)
     {
         if (takeOverride)
         {
             var startOverride = FromParagraph.StartOverride(ilvl);
             if (startOverride != null)
             {
                 isOverride = true;
                 return((int)startOverride);
             }
         }
         isOverride = false;
         return(FromParagraph.Start(ilvl));
     }
     else if (FromStyle != null)
     {
         if (takeOverride)
         {
             var startOverride = FromStyle.StartOverride(ilvl);
             if (startOverride != null)
             {
                 isOverride = true;
                 return((int)startOverride);
             }
         }
         isOverride = false;
         return(FromStyle.Start(ilvl));
     }
     isOverride = false;
     return(0);
 }
Exemplo n.º 2
0
            public int Start(int ilvl)
            {
                if (FromParagraph != null)
                {
                    return(FromParagraph.Start(ilvl));
                }

                return(FromStyle.Start(ilvl));
            }