Enum BevelType

BevelType enumeration

Represents a preset for a type of bevel which can be applied to a shape in 3D.

public enum BevelType

Values

NameValueDescription
None0No bevel
Angle1Angle
ArtDeco2Art deco
Circle3Circle
Convex4Convex
CoolSlant5Cool slant
Cross6Cross
Divot7Divot
HardEdge8Hard edge
RelaxedInset9Relaxed inset
Riblet10Riblet
Slope11Slope
SoftRound12Soft round

Examples

[C#]

namespace Demos
{
    using Aspose.Cells;
    using Aspose.Cells.Drawing;
    using System;

    public class BevelTypeDemo
    {
        public static void BevelTypeExample()
        {
            // Create a new workbook
            Workbook workbook = new Workbook();
            Worksheet worksheet = workbook.Worksheets[0];

            // Add a shape to the worksheet
            var shape = worksheet.Shapes.AddShape(MsoDrawingType.Rectangle, 2, 0, 2, 0, 100, 100);

            // Access the 3D format of the shape
            ThreeDFormat threeDFormat = shape.ThreeDFormat;

            // Set the top bevel type and dimensions
            threeDFormat.TopBevelType = BevelType.SoftRound;
            threeDFormat.TopBevelWidth = 10;
            threeDFormat.TopBevelHeight = 10;

            // Set the bottom bevel type and dimensions
            threeDFormat.BottomBevelType = BevelType.Divot;
            threeDFormat.BottomBevelWidth = 5;
            threeDFormat.BottomBevelHeight = 5;

            // Save the workbook
            workbook.Save("BevelTypeExample.xlsx");
            workbook.Save("BevelTypeExample.pdf");

            return;
        }
    }
}

See Also