public static int GetFillIndex(SpreadsheetDocument document, PatternFill patternFill) { return GetFillIndex(document, patternFill.GetXElement()); }