[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.Drawing.ITextFrame.MarginRight

MarginRight Property

MarginRight

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

This value controls the internal right margin for text displayed in a shape.

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