[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.Drawing.ITextFrame.MarginTop

MarginTop Property

MarginTop

Gets or sets the distance, in points, between the top edge of the text frame and the top edge of the inscribed rectangle of the shape that contains the text.

Use this property to determine the inner top margin applied to text within a shape's text frame.

Declaration
float MarginTop { get; set; }
Property MarginTop As Single
Examples
IShape shape = worksheet.Shapes.AddShape(AutoShapeType.Rectangle, 10, 10, 120, 60);
ITextFrame textFrame = shape.TextFrame;
textFrame.MarginTop = 8.0f;
float marginTop = textFrame.MarginTop;