Skip to main content
All docs
V22.2

DiagramDefaultItemProperties.ShapeMaxHeight Property

Specifies the maximum height of a shape.

Namespace: DevExpress.Web.ASPxDiagram

Assembly: DevExpress.Web.ASPxDiagram.v22.2.dll

NuGet Package: DevExpress.Web

Declaration

[DefaultValue(typeof(decimal), "-1")]
public decimal ShapeMaxHeight { get; set; }

Property Value

Type Default Description
Decimal "-1"

The height, in units.

Remarks

Use the following properties to specify resizing restrictions for every shape: ShapeMaxHeight, ShapeMaxWidth, ShapeMinHeight, and ShapeMinWidth.

<dx:ASPxDiagram ID="Diagram" runat="server" Width="100%" Height="600px" Units="In">
         <DefaultItemProperties 
            ShapeMaxHeight="1" ShapeMaxWidth="1.5"
            ShapeMinHeight="0.5" ShapeMinWidth="0.75"/>
         ...
</dx:ASPxDiagram>

Use the properties of the DiagramCustomShape object (for instance, MaxHeight) to specify restrictions for a custom shape.

See Also