LastParagraph
Shape.LastParagraph property
获取形状中的最后一段。
public Paragraph LastParagraph { get; }
例子
演示如何设置文本框中文本的方向。
Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);
Shape textBoxShape = builder.InsertShape(ShapeType.TextBox, 150, 100);
TextBox textBox = textBoxShape.TextBox;
// 将文档生成器移动到文本框内部并添加文本。
builder.MoveTo(textBoxShape.LastParagraph);
builder.Writeln("Hello world!");
builder.Write("Hello again!");
// 设置“LayoutFlow”属性来设置此文本框的文本内容的方向。
textBox.LayoutFlow = layoutFlow;
doc.Save(ArtifactsDir + "Shape.TextBoxLayoutFlow.docx");
也可以看看
- class Paragraph
- class Shape
- 命名空间 Aspose.Words.Drawing
- 部件 Aspose.Words