เอกสาร HotXLS

คุณสมบัติ DisableFormat

อนุญาตให้ป้องกันการจัดรูปแบบบางประเภท ค่าเริ่มต้นคือ [] อ่าน/เขียน TFormatOptions

ไวยากรณ์

property DisableFormat: TFormatOptions;

ตัวอย่าง

TFormatOption = (foBorders, foNumberFormat, foFont, foAlignment);
TFormatOptions = set of TFormatOption;

ตัวอย่าง

ตัวอย่างนี้ตั้งค่า DisableFormat เพื่อป้องกันการเปลี่ยน Font และ NumberFormat

DataToXLS1.DisableFormat := [foFont, foNumberFormat];