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); }
public int?StartOverride(int ilvl) { if (FromParagraph != null) { var startOverride = FromParagraph.StartOverride(ilvl); if (startOverride != null) { return((int)startOverride); } return(null); } else if (FromStyle != null) { var startOverride = FromStyle.StartOverride(ilvl); if (startOverride != null) { return((int)startOverride); } return(null); } return(null); }