# NativeLoadOptions.MaxEntries Property

> NativeLoadOptions.MaxEntries property in the TX Sheet Control .NET API, with its syntax, its type int? and a C# example.

- **Product:** TX Sheet Control
- **Section:** Documentation
- **Kind:** Property
- **Namespace:** `TXTextControl.TXSheetControl.Server`
- **Package:** `TXTextControl.TXSheetControl.Server` (assembly `TXTextControl.TXSheetControl.Api.dll`, from the private NuGet feed or the supplied NuGet folder)
- **Package:** `TXTextControl.TXSheetControl.Blazor` (assembly `TXTextControl.TXSheetControl.Api.dll`, from the private NuGet feed or the supplied NuGet folder)
- **Path:** TX Sheet Control > API Reference > .NET API > TXTextControl.TXSheetControl.Server > NativeLoadOptions > NativeLoadOptions.MaxEntries Property
- **670 words**
- **Web URL:** https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/nativeloadoptions/maxentries-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/nativeloadoptions/maxentries-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/nativeloadoptions/maxentries-property/llms-full.txt

---

### Syntax

```csharp
public int? MaxEntries { get; init; }
```

### Property Value

`int?`.

### Examples

Load an application-supplied workbook with these conversion settings, edit and format its heading, and return a PDF of the result.

```csharp
using TXTextControl.TXSheetControl.Server;

async Task<byte[]> CreateConfiguredNativeLoadOptionsMaxEntriesAsync(ServerSheetControl control, byte[] originalDocument)
{
    var settings = new NativeLoadOptions()
    {
        MaxEntries = 4096
    };

    await control.LoadAsync(originalDocument, StreamType.InternalWorkbookFormat, new LoadOptions { InternalWorkbookFormat = settings });

    var sheet = await control.Workbook.Sheets.AtAsync(0);
    await sheet.Cell("A1").SetTextAsync("Reviewed invoice");
    await sheet.Cell("A1").FormatAsync(new { fontFamily = "Liberation Sans", fontSize = 16, bold = true, textColor = "#ffffff", fillColor = "#163b63" });
    return await control.SaveAsync(StreamType.PDF, new SaveOptions { OmitDashboards = true });
}
```

### Remarks

Use the member with an instance or settings object from the documented package. Await task-returning operations. Document-bound handles must be resolved again after loading or deleting their owner.

### See Also

- [NativeLoadOptions Class](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/nativeloadoptions/llms-full.txt)
- [Loading and Saving Workbooks](https://docs.textcontrol.com/tx-sheet-control/document-processing/load-save/llms-full.txt)

---

## Nearby

- **Previous:** [NativeLoadOptions Constructor](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/nativeloadoptions/constructor/llms-full.txt)
- **Next:** [NativeLoadOptions.MaxExpandedBytes Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/nativeloadoptions/maxexpandedbytes-property/llms-full.txt)
