DataValidation

Overview

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 คน.

Properties

NameTypeAccessDescription
typeDataValidationType["type"]อ่าน/เขียนได้รับชนิด.
operator`DataValidationType[“operator”]undefined`อ่าน/เขียน
formula1`stringundefined`อ่าน/เขียน
formula2`stringundefined`อ่าน/เขียน
allowBlankbooleanอ่าน/เขียนได้รับการอนุญาตว่างเปล่า.
showDropDownbooleanอ่าน/เขียนทําให้รายการลดลง.
showInputMessagebooleanอ่าน/เขียนได้รับข้อความการเข้ารายการ.
inputTitle`stringundefined`อ่าน/เขียน
inputMessage`stringundefined`อ่าน/เขียน
errorTitle`stringundefined`อ่าน/เขียน
errorMessage`stringundefined`อ่าน/เขียน
errorStyle`DataValidationType[“errorStyle”]undefined`อ่าน/เขียน

Methods

SignatureDescription
addArea(range: string)เรียก addArea ในตัวอย่าง DataValidation นี้.
getRanges()CellRange[]ส่งผลการตรวจสอบกลับมา.
toXml()stringเรียก toXml ในตัวอย่าง DataValidation นี้.

See Also

 ภาษาไทย