MergePastedLists

ImportFormatOptions.MergePastedLists property

يحصل على قيمة منطقية تحدد ما إذا كانت القوائم الملصقة سيتم دمجها مع القوائم المحيطة أم لا. القيمة الافتراضية هيخطأ شنيع .

public bool MergePastedLists { get; set; }

أمثلة

يوضح كيفية دمج القوائم من المستندات.

Document srcDoc = new Document(MyDir + "List item.docx");
Document dstDoc = new Document(MyDir + "List destination.docx");

ImportFormatOptions options = new ImportFormatOptions { MergePastedLists = true };

// قم بتعيين الخاصية "MergePastedLists" إلى "true"، سيتم دمج القوائم الملصقة مع القوائم المحيطة.
dstDoc.AppendDocument(srcDoc, ImportFormatMode.UseDestinationStyles, options);

dstDoc.Save(ArtifactsDir + "Document.MergePastedLists.docx");

أنظر أيضا