{"category": "PrintView", "question": "How do you access the printing options of the \"Sheet1\" worksheet?", "masked_code": "var printingOpt = workbook.???[\"Sheet1\"].???;", "answers": ["Worksheets", "PrintOptions"]} {"category": "PrintView", "question": "How do you enable printing of gridlines in the worksheet?", "masked_code": "worksheet.??? = ???;", "answers": ["PrintOptions.PrintGridlines", "true"]} {"category": "PrintView", "question": "How do you enable printing of row and column headings?", "masked_code": "worksheet.??? = ???;", "answers": ["PrintOptions.PrintHeadings", "true"]} {"category": "PrintView", "question": "How do you set the worksheet to print in landscape orientation?", "masked_code": "worksheet.??? = ???;", "answers": ["PrintOptions.Portrait", "false"]} {"category": "PrintView", "question": "How do you set the paper to A3 for printing?", "masked_code": "worksheet.??? = ???.A3;", "answers": ["PrintOptions.PaperType", "PaperType"]} {"category": "PrintView", "question": "How do you set printing of five copies?", "masked_code": "worksheet.??? = 5;", "answers": ["PrintOptions.NumberOfCopies"]} {"category": "PrintView", "question": "How do you set the first visible column in a worksheet to column D?", "masked_code": "worksheet.??? = ???;", "answers": ["ViewOptions.FirstVisibleColumn", "3"]} {"category": "PrintView", "question": "How do you set the worksheet zoom level to 125%?", "masked_code": "worksheet.??? = ???;", "answers": ["ViewOptions.Zoom", "125"]} {"category": "PrintView", "question": "How do you set the print area to a specific cell range (E1:U7)?", "masked_code": "worksheet.???(worksheet.???(\"E1\",\"U7\"));", "answers": ["NamedRanges.SetPrintArea", "Cells.GetSubrange"]} {"category": "Reading", "question": "How do you load an Excel file from a path?", "masked_code": "var workbook=???(Path.Combine(Program.ReadPath,\"Reading.xlsx\"));", "answers": ["ExcelFile.Load"]} {"category": "Reading", "question": "How do you iterate through all cells currently allocated in a row?", "masked_code": "foreach (ExcelCell cell in row.???)", "answers": ["AllocatedCells"]} {"category": "Reading", "question": "How do you read an enum type of a cell's value?", "masked_code": "Console.Write($\"{value} [{cell.???}] \");", "answers": ["ValueType"]} {"category": "Formatting", "question": "How to set cell A1 text to bold?", "masked_code": "worksheet.Cells[\"A1\"].???=???;", "answers": ["Style.Font.Weight", "ExcelFont.BoldWeight"]} {"category": "Formatting", "question": "How do you set the right border of a cell?", "masked_code": "worksheet.Cells[\"A4\"].???=LineStyle.Thin;", "answers": ["Style.Borders[IndividualBorder.Right].LineStyle"]} {"category": "Formatting", "question": "How do you format a cell to display a number with a unit (e.g., meters)?", "masked_code": "worksheet.Cells[\"A2\"].???=\"#\\\" m\\\"\";", "answers": ["Style.NumberFormat"]} {"category": "Formatting", "question": "How do you set a cell's background color?", "masked_code": "worksheet.Cells[\"A3\"].???(???.FromArgb(221,235,247));", "answers": ["Style.FillPattern.SetSolid", "SpreadsheetColor"]} {"category": "Formatting", "question": "How do you style a merged cell range to italic?", "masked_code": "worksheet.Cells.GetSubrange(\"A5\",\"B5\").???=true;", "answers": ["Style.Font.Italic"]} {"category": "Formatting", "question": "How do you set a font size for a part of a cell's text starting with the 9th character and ending with the 12th character, both inclusive?", "masked_code": "worksheet.Cells[\"A6\"].???(8,???).???=18*20;", "answers": ["GetCharacters", "4", "Font.Size"]} {"category": "Formatting", "question": "How do you set a font name for part of a cell's text starting with the 9th character and ending with the 12th character, both inclusive?", "masked_code": "worksheet.Cells[\"A7\"].???(???,4).???=\"Comic Sans MS\";", "answers": ["GetCharacters", "8", "Font.Name"]} {"category": "Formatting", "question": "How do you autofit the first column to fit its content?", "masked_code": "worksheet.Columns[0]???();", "answers": [".AutoFit"]} {"category": "Formatting", "question": "How do you set the worksheet zoom level to 140%?", "masked_code": "worksheet.???=???;", "answers": ["ViewOptions.Zoom", "140"]} {"category": "Charts", "question": "How do you add a column chart to a worksheet between cells D2 and M25?", "masked_code": "var chart=worksheet.???(???,???,???);", "answers": ["Charts.Add", "ChartType.Column", "\"D2\"", "\"M25\""]} {"category": "Charts", "question": "How do you set the chart's data range to (0,0,4,1), including headers?", "masked_code": "chart.???(worksheet.???(0,0,4,1),???);", "answers": ["SelectData", "Cells.GetSubrangeAbsolute", "true"]} {"category": "Writing", "question": "How do you assign the text \"Hello\" to cell A1?", "masked_code": "worksheet.Cells[\"A1\"]???=\"Hello\";", "answers": [".Value"]} {"category": "Writing", "question": "How do you assign the boolean value true to cell A2?", "masked_code": "worksheet.Cells[\"A2\"]???=???;", "answers": [".Value", "true"]} {"category": "Writing", "question": "How do you write a formula to a cell?", "masked_code": "worksheet.Cells[\"A5\"]???=\"=SUM(A2:A4)\";", "answers": [".Formula"]} {"category": "Writing", "question": "How do you set a cell value using row and column indices?", "masked_code": "worksheet.Cells[???,???].Value=\"Third row, fourth column\";", "answers": ["2", "3"]} {"category": "Usage", "question": "How to set GemBox.Spreadsheet to use the free license?", "masked_code": "???.???(\"FREE-LIMITED-KEY\");", "answers": ["SpreadsheetInfo", "SetLicense"]}