TextWrapping
Contenuti
[
Nascondere
]Table.TextWrapping property
Ottiene o impostaTextWrapping
per la tabella.
public TextWrapping TextWrapping { get; set; }
Esempi
Mostra come lavorare con l’interruzione di testo nelle tabelle.
Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);
Table table = builder.StartTable();
builder.InsertCell();
builder.Write("Cell 1");
builder.InsertCell();
builder.Write("Cell 2");
builder.EndTable();
table.PreferredWidth = PreferredWidth.FromPoints(300);
builder.Font.Size = 16;
builder.Writeln("Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.");
// Imposta la proprietà "TextWrapping" su "TextWrapping.Around" per far sì che la tabella disponga il testo attorno ad essa,
// e spingerlo nel paragrafo sottostante impostando la posizione.
table.TextWrapping = TextWrapping.Around;
table.AbsoluteHorizontalDistance = 100;
table.AbsoluteVerticalDistance = 20;
doc.Save(ArtifactsDir + "Table.WrapText.docx");
Guarda anche
- enum TextWrapping
- class Table
- spazio dei nomi Aspose.Words.Tables
- assemblea Aspose.Words