XlsxWriter API reference
234 public APIs from XlsxWriter (jmcnamara/XlsxWriter) — 57 classes, 7 functions, 170 methods. Signatures extracted by static analysis of the actual source.
Repository: jmcnamara/XlsxWriter
| Kind | Count |
|---|---|
| Classes | 57 |
| Functions | 7 |
| Methods | 170 |
API list
func
dev.performance.bench_excel_writers.time_openpyxl()Run OpenPyXL in default mode.
func
dev.performance.bench_excel_writers.time_xlsxwriter()Run XlsxWriter in default mode.
func
dev.performance.bench_excel_writers.time_xlwt()Run xlwt in default mode.
func
dev.performance.perf3.time_openpyxl(optimised=False)Run OpenPyXL in default mode.
class
xlsxwriter.app.AppA class for writing the Excel XLSX App file.
class
xlsxwriter.chart.ChartA class for writing the Excel XLSX Chart file.
method
xlsxwriter.chart.Chart.add_series(options:Optional[Dict[str, Any]]=None) -> NoneAdd a data series to a chart.
method
xlsxwriter.chart.Chart.combine(chart:Optional['Chart']=None) -> NoneCreate a combination chart with a secondary chart.
method
xlsxwriter.chart.Chart.set_chartarea(options:Dict[str, Any]) -> NoneSet the chart area options.
method
xlsxwriter.chart.Chart.set_drop_lines(options:Optional[Dict[str, Any]]=None) -> NoneSet properties for the chart drop lines.
method
xlsxwriter.chart.Chart.set_high_low_lines(options:Optional[Dict[str, Any]]=None) -> NoneSet properties for the chart high-low lines.
method
xlsxwriter.chart.Chart.set_legend(options:Dict[str, Any]) -> NoneSet the chart legend options.
method
xlsxwriter.chart.Chart.set_plotarea(options:Dict[str, Any]) -> NoneSet the chart plot area options.
method
xlsxwriter.chart.Chart.set_size(options:Optional[Dict[str, Any]]=None) -> NoneSet size or scale of the chart.
method
xlsxwriter.chart.Chart.set_style(style_id:int=2) -> NoneSet the chart style type.
method
xlsxwriter.chart.Chart.set_table(options:Optional[Dict[str, Any]]=None) -> NoneSet properties for an axis data table.
method
xlsxwriter.chart.Chart.set_title(options:Optional[Dict[str, Any]]=None) -> NoneSet the chart title options.
method
xlsxwriter.chart.Chart.set_up_down_bars(options:Optional[Dict[str, Any]]=None) -> NoneSet properties for the chart up-down bars.
method
xlsxwriter.chart.Chart.set_x2_axis(options:Dict[str, Any]) -> NoneSet the chart secondary X axis options.
method
xlsxwriter.chart.Chart.set_x_axis(options:Dict[str, Any]) -> NoneSet the chart X axis options.
method
xlsxwriter.chart.Chart.set_y2_axis(options:Dict[str, Any]) -> NoneSet the chart secondary Y axis options.
method
xlsxwriter.chart.Chart.set_y_axis(options:Dict[str, Any]) -> NoneSet the chart Y axis options.
method
xlsxwriter.chart.Chart.show_blanks_as(option:str) -> NoneSet the option for displaying blank data in a chart.
method
xlsxwriter.chart.Chart.show_hidden_data() -> NoneDisplay data on charts from hidden rows or columns.
method
xlsxwriter.chart.Chart.show_na_as_empty_cell() -> NoneDisplay ``#N/A`` on charts as blank/empty cells.
class
xlsxwriter.chart_area.ChartAreaA class for writing the Excel XLSX Area charts.
class
xlsxwriter.chart_bar.ChartBarA class for writing the Excel XLSX Bar charts.
method
xlsxwriter.chart_bar.ChartBar.combine(chart:Optional[chart.Chart]=None) -> NoneCreate a combination chart with a secondary chart.
class
xlsxwriter.chart_column.ChartColumnA class for writing the Excel XLSX Column charts.
class
xlsxwriter.chart_doughnut.ChartDoughnutA class for writing the Excel XLSX Doughnut charts.
method
xlsxwriter.chart_doughnut.ChartDoughnut.set_hole_size(size:int) -> NoneSet the Doughnut chart hole size.
class
xlsxwriter.chart_line.ChartLineA class for writing the Excel XLSX Line charts.
class
xlsxwriter.chart_pie.ChartPieA class for writing the Excel XLSX Pie charts.
method
xlsxwriter.chart_pie.ChartPie.set_rotation(rotation:int) -> NoneSet the Pie/Doughnut chart rotation: the angle of the first slice.
class
xlsxwriter.chart_radar.ChartRadarA class for writing the Excel XLSX Radar charts.
class
xlsxwriter.chart_scatter.ChartScatterA class for writing the Excel XLSX Scatter charts.
method
xlsxwriter.chart_scatter.ChartScatter.combine(chart:Optional[chart.Chart]=None) -> NoneCreate a combination chart with a secondary chart.
class
xlsxwriter.chart_stock.ChartStockA class for writing the Excel XLSX Stock charts.
class
xlsxwriter.chart_title.ChartTitleA class to represent an Excel chart title.
method
xlsxwriter.chart_title.ChartTitle.has_formatting() -> boolCheck if the title has any formatting properties set.
method
xlsxwriter.chart_title.ChartTitle.has_formula() -> boolCheck if the title has a formula set.
method
xlsxwriter.chart_title.ChartTitle.has_name() -> boolCheck if the title has a text name set.
method
xlsxwriter.chart_title.ChartTitle.is_hidden() -> boolCheck if the title is explicitly hidden.
class
xlsxwriter.chartsheet.ChartsheetA class for writing the Excel XLSX Chartsheet file.
method
xlsxwriter.chartsheet.Chartsheet.protect(password:str='', options:Optional[Dict[str, Any]]=None) -> NoneSet the password and protection options of the worksheet.
method
xlsxwriter.chartsheet.Chartsheet.set_chart(chart:Chart) -> ChartSet the chart object for the chartsheet.
class
xlsxwriter.color.ColorA class to represent an Excel color.
method
xlsxwriter.color.Color.automatic() -> 'Color'Create an Excel color representing an "Automatic" color.
method
xlsxwriter.color.Color.rgb(color:str) -> 'Color'Create a user-defined RGB color from a Html color string.
method
xlsxwriter.color.Color.rgb_integer(color:int) -> 'Color'Create a user-defined RGB color from an integer value.
method
xlsxwriter.color.Color.theme(color:int, shade:int) -> 'Color'Create a theme color.
class
xlsxwriter.color.ColorTypesEnum to represent different types of URLS.
class
xlsxwriter.comments.CommentTypeA class to represent a comment in an Excel worksheet.
method
xlsxwriter.comments.CommentType.set_offsets(row:int, col:int) -> NoneSet the default start cell and offsets for the comment.
class
xlsxwriter.comments.CommentsA class for writing the Excel XLSX Comments file.
class
xlsxwriter.contenttypes.ContentTypesA class for writing the Excel XLSX ContentTypes file.
class
xlsxwriter.core.CoreA class for writing the Excel XLSX Core file.
class
xlsxwriter.drawing.DrawingA class for writing the Excel XLSX Drawing file.
class
xlsxwriter.exceptions.DuplicateTableNameWorksheet table name already exists.
class
xlsxwriter.exceptions.DuplicateWorksheetNameWorksheet name already exists.
class
xlsxwriter.exceptions.EmptyChartSeriesChart must contain at least one data series.
class
xlsxwriter.exceptions.FileCreateErrorIO error when creating xlsx file.
class
xlsxwriter.exceptions.FileSizeErrorFilesize would require ZIP64 extensions.
class
xlsxwriter.exceptions.OverlappingRangeWorksheet merge range or table overlaps previous range.
class
xlsxwriter.exceptions.ThemeFileErrorError when processing a custom theme file.
class
xlsxwriter.exceptions.UndefinedImageSizeNo size data found in image file.
class
xlsxwriter.exceptions.UnsupportedImageFormatUnsupported image file format.
class
xlsxwriter.exceptions.XlsxFileErrorBase exception for all file related errors.
class
xlsxwriter.exceptions.XlsxInputErrorBase exception for all input data related errors.
class
xlsxwriter.exceptions.XlsxWriterExceptionBase exception for XlsxWriter.
class
xlsxwriter.format.FormatA class for writing the Excel XLSX Format file.
method
xlsxwriter.format.Format.set_bg_color(bg_color:Union[str, Color]) -> NoneSet the Format bg_color property.
method
xlsxwriter.format.Format.set_bold(bold:bool=True) -> NoneSet the Format bold property.
method
xlsxwriter.format.Format.set_border(style:int=1) -> NoneSet the Format bottom property.
method
xlsxwriter.format.Format.set_border_color(color:Union[str, Color]) -> NoneSet the Format bottom property.
method
xlsxwriter.format.Format.set_bottom(bottom:int=1) -> NoneSet the Format bottom property.
method
xlsxwriter.format.Format.set_bottom_color(bottom_color:Union[str, Color]) -> NoneSet the Format bottom_color property.
method
xlsxwriter.format.Format.set_center_across(align_type:None=None) -> NoneSet the Format center_across property.
method
xlsxwriter.format.Format.set_checkbox(checkbox:bool=True) -> NoneSet the Format property to show a checkbox in a cell.
method
xlsxwriter.format.Format.set_color(font_color:Union[Color, str]) -> NoneDeprecated: Use set_font_color() instead.
method
xlsxwriter.format.Format.set_color_indexed(color_index:Literal[0, 1]) -> NoneSet the color index property.
method
xlsxwriter.format.Format.set_diag_border(diag_border:int=1) -> NoneSet the Format diag_border property.
method
xlsxwriter.format.Format.set_diag_color(diag_color:Union[str, Color]) -> NoneSet the Format diag_color property.
method
xlsxwriter.format.Format.set_diag_type(diag_type:Literal[1, 2, 3]=1) -> NoneSet the Format diag_type property.
method
xlsxwriter.format.Format.set_dxf_index(dxf_index:int) -> NoneSet the unique conditional format index property.
method
xlsxwriter.format.Format.set_fg_color(fg_color:Union[str, Color]) -> NoneSet the Format fg_color property.
method
xlsxwriter.format.Format.set_font(font_name:str) -> NoneDeprecated: Use set_font_name() instead.
method
xlsxwriter.format.Format.set_font_charset(font_charset:int) -> NoneSet the font character set property.
method
xlsxwriter.format.Format.set_font_color(font_color:Union[str, Color]) -> NoneSet the Format font_color property.
method
xlsxwriter.format.Format.set_font_condense(font_condense:int) -> NoneSet the font condense property.
method
xlsxwriter.format.Format.set_font_extend(font_extend:int) -> NoneSet the font extend property.
method
xlsxwriter.format.Format.set_font_family(font_family:int) -> NoneSet the font family property.
method
xlsxwriter.format.Format.set_font_index(font_index:int) -> NoneSet the unique font index property.
method
xlsxwriter.format.Format.set_font_only(font_only:bool=True) -> NoneSet property to indicate that the format is used for fonts only.
method
xlsxwriter.format.Format.set_font_outline(font_outline:bool=True) -> NoneSet the Format font_outline property.
method
xlsxwriter.format.Format.set_font_script(font_script:Literal[1, 2]=1) -> NoneSet the Format font_script property.
method
xlsxwriter.format.Format.set_font_shadow(font_shadow:bool=True) -> NoneSet the Format font_shadow property.
method
xlsxwriter.format.Format.set_font_size(font_size:int=11) -> NoneSet the Format font_size property.
method
xlsxwriter.format.Format.set_font_strikeout(font_strikeout:bool=True) -> NoneSet the Format font_strikeout property.
method
xlsxwriter.format.Format.set_has_fill(has_fill:bool=True) -> NoneSet the property to indicate the format has a fill.
method
xlsxwriter.format.Format.set_has_font(has_font:bool=True) -> NoneSet the property to indicate the format has a font.
method
xlsxwriter.format.Format.set_hidden(hidden:bool=True) -> NoneSet the Format hidden property.
method
xlsxwriter.format.Format.set_hyperlink(hyperlink:bool=True) -> NoneSet the properties for the hyperlink style.
method
xlsxwriter.format.Format.set_indent(indent:int=1) -> NoneSet the Format indent property.
method
xlsxwriter.format.Format.set_italic(italic:bool=True) -> NoneSet the Format italic property.
method
xlsxwriter.format.Format.set_left(left:int=1) -> NoneSet the Format left property.
method
xlsxwriter.format.Format.set_left_color(left_color:Union[str, Color]) -> NoneSet the Format left_color property.
method
xlsxwriter.format.Format.set_locked(locked:bool=True) -> NoneSet the Format locked property.
method
xlsxwriter.format.Format.set_num_format(num_format:str) -> NoneSet the Format num_format property such as '#,##0'.
method
xlsxwriter.format.Format.set_num_format_index(num_format_index:int) -> NoneSet the number format_index property.
method
xlsxwriter.format.Format.set_pattern(pattern:int=1) -> NoneSet the Format pattern property.
method
xlsxwriter.format.Format.set_quote_prefix(quote_prefix:bool=True) -> NoneSet the Format quote prefix property.
method
xlsxwriter.format.Format.set_reading_order(direction:int=0) -> NoneSet the reading order property.
method
xlsxwriter.format.Format.set_right(right:int=1) -> NoneSet the Format right property.
method
xlsxwriter.format.Format.set_right_color(right_color:Union[str, Color]) -> NoneSet the Format right_color property.
method
xlsxwriter.format.Format.set_rotation(rotation:int) -> NoneSet the Format rotation property.
method
xlsxwriter.format.Format.set_shrink(shrink:bool=True) -> NoneSet the Format shrink property.
method
xlsxwriter.format.Format.set_size(font_size:int) -> NoneDeprecated: Use set_font_size() instead.
method
xlsxwriter.format.Format.set_text_h_align(text_h_align:int) -> NoneSet the horizontal text alignment property.
method
xlsxwriter.format.Format.set_text_justlast(text_justlast:bool=True) -> NoneSet the Format text_justlast property.
method
xlsxwriter.format.Format.set_text_v_align(text_v_align:int) -> NoneSet the vertical text alignment property.
method
xlsxwriter.format.Format.set_text_wrap(text_wrap:bool=True) -> NoneSet the Format text_wrap property.
method
xlsxwriter.format.Format.set_theme(theme:int) -> NoneSet the theme property.
method
xlsxwriter.format.Format.set_theme_font_name(font_name) -> NoneSet the Format font name use for the theme.
method
xlsxwriter.format.Format.set_top(top:int=1) -> NoneSet the Format top property.
method
xlsxwriter.format.Format.set_top_color(top_color:Union[str, Color]) -> NoneSet the Format top_color property.
method
xlsxwriter.format.Format.set_underline(underline:Literal[1, 2, 33, 34]=1) -> NoneSet the Format underline property.
method
xlsxwriter.format.Format.set_xf_index(xf_index:int) -> NoneSet the unique format index property.
class
xlsxwriter.image.ImageA class to represent an image in an Excel worksheet.
method
xlsxwriter.image.Image.decorative() -> boolGet whether the image is decorative.
method
xlsxwriter.image.Image.description() -> Union[str, None]Get the description/alt-text of the image.
method
xlsxwriter.image.Image.height() -> floatGet the height of the image.
method
xlsxwriter.image.Image.image_type() -> strGet the image type (e.g., 'PNG', 'JPEG').
method
xlsxwriter.image.Image.url() -> Union[Url, None]Get the image url.
method
xlsxwriter.image.Image.width() -> floatGet the width of the image.
method
xlsxwriter.image.Image.x_dpi() -> floatGet the horizontal DPI of the image.
method
xlsxwriter.image.Image.y_dpi() -> floatGet the vertical DPI of the image.
class
xlsxwriter.metadata.MetadataA class for writing the Excel XLSX Metadata file.
class
xlsxwriter.packager.PackagerA class for writing the Excel XLSX Packager file.
class
xlsxwriter.relationships.RelationshipsA class for writing the Excel XLSX Relationships file.
class
xlsxwriter.rich_value.RichValueA class for writing the Excel XLSX rdrichvalue.xml file.
class
xlsxwriter.rich_value_rel.RichValueRelA class for writing the Excel XLSX richValueRel.xml file.
class
xlsxwriter.shape.ShapeA class for to represent Excel XLSX shape objects.
class
xlsxwriter.sharedstrings.SharedStringTableA class to track Excel shared strings between worksheets.
class
xlsxwriter.sharedstrings.SharedStringsA class for writing the Excel XLSX sharedStrings file.
class
xlsxwriter.styles.StylesA class for writing the Excel XLSX Styles file.
class
xlsxwriter.table.TableA class for writing the Excel XLSX Table file.
class
xlsxwriter.theme.ThemeA class for writing the Excel XLSX Theme file.
class
xlsxwriter.url.UrlA class to represent URLs in Excel.
method
xlsxwriter.url.Url.text() -> strGet the alternative, user-friendly, text for the URL.
method
xlsxwriter.url.Url.tip() -> strGet the screen tip for the URL.
class
xlsxwriter.url.UrlTypesEnum to represent different types of URLS.
func
xlsxwriter.utility.cell_autofit_width(string:str) -> intCalculate the width required to auto-fit a string in a cell.
func
xlsxwriter.utility.xl_col_to_name(col:int, col_abs:bool=False) -> strConvert a zero indexed column cell reference to a string.
func
xlsxwriter.utility.xl_rowcol_to_cell_fast(row:int, col:int) -> strOptimized version of the xl_rowcol_to_cell function.
class
xlsxwriter.vml.ButtonTypeA class to represent a button in an Excel worksheet.
class
xlsxwriter.vml.VmlA class for writing the Excel XLSX Vml file.
method
xlsxwriter.workbook.EmbeddedImages.get_image_index(image:Image)Get the index of an embedded image.
class
xlsxwriter.workbook.WorkbookA class for writing the Excel XLSX Workbook file.
method
xlsxwriter.workbook.Workbook.add_chart(options:Dict[str, Any]) -> Optional[Union[ChartArea, ChartBar, ChartColumn, ChartDoughnut, ChartLine, ChartPie, ChartRadar, ChartScatter, ChartStock]]Create a chart object.
method
xlsxwriter.workbook.Workbook.add_chartsheet(name:Optional[str]=None, chartsheet_class=None) -> ChartsheetAdd a new chartsheet to the Excel workbook.
method
xlsxwriter.workbook.Workbook.add_format(properties=None) -> FormatAdd a new Format to the Excel Workbook.
method
xlsxwriter.workbook.Workbook.add_vba_project(vba_project:str, is_stream:bool=False) -> intAdd a vbaProject binary to the Excel workbook.
method
xlsxwriter.workbook.Workbook.add_worksheet(name:Optional[str]=None, worksheet_class=None) -> WorksheetAdd a new worksheet to the Excel workbook.
method
xlsxwriter.workbook.Workbook.close() -> NoneCall finalization code and close file.
method
xlsxwriter.workbook.Workbook.define_name(name:str, formula:str) -> Literal[0, -1]Create a defined name in the workbook.
method
xlsxwriter.workbook.Workbook.set_calc_mode(mode:Literal['manual', 'auto_except_tables', 'auto'], calc_id=None) -> NoneSet the Excel calculation mode for the workbook.
method
xlsxwriter.workbook.Workbook.set_size(width:int, height:int) -> NoneSet the size of a workbook window.
method
xlsxwriter.workbook.Workbook.set_vba_name(name:Optional[str]=None) -> NoneSet the VBA name for the workbook.
method
xlsxwriter.workbook.Workbook.use_custom_theme(theme:Union[str, os.PathLike, IO[AnyStr]]) -> NoneAdd a custom theme to the Excel workbook.
method
xlsxwriter.workbook.Workbook.worksheets() -> List[Worksheet]Return a list of the worksheet objects in the workbook.
class
xlsxwriter.worksheet.CellMethodOverloads to support cell notation.
class
xlsxwriter.worksheet.ColumnInfoType to hold user modified properties for a column.
class
xlsxwriter.worksheet.ColumnMethodOverloads to support column range notation.
class
xlsxwriter.worksheet.RangeMethodOverloads to support range notation.
class
xlsxwriter.worksheet.RowInfoType to hold user modified properties for a row.
class
xlsxwriter.worksheet.WorksheetA class for writing the Excel XLSX Worksheet file.
method
xlsxwriter.worksheet.Worksheet.activate() -> NoneSet this worksheet as the active worksheet, i.e.
method
xlsxwriter.worksheet.Worksheet.add_sparkline(row:int, col:int, options:Optional[Dict[str, Any]]=None) -> Literal[0, -1, -2]Add sparklines to the worksheet.
method
xlsxwriter.worksheet.Worksheet.add_table(first_row:int, first_col:int, last_row:int, last_col:int, options:Optional[Dict[str, Any]]=None) -> Literal[0, -1, -2, -3]Add an Excel table to a worksheet.
method
xlsxwriter.worksheet.Worksheet.autofilter(first_row:int, first_col:int, last_row:int, last_col:int) -> NoneSet the autofilter area in the worksheet.
method
xlsxwriter.worksheet.Worksheet.autofit(max_width:int=None) -> NoneSimulate autofit based on the data, and datatypes in each column.
method
xlsxwriter.worksheet.Worksheet.center_horizontally() -> NoneCenter the page horizontally.
method
xlsxwriter.worksheet.Worksheet.center_vertically() -> NoneCenter the page vertically.
method
xlsxwriter.worksheet.Worksheet.conditional_format(first_row:int, first_col:int, last_row:int, last_col:int, options:Optional[Dict[str, Any]]=None) -> Literal[0, -1, -2]Add a conditional format to a worksheet.
method
xlsxwriter.worksheet.Worksheet.data_validation(first_row:int, first_col:int, last_row:int, last_col:int, options:Optional[Dict[str, Any]]=None) -> Literal[0, -1, -2]Add a data validation to a worksheet.
method
xlsxwriter.worksheet.Worksheet.embed_image(row:int, col:int, source:Union[str, BytesIO, Image], options:Optional[Dict[str, Any]]=None) -> Literal[0, -1]Embed an image in a worksheet cell.
method
xlsxwriter.worksheet.Worksheet.filter_column(col:int, criteria:str) -> NoneSet the column filter criteria.
method
xlsxwriter.worksheet.Worksheet.filter_column_list(col:int, filters:List[str]) -> NoneSet the column filter criteria in Excel 2007 list style.
method
xlsxwriter.worksheet.Worksheet.freeze_panes(row:int, col:int, top_row:Optional[int]=None, left_col:Optional[int]=None, pane_type:int=0) -> NoneCreate worksheet panes and mark them as frozen.
method
xlsxwriter.worksheet.Worksheet.get_name()Retrieve the worksheet name.
method
xlsxwriter.worksheet.Worksheet.hide() -> NoneHide the current worksheet.
method
xlsxwriter.worksheet.Worksheet.hide_zero() -> NoneHide zero values in worksheet cells.
method
xlsxwriter.worksheet.Worksheet.insert_button(row:int, col:int, options:Optional[Dict[str, Any]]=None) -> Literal[0, -1]Insert a button form object into the worksheet.
method
xlsxwriter.worksheet.Worksheet.merge_range(first_row:int, first_col:int, last_row:int, last_col:int, data:Any, cell_format:Optional[Format]=None) -> intMerge a range of cells.
method
xlsxwriter.worksheet.Worksheet.outline_settings(visible:bool=1, symbols_below:bool=1, symbols_right:bool=1, auto_style:bool=0) -> NoneControl outline settings.
method
xlsxwriter.worksheet.Worksheet.print_across() -> NoneSet the order in which pages are printed.
method
xlsxwriter.worksheet.Worksheet.print_area(first_row:int, first_col:int, last_row:int, last_col:int) -> Literal[0, -1]Set the print area in the current worksheet.
method
xlsxwriter.worksheet.Worksheet.protect(password:str='', options:Optional[Dict[str, Any]]=None) -> NoneSet the password and protection options of the worksheet.
method
xlsxwriter.worksheet.Worksheet.repeat_rows(first_row:int, last_row:Optional[int]=None) -> NoneSet the rows to repeat at the top of each printed page.
method
xlsxwriter.worksheet.Worksheet.select() -> NoneSet current worksheet as a selected worksheet, i.e.
method
xlsxwriter.worksheet.Worksheet.set_background(source:Union[str, BytesIO, Image], is_byte_stream:bool=False) -> Literal[0]Set a background image for a worksheet.
method
xlsxwriter.worksheet.Worksheet.set_comments_author(author) -> NoneSet the default author of the cell comments.
method
xlsxwriter.worksheet.Worksheet.set_default_row(height:Optional[float]=None, hide_unused_rows:bool=False) -> NoneSet the default row properties.
method
xlsxwriter.worksheet.Worksheet.set_first_sheet() -> NoneSet current worksheet as the first visible sheet.
method
xlsxwriter.worksheet.Worksheet.set_footer(footer:str='', options:Optional[Dict[str, Any]]=None, margin=None) -> NoneSet the page footer caption and optional margin.
method
xlsxwriter.worksheet.Worksheet.set_h_pagebreaks(breaks:List[int]) -> NoneSet the horizontal page breaks on a worksheet.
method
xlsxwriter.worksheet.Worksheet.set_header(header:str='', options:Optional[Dict[str, Any]]=None, margin=None) -> NoneSet the page header caption and optional margin.
method
xlsxwriter.worksheet.Worksheet.set_landscape() -> NoneSet the page orientation as landscape.
method
xlsxwriter.worksheet.Worksheet.set_margins(left:float=0.7, right:float=0.7, top:float=0.75, bottom:float=0.75) -> NoneSet all the page margins in inches.
method
xlsxwriter.worksheet.Worksheet.set_page_view(view:Literal[0, 1, 2]=1) -> NoneSet the page view mode.
method
xlsxwriter.worksheet.Worksheet.set_pagebreak_view() -> NoneSet the page view mode.
method
xlsxwriter.worksheet.Worksheet.set_paper(paper_size:Union[Literal[1, 9], int]) -> NoneSet the paper type.
method
xlsxwriter.worksheet.Worksheet.set_portrait() -> NoneSet the page orientation as portrait.
method
xlsxwriter.worksheet.Worksheet.set_print_scale(scale:int) -> NoneSet the scale factor for the printed page.
method
xlsxwriter.worksheet.Worksheet.set_start_page(start_page:int) -> NoneSet the start page number when printing.
method
xlsxwriter.worksheet.Worksheet.set_tab_color(color:Union[str, Color]) -> NoneSet the color of the worksheet tab.
method
xlsxwriter.worksheet.Worksheet.set_top_left_cell(row:int=0, col:int=0) -> NoneSet the first visible cell at the top left of a worksheet.
method
xlsxwriter.worksheet.Worksheet.set_v_pagebreaks(breaks:List[int]) -> NoneSet the horizontal page breaks on a worksheet.
method
xlsxwriter.worksheet.Worksheet.set_vba_name(name:Optional[str]=None) -> NoneSet the VBA name for the worksheet.
method
xlsxwriter.worksheet.Worksheet.set_zoom(zoom:int=100) -> NoneSet the worksheet zoom factor.
method
xlsxwriter.worksheet.Worksheet.set_zoom_to_fit() -> NoneSet the worksheet zoom to selection/fit.
method
xlsxwriter.worksheet.Worksheet.show_comments() -> NoneMake any comments in the worksheet visible.
method
xlsxwriter.worksheet.Worksheet.split_panes(x:float, y:float, top_row:Optional[int]=None, left_col:Optional[int]=None) -> NoneCreate worksheet panes and mark them as split.
method
xlsxwriter.worksheet.Worksheet.unprotect_range(cell_range:str, range_name:Optional[str]=None, password:Optional[str]=None) -> intUnprotect ranges within a protected worksheet.
method
xlsxwriter.worksheet.Worksheet.very_hidden() -> NoneHide the current worksheet.
method
xlsxwriter.worksheet.Worksheet.write_column(row:int, col:int, data, cell_format:Optional[Format]=None) -> Union[Literal[0], Any]Write a column of data starting from (row, col).
method
xlsxwriter.worksheet.Worksheet.write_comment(row:int, col:int, comment:str, options:Optional[Dict[str, Any]]=None) -> Literal[0, -1, -2]Write a comment to a worksheet cell.
method
xlsxwriter.worksheet.Worksheet.write_datetime(row:int, col:int, date:datetime.datetime, cell_format:Optional[Format]=None) -> Literal[0, -1]Write a date or time to a worksheet cell.
method
xlsxwriter.worksheet.Worksheet.write_formula(row:int, col:int, formula:str, cell_format:Optional[Format]=None, value=0) -> Literal[0, -1, -2]Write a formula to a worksheet cell.
method
xlsxwriter.worksheet.Worksheet.write_number(row:int, col:int, number:Union[int, float, Fraction], cell_format:Optional[Format]=None) -> Literal[0, -1]Write a number to a worksheet cell.
method
xlsxwriter.worksheet.Worksheet.write_row(row:int, col:int, data, cell_format:Optional[Format]=None) -> Union[Literal[0], Any]Write a row of data starting from (row, col).
method
xlsxwriter.worksheet.Worksheet.write_string(row:int, col:int, string:str, cell_format:Optional[Format]=None) -> Literal[0, -1, -2]Write a string to a worksheet cell.
class
xlsxwriter.xmlwriter.XMLwriterSimple XML writer class.
About this data
These signatures were extracted from the public source of jmcnamara/XlsxWriter
using Python's ast module. Argument names, default values,
type annotations and return types are taken verbatim from the code.
Implementation bodies are never stored. See
how it works for details.