DataValidation

ภาพรวม

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

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

คุณสมบัติ

ชื่อประเภทการเข้าถึงคำอธิบาย
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`อ่าน/เขียน

วิธีการ

ลายเซ็นคำอธิบาย
addArea(range: string)เรียกใช้ addArea(range) บนอินสแตนซ์ DataValidation นี้.
getRanges() → CellRange[]คืนช่วง.
toXml() → stringเรียกใช้ toXml บนอินสแตนซ์ DataValidation นี้.

ดูเพิ่มเติม

 ภาษาไทย