VegaRise.NET
Back to DOM

BevelClass

Definition

Namespace
DOM.Elements.Graphics.Effects
Assembly
DOM.dll

Represents a bevel effect applied to an object or text in a document.

Remarks

A describes the width, height, and profile (profile preset type) of a bevel that is applied to the top or bottom surface of a 3D shape or text run. Bevels are typically composed inside or to give the shape a raised, chamfered edge. Bevel Effect3D Shape3DType Width and height are values, so they can be expressed in points, inches, EMU, or any other supported unit. DocumentUnit

Examples

csharp
1// 1. Simple circular top bevel
2var bevel = new Bevel
3{
4 Width = new DocumentUnit(4, Units.pt),
5 Height = new DocumentUnit(2, Units.pt),
6 PresetProfileType = BevelPresetTypeValues.Circle
7};
8
csharp
1// 2. Soft-rounded bevel
2var bevel = new Bevel
3{
4 Width = new DocumentUnit(6, Units.pt),
5 Height = new DocumentUnit(6, Units.pt),
6 PresetProfileType = BevelPresetTypeValues.SoftRound
7};
8
csharp
1// 3. Slope bevel for a metallic look
2var bevel = new Bevel
3{
4 Width = new DocumentUnit(3, Units.pt),
5 Height = new DocumentUnit(1.5, Units.pt),
6 PresetProfileType = BevelPresetTypeValues.Slope
7};
8
csharp
1// 4. Attach to an Effect3D
2var effect = new Effect3D
3{
4 BevelTop = new Bevel
5 {
6 Width = new DocumentUnit(4, Units.pt),
7 Height = new DocumentUnit(2, Units.pt),
8 PresetProfileType = BevelPresetTypeValues.Cross
9 }
10};
11
csharp
1// 5. Bevel with zero height (flat chamfer)
2var bevel = new Bevel
3{
4 Width = new DocumentUnit(2, Units.pt),
5 Height = new DocumentUnit(0, Units.pt),
6 PresetProfileType = BevelPresetTypeValues.ArtDeco
7};
8

Properties

Gets or sets the height of the bevel effect.

The height is typically specified in points (1/72 inch).

PresetProfileTypeBevelPresetTypeValues

Gets or sets the preset profile type of the bevel effect.

Gets or sets the width of the bevel effect.

The width is typically specified in points (1/72 inch), but any supported unit is accepted because the value is stored as EMUs internally.

VegaRise.NET

Sign In

Welcome back. Please sign in to your account.

Forgot password?
or

Don't have an account? Create an account

By signing in, you agree to our Terms of Service and Privacy Policy.