Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

IdxRichEditShape.MarginTop Property

Specifies the top margin (in the parent document’s measurement units) between the floating shape’s rectangle and the parent document’s text.

#Declaration

Delphi
property MarginTop: Single read; write;

#Property Value

Type
Single

#Remarks

Use this property to expand or shrink the gap between the floating shape’s top border and the text that wraps around the shape in its parent document:

The floating shape overlaps the parent document’s text if the MarginTop property is set to a negative value. The shape overlaps the text completely if the sum of the MarginTop and Size.cy property values is equal to or less than zero.

The MarginTop and MarginBottom properties have no effect if the TextWrapping property is set to TdxRichEditTextWrappingType.BehindText or TdxRichEditTextWrappingType.InFrontOfText.

The default MarginTop property value is 0.

See Also