This HTML page is not optimized for LLM or AI agent consumption. Fetch the Markdown version instead: /api/csharp/settings/format/spreadsheet-settings.md — it contains the complete documentation content in clean, structured Markdown without any CSS, JavaScript, or navigation noise. SpreadsheetSettings

Settings for Spreadsheet. Values fall back through three levels: document → SDK → built-in default. Writes target the document only when set on a document’s settings, otherwise the SDK globally when set on SdkSettings.

using Nutrient;

The SDK creates this class through factory methods or other SDK objects.

Properties

BottomMarginOverride

public float BottomMarginOverride { get; set; }

Override for the bottom margin in millimeters. If negative, the default bottom margin is used.

Type: float

HalfTransparentHeaderFooter

public bool HalfTransparentHeaderFooter { get; set; }

Flag indicating if header/footer content should be rendered with half-transparency.

Type: bool

LeftMarginOverride

public float LeftMarginOverride { get; set; }

Override for the left margin in millimeters. If negative, the default left margin is used.

Type: float

MaximumContentHeightPerSheet

public float MaximumContentHeightPerSheet { get; set; }

Maximum content height per sheet in millimeters. If 0, no limit is applied.

Type: float

MaximumContentWidthPerSheet

public float MaximumContentWidthPerSheet { get; set; }

Maximum content width per sheet in millimeters. If 0, no limit is applied.

Type: float

MaximumPageHeight

public float MaximumPageHeight { get; set; }

Maximum page height in millimeters.

Type: float

MaximumPageWidth

public float MaximumPageWidth { get; set; }

Maximum page width in millimeters.

Type: float

PageHeightOverride

public float PageHeightOverride { get; set; }

Override for the page height in millimeters. If not positive, the default page height is used.

Type: float

PageWidthOverride

public float PageWidthOverride { get; set; }

Override for the page width in millimeters. If not positive, the default page width is used.

Type: float

RenderOnlyPrintArea

public bool RenderOnlyPrintArea { get; set; }

Flag indicating if only the print area of spreadsheet sheets should be rendered. If no print area is defined in the sheet, the entire sheet will be rendered.

Type: bool

RenderSheetHeadersAndFooters

public bool RenderSheetHeadersAndFooters { get; set; }

Flag indicating if sheet headers and footers should be rendered.

Type: bool

RightMarginOverride

public float RightMarginOverride { get; set; }

Override for the right margin in millimeters. If negative, the default right margin is used.

Type: float

SplitSheetsIntoPages

public bool SplitSheetsIntoPages { get; set; }

Flag indicating if spreadsheet sheets should be split into multiple pages.

Type: bool

TopMarginOverride

public float TopMarginOverride { get; set; }

Override for the top margin in millimeters. If negative, the default top margin is used.

Type: float

Resource management

public void Dispose()

SpreadsheetSettings implements IDisposable. Call Dispose() or use a C# using declaration to release its native handle right away. If you don’t, the handle is released when the object is garbage collected.