mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-01-14 01:25:40 -05:00
Improves "save as Excel" functionality (#2266)
This commit is contained in:
@@ -85,6 +85,17 @@ namespace Microsoft.SqlTools.ServiceLayer.QueryExecution.DataStorage
|
||||
throw new InvalidOperationException("This type of writer is meant to write values from a list of cell values only.");
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Indicates whether columns should be measured based on whether the output format supports it and if the caller wants the columns automatically sized
|
||||
/// </summary>
|
||||
public virtual bool ShouldMeasureRowColumns => false;
|
||||
|
||||
/// <summary>
|
||||
/// Measures the columns in a row of data as part of determining automatic column widths
|
||||
/// </summary>
|
||||
/// <param name="row">The row of data to measure</param>
|
||||
public virtual void MeasureRowColumns(IList<DbCellValue> row) { }
|
||||
|
||||
/// <summary>
|
||||
/// Writes a row of data to the output file using the format provided by the implementing class.
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user