---
title: "ImageOrPrintOptions.CustomRenderSettings"
url: "https://reference.aspose.com/cells/net/aspose.cells.rendering/imageorprintoptions/customrendersettings/"
product: "Aspose.Cells for .NET API Reference"
description: "ImageOrPrintOptions property. Gets or sets custom settings during rendering"
---

## ImageOrPrintOptions.CustomRenderSettings property

Gets or sets custom settings during rendering.

```csharp
public CustomRenderSettings CustomRenderSettings { get; set; }
```

### Examples

```csharp
namespace AsposeCellsExamples
{
    using System;
    using Aspose.Cells;
    using Aspose.Cells.Rendering;

    public class ImageOrPrintOptionsPropertyCustomRenderSettingsDemo
    {
        public static void Run()
        {
            // Create a new workbook with some sample data
            Workbook workbook = new Workbook();
            Worksheet sheet = workbook.Worksheets[0];
            sheet.Cells["A1"].PutValue("Demo for CustomRenderSettings");
            sheet.Cells["B2"].PutValue(12345);
            sheet.Cells["C3"].PutValue(DateTime.Now);

            try
            {
                // Initialise ImageOrPrintOptions
                ImageOrPrintOptions options = new ImageOrPrintOptions();

                // Access the CustomRenderSettings property (read‑only) and display its current state
                var customRenderSettings = options.CustomRenderSettings;
                Console.WriteLine("CustomRenderSettings instance: " +
                                  (customRenderSettings != null ? customRenderSettings.GetType().FullName : "null"));

                // Optionally demonstrate that the options still work for rendering
                options.ImageType = Aspose.Cells.Drawing.ImageType.Png;
                SheetRender renderer = new SheetRender(sheet, options);
                renderer.ToImage(0, "CustomRenderSettingsDemo.png");

                Console.WriteLine("Image rendered successfully.");
            }
            catch (Exception ex)
            {
                Console.WriteLine($"Error: {ex.Message}");
            }
        }
    }
}
```

### See Also

* class [CustomRenderSettings](../../customrendersettings/)
* class [ImageOrPrintOptions](../)
* namespace [Aspose.Cells.Rendering](../../../aspose.cells.rendering/)
* assembly [Aspose.Cells](../../../)


