ExportTextInputFormFieldAsText

HtmlSaveOptions.ExportTextInputFormFieldAsText property

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

public bool ExportTextInputFormFieldAsText { get; set; }

ملاحظات

عند ضبطه علىحقيقي ، يصدر حقول نموذج إدخال النص كنص عادي. عندماخطأ شنيع، يصدر حقول نموذج إدخال النص Word كعناصر INPUT في HTML.

عند التصدير إلى EPUB، يتم دائمًا حفظ حقول نموذج إدخال النص كنص due وفقًا لمتطلبات هذا التنسيق.

أمثلة

يوضح كيفية تحديد المجلد لتخزين الصور المرتبطة بعد حفظها في .html.

Document doc = new Document(MyDir + "Rendering.docx");

string imagesDir = Path.Combine(ArtifactsDir, "SaveHtmlWithOptions");

if (Directory.Exists(imagesDir))
    Directory.Delete(imagesDir, true);

Directory.CreateDirectory(imagesDir);

// تعيين خيار لتصدير حقول النموذج كنص عادي بدلاً من عناصر إدخال HTML.
HtmlSaveOptions options = new HtmlSaveOptions(SaveFormat.Html)
{
    ExportTextInputFormFieldAsText = true, 
    ImagesFolder = imagesDir
};

doc.Save(ArtifactsDir + "HtmlSaveOptions.SaveHtmlWithOptions.html", options);

أنظر أيضا