windowsforms-116921-controls-and-libraries-gauges-concepts-appearance-customization-shaping-gauge-elements.md
Each gauge element comes with a set of embedded shapes that specify this element’s contour (form). Gauge elements change their shapes when you apply different gauge styles and presets, or modify the ShapeType property. If an element does not provide a shape that fits your requirements, you can create a custom shape for this element.
There are multiple gauge shapes included in the Gauges library, all derived from the base DevExpress.XtraGauges.Core.Drawing.BaseShape class as shown below.
All these shapes can be combined by their level of complexity into two groups.
Refer to this KB article for a description on each shape and an illustrated example of how to apply this or that shape to a gauge needle. Make a note that there are no special shapes for needles, shapes for background layers, shapes for spindle caps, etc.; you can apply them to any gauge element that exposes the Shape property.
Shaping any gauge element takes four steps.
Access the required element’s Shape property and cast it to the ComplexShape class. Even if your custom shape will be based on one simple shape, you have to place it within a compound shape first.
Clear your compound shape by calling the .Collection.Clear() method.
Create one or multiple simple shapes from which your ComplexShape will consist of.
Now add all simple shapes to the ComplexShape object.
Important
Modifying the ShapeType property for a gauge element will break all shape customizations made to this element and apply one of the standard embedded shapes.