AutoHyphenation
HyphenationOptions.AutoHyphenation property
Hämtar eller anger värde som avgör om automatisk bindestreck är aktiverat för dokumentet. Standardvärde för den här egenskapen ärfalsk
.
public bool AutoHyphenation { get; set; }
Exempel
Visar hur man konfigurerar automatisk bindestreck.
Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);
builder.Font.Size = 24;
builder.Writeln("Lorem ipsum dolor sit amet, consectetur adipiscing elit, " +
"sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.");
doc.HyphenationOptions.AutoHyphenation = true;
doc.HyphenationOptions.ConsecutiveHyphenLimit = 2;
doc.HyphenationOptions.HyphenationZone = 720;
doc.HyphenationOptions.HyphenateCaps = true;
doc.Save(ArtifactsDir + "Document.HyphenationOptions.docx");
Se även
- class HyphenationOptions
- namnutrymme Aspose.Words.Settings
- hopsättning Aspose.Words