Skip to main content

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

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