InternalMarginLeft
TextBox.InternalMarginLeft property
Specifies the inner left margin in points for a shape.
public double InternalMarginLeft { get; set; }
Remarks
The default value is 1/10 inch.
Examples
Shows how to set internal margins for a text box.
Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);
// Insert another textbox with specific margins.
Shape textBoxShape = builder.InsertShape(ShapeType.TextBox, 100, 100);
TextBox textBox = textBoxShape.TextBox;
textBox.InternalMarginTop = 15;
textBox.InternalMarginBottom = 15;
textBox.InternalMarginLeft = 15;
textBox.InternalMarginRight = 15;
builder.MoveTo(textBoxShape.LastParagraph);
builder.Write("Text placed according to textbox margins.");
doc.Save(ArtifactsDir + "Shape.TextBoxMargins.docx");
See Also
- class TextBox
- namespace Aspose.Words.Drawing
- assembly Aspose.Words