DisplayTextFormatterSupport
ภาพรวม
DisplayTextFormatterSupport เป็นคลาสใน Aspose.Cells FOSS สำหรับ Java.
คลาสยูทิลิตี้ภายในสำหรับการเลือกและจัดรูปแบบส่วนของข้อความที่แสดงผล
วิธีการ
| ลายเซ็น | คำอธิบาย |
|---|---|
parseSections(formatCode: String) → List<DisplayFormatSectionInfo> | แยกโค้ดรูปแบบเป็นรายการของอ็อบเจ็กต์ข้อมูลส่วน |
splitSections(formatCode: String) → List<String> | แยกส่วน |
tryParseSectionCondition(section: String, conditionOperator: String[], conditionValue: double[]) → boolean | พยายามประมวลผลเงื่อนไขการแยกส่วน |
tryParseConditionToken(token: String, conditionOperator: String[], conditionValue: double[]) → boolean | พยายามประมวลผลโทเค็นเงื่อนไขการแยก |
evaluateCondition(conditionOperator: String, numericValue: double, conditionValue: double) → boolean | ประเมินเงื่อนไข |
shouldUseAbsoluteValue(section: String, numericValue: double) → boolean | การประมวลผลควรใช้ค่าตัวเลขสัมบูรณ์ |
sanitizeNumericSection(section: String) → String | ทำความสะอาดส่วนตัวเลข |
stripDirectiveBrackets(section: String, preserveElapsedTokens: boolean) → String | ลบวงเล็บคำสั่ง |
containsNumericPlaceholder(pattern: String) → boolean | ตรวจสอบว่าข้อมูลมีตัวแทนตัวเลขหรือไม่ |
expandSectionPattern(pattern: String, valueText: String, replaceTextPlaceholder: boolean) → String | ขยายรูปแบบส่วน |
isNumericValue(value: Object) → boolean | ระบุว่ามีค่าตัวเลขหรือไม่ |
convertToDouble(value: Object) → double | แปลงเป็น double |
getAbsoluteNumericValue(value: Object) → Object | กระบวนการรับค่าตัวเลขสัมบูรณ์ |
selectNumericSection(sections: List<DisplayFormatSectionInfo>, numericValue: double) → DisplayFormatSectionInfo | เลือกส่วนตัวเลขที่เหมาะสมตามค่า |
selectNumericSection(sections: List<DisplayFormatSectionInfo>, numericValue: double, useAbsoluteValue: boolean[]) → DisplayFormatSectionInfo | เลือกส่วนตัวเลขที่เหมาะสมและรายงานว่าการจัดรูปแบบควรใช้ค่าตัวเลขสัมบูรณ์หรือไม่ |
selectTextSection(sections: List<DisplayFormatSectionInfo>) → DisplayFormatSectionInfo | เลือกส่วนข้อความจากส่วนรูปแบบ |
selectDateTimeSection(sections: List<DisplayFormatSectionInfo>) → DisplayFormatSectionInfo | เลือกส่วนวันที่/เวลา จากส่วนรูปแบบ |