Skip to main content
A newer version of this page is available. .
.NET Framework 4.5.2+

ShapeFormat.Preset Property

Gets or sets the shape’s geometry type.

Namespace: DevExpress.XtraRichEdit.API.Native

Assembly: DevExpress.RichEdit.v21.2.Core.dll

NuGet Package: DevExpress.RichEdit.Core

Declaration

ShapeGeometryPreset Preset { get; set; }

Property Value

Type Description
ShapeGeometryPreset

An enumeration member that specifies the shape’s geometry.

Remarks

Use the Preset property to change an existing shape’s form. The example below shows how to transform a rectangle into a rectangular callout.

// Create a rectangle.
Shape shape = document.Shapes.InsertShape(document.Range.Start, ShapeGeometryPreset.Rectangle, new RectangleF(300, 200, 500, 350));
// Change the shape's form.
shape.ShapeFormat.Preset = ShapeGeometryPreset.RectangularCallout;
See Also