Skip to main content
A newer version of this page is available. .
Tab

Margins.Margin Property

Gets or sets the common margin value for all four edges.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v18.2.dll

Declaration

[DefaultValue(typeof(Unit), "")]
public Unit Margin { get; set; }

Property Value

Type Default Description
Unit String.Empty

A Unit that is the margin value.

Remarks

Use the Margin property to specify the amount of space around the outside of a rectangular UI element.

The margin values for particular edges (top, bottom, left or right) can be specified using the corresponding properties of the current object (Margins.MarginTop, Margins.MarginBottom, Margins.MarginLeft or Margins.MarginRight). Note that margin values of a particular edge override the value defined via the Margin property.

See Also