EndMustacheTag
MailMergeRegionInfo.EndMustacheTag property
Returnerar en slut-“mustasch”-tagg för regionen.
public MustacheTag EndMustacheTag { get; }
Exempel
Visar hur man arbetar med mustaschtaggarna.
Document document = new Document(MyDir + "Mail merge mustache tags.docx");
document.MailMerge.UseNonMergeFields = true;
MailMergeRegionInfo hierarchy = document.MailMerge.GetRegionsHierarchy();
foreach (MustacheTag mustacheTag in hierarchy.MustacheTags)
{
Console.WriteLine(mustacheTag.Text);
Console.WriteLine(mustacheTag.ReferenceOffset);
Console.WriteLine(mustacheTag.ReferenceRun);
}
foreach (MailMergeRegionInfo region in hierarchy.Regions)
{
Console.WriteLine(region.StartMustacheTag.Text);
Console.WriteLine(region.EndMustacheTag.Text);
}
Se även
- class MustacheTag
- class MailMergeRegionInfo
- namnutrymme Aspose.Words.MailMerging
- hopsättning Aspose.Words