DataValidation

ภาพรวม

DataValidation เป็นคลาสใน Aspose.Cells FOSS สําหรับ Typescript.

อวัตถุ DataValidation ให้คุณระบุกฎการยืนยัน, รวมถึงชนิด, ตัวประกอบ, สูตรสองตัว และตัวเลือก UI เช่น allowBlank, showDropDown, และข้อความที่กําหนดเอง.

หมวดนี้ให้ 3 วิธีในการทํางานกับวัตถุ DataValidation ในโปรแกรม Typescript. วิธีการที่ใช้ได้แก่: addArea, getRanges, toXml. สมาชิกสาธารณะทุกคนสามารถเข้าถึงการใช้งาน Typescript ได้หลังจากติดตั้งแพ็คเกจ Aspose.Cells FOSS for Typscript. คุณสมบัติ: allowBlank, errorMessage, errorStyle, errorTitle, formula1, formula2,และอีก 6 คน.

คุณสมบัติ

ชื่อประเภทAccessคําอธิบาย
typeDataValidationType["type"]อ่าน/เขียนรับประเภท.
operator`DataValidationType[“operator”]undefined`อ่าน/เขียน
formula1`stringundefined`อ่าน/เขียน
formula2`stringundefined`อ่าน/เขียน
allowBlankbooleanอ่าน/เขียนรับค่า allow blank.
showDropDownbooleanอ่าน/เขียนรับค่าแสดงดรอปดาวน์.
showInputMessagebooleanอ่าน/เขียนรับข้อความแสดงอินพุต.
inputTitle`stringundefined`อ่าน/เขียน
inputMessage`stringundefined`อ่าน/เขียน
errorTitle`stringundefined`อ่าน/เขียน
errorMessage`stringundefined`อ่าน/เขียน
errorStyle`DataValidationType[“errorStyle”]undefined`อ่าน/เขียน

วิธีการ

Signatureคําอธิบาย
addArea(range: string)เรียก addArea ในตัวอย่าง DataValidation นี้.
getRanges()CellRange[]ส่งผลให้เห็นระยะทาง.
toXml()stringเรียก toXml ในตัวอย่าง DataValidation นี้.

ดูเช่นกัน

 ภาษาไทย