Search Results for

    Show / Hide Table of Contents

    Class Bevel

    Inheritance
    System.Object
    Bevel
    Namespace: IronPPT.Models
    Assembly: IronPPT.dll
    Syntax
    public class Bevel : Object

    When a shape needs a raised or recessed three-dimensional edge, Bevel supplies it in IronPPT. It describes the bevel applied to a shape's edge, giving the outline depth so a button, card, or callout reads as raised rather than flat. You build one to define how deep and how wide the bevel runs and which profile shape it follows.

    A Bevel is configured and then attached to the three-dimensional shape effect that draws it: an Effect3D exposes a BevelTop and a BevelBottom, each a Bevel, so you assign one to the top face, the bottom face, or both. That places it in the styling step of building a slide rather than in layout or content, and the same Bevel settings can describe the edge of any shape that takes one.

    Three properties carry the shape of the edge. Height and Width are double values for the bevel's depth and spread, and PresetProfileType selects the profile curve from the BevelPresetTypeValues enumeration (circle, slope, and similar). Because depth is unit-sensitive, four methods read and write the dimensions in a chosen Units: GetHeight(Units) and GetWidth(Units) return the value converted to that unit, and SetHeight(double, Units) and SetWidth(double, Units) set it in a specific unit. Use the unit-aware setters when your measurements come in points or centimeters rather than the property's native value.

    using IronPPT.Models;
    using IronPPT.Enums;
    
    var bevel = new Bevel();
    bevel.PresetProfileType = BevelPresetTypeValues.Circle;
    bevel.SetHeight(3, Units.Point);
    bevel.SetWidth(3, Units.Point);

    The add shape workflow in the add-slide how-to builds the shapes a bevel decorates, the slide element tutorial walks through shape styling, and the Effect3D reference shows where a bevel attaches.

    Constructors

    Bevel()

    Declaration
    public Bevel()

    Properties

    Height

    Declaration
    public double Height { get; set; }
    Property Value
    Type Description
    System.Double

    PresetProfileType

    Declaration
    public BevelPresetTypeValues PresetProfileType { get; set; }
    Property Value
    Type Description
    BevelPresetTypeValues

    Width

    Declaration
    public double Width { get; set; }
    Property Value
    Type Description
    System.Double

    Methods

    GetHeight(Units)

    Declaration
    public double GetHeight(Units measurementUnit)
    Parameters
    Type Name Description
    Units measurementUnit
    Returns
    Type Description
    System.Double

    GetWidth(Units)

    Declaration
    public double GetWidth(Units measurementUnit)
    Parameters
    Type Name Description
    Units measurementUnit
    Returns
    Type Description
    System.Double

    SetHeight(Double, Units)

    Declaration
    public void SetHeight(double height, Units measurementUnit)
    Parameters
    Type Name Description
    System.Double height
    Units measurementUnit

    SetWidth(Double, Units)

    Declaration
    public void SetWidth(double width, Units measurementUnit)
    Parameters
    Type Name Description
    System.Double width
    Units measurementUnit
    ☀
    ☾
    Downloads
    • Download with NuGet
    • Start for Free
    In This Article
    Back to top
    Install with NuGet