MaxCharactersPerLine
Contents
[
Hide
]TxtSaveOptions.MaxCharactersPerLine property
Gets or sets an integer value that specifies the maximum number of characters per one line. The default value is 0, that means no limit.
public int MaxCharactersPerLine { get; set; }
Examples
Shows how to set maximum number of characters per line.
Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);
builder.Write("Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. " +
"Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.");
// Set 30 characters as maximum allowed per one line.
TxtSaveOptions saveOptions = new TxtSaveOptions { MaxCharactersPerLine = 30 };
doc.Save(ArtifactsDir + "TxtSaveOptions.MaxCharactersPerLine.txt", saveOptions);
See Also
- class TxtSaveOptions
- namespace Aspose.Words.Saving
- assembly Aspose.Words