Enum DisplayDrawingObjects

DisplayDrawingObjects enumeration

Represents whether and how to show objects in the workbook.

public enum DisplayDrawingObjects

Values

NameValueDescription
DisplayShapes0Show all objects
Placeholders1Show placeholders
Hide2Hide all shapes.

Examples

[C#]

namespace Demos
{
    using Aspose.Cells;
    using System;

    public class DisplayDrawingObjectsDemo
    {
        public static void DisplayDrawingObjectsExample()
        {
            // Create a new workbook
            Workbook workbook = new Workbook();

            // Access the workbook settings
            WorkbookSettings settings = workbook.Settings;

            // Set the DisplayDrawingObjects property to show all objects
            settings.DisplayDrawingObjects = DisplayDrawingObjects.DisplayShapes;

            // Save the workbook
            workbook.Save("DisplayDrawingObjectsExample_DisplayShapes.xlsx");

            // Set the DisplayDrawingObjects property to show placeholders
            settings.DisplayDrawingObjects = DisplayDrawingObjects.Placeholders;

            // Save the workbook
            workbook.Save("DisplayDrawingObjectsExample_Placeholders.xlsx");

            // Set the DisplayDrawingObjects property to hide all shapes
            settings.DisplayDrawingObjects = DisplayDrawingObjects.Hide;

            // Save the workbook
            workbook.Save("DisplayDrawingObjectsExample_Hide.xlsx");
            workbook.Save("DisplayDrawingObjectsExample_Hide.pdf");
            return;
        }
    }
}

See Also