DefaultTextLanguage
LoadOptions.DefaultTextLanguage-Eigenschaft
Gibt die Standardsprache für Präsentationstext zurück oder setzt sie. Lese-/Schreib-String.
public string DefaultTextLanguage { get; set; }
Beispiele
Beispiel:
[C#]
// Verwenden Sie load options, um die Standardtextkultur zu definieren
LoadOptions loadOptions = new LoadOptions();
loadOptions.DefaultTextLanguage = "en-US";
using (Presentation pres = new Presentation(loadOptions))
{
// Fügen Sie eine neue Rechteckform mit Text hinzu
IAutoShape shp = pres.Slides[0].Shapes.AddAutoShape(ShapeType.Rectangle, 50, 50, 150, 50);
shp.TextFrame.Text = "Neuer Text";
// Überprüfen Sie die Sprache des ersten Portions
Console.WriteLine(shp.TextFrame.Paragraphs[0].Portions[0].PortionFormat.LanguageId);
}
Siehe Auch
- Klasse LoadOptions
- Namespace Aspose.Slides
- Assembly Aspose.Slides