TextStyle.Language
TextStyle.Language property
Mendapat atau menyetel bahasa teks.
public CultureInfo Language { get; set; }
Perkataan
PengembalianInvariantCulture jika properti tidak diatur.
Contoh
Atur bahasa pemeriksaan untuk teks.
var document = new Document();
var page = new Page();
var outline = new Outline();
var outlineElem = new OutlineElement();
var text = new RichText() { ParagraphStyle = ParagraphStyle.Default };
text.Append("United States", new TextStyle() { Language = CultureInfo.GetCultureInfo("en-US") })
.Append(" Germany", new TextStyle() { Language = CultureInfo.GetCultureInfo("de-DE") })
.Append(" China", new TextStyle() { Language = CultureInfo.GetCultureInfo("zh-CN") });
outlineElem.AppendChildLast(text);
outline.AppendChildLast(outlineElem);
page.AppendChildLast(outline);
document.AppendChildLast(page);
document.Save(Path.Combine(RunExamples.GetDataDir_Text(), "SetProofingLanguageForText.one"));
Lihat juga
- class TextStyle
- ruang nama Aspose.Note
- perakitan Aspose.Note