DisplayTextFormatterSupport

DisplayTextFormatterSupport

Tổng quan

DisplayTextFormatterSupport là một lớp trong Aspose.Cells FOSS cho Java.

Lớp tiện ích nội bộ để chọn và định dạng các phần văn bản hiển thị.

Phương pháp

SignatureMô tả
parseSections(formatCode: String)List<DisplayFormatSectionInfo>Phân tích mã định dạng thành danh sách các đối tượng thông tin phần.
splitSections(formatCode: String)List<String>Tách các phần.
tryParseSectionCondition(section: String, conditionOperator: String[], conditionValue: double[])booleanCố gắng xử lý điều kiện phân tích phần.
tryParseConditionToken(token: String, conditionOperator: String[], conditionValue: double[])booleanCố gắng xử lý token điều kiện phân tích.
evaluateCondition(conditionOperator: String, numericValue: double, conditionValue: double)booleanĐánh giá điều kiện.
shouldUseAbsoluteValue(section: String, numericValue: double)booleanQuá trình nên sử dụng giá trị tuyệt đối.
sanitizeNumericSection(section: String)StringLàm sạch phần số.
stripDirectiveBrackets(section: String, preserveElapsedTokens: boolean)StringLoại bỏ dấu ngoặc chỉ thị.
containsNumericPlaceholder(pattern: String)booleanKiểm tra xem nội dung có chứa chỗ giữ chỗ số không.
expandSectionPattern(pattern: String, valueText: String, replaceTextPlaceholder: boolean)StringMở rộng mẫu phần.
isNumericValue(value: Object)booleanChỉ ra liệu là giá trị số hay không.
convertToDouble(value: Object)doubleChuyển đổi sang kiểu double.
getAbsoluteNumericValue(value: Object)ObjectQuá trình lấy giá trị số tuyệt đối.
selectNumericSection(sections: List<DisplayFormatSectionInfo>, numericValue: double)DisplayFormatSectionInfoChọn phần số thích hợp dựa trên giá trị.
selectNumericSection(sections: List<DisplayFormatSectionInfo>, numericValue: double, useAbsoluteValue: boolean[])DisplayFormatSectionInfoChọn phần số thích hợp và báo cáo liệu định dạng có nên sử dụng giá trị tuyệt đối hay không.
selectTextSection(sections: List<DisplayFormatSectionInfo>)DisplayFormatSectionInfoChọn phần văn bản từ các phần định dạng.
selectDateTimeSection(sections: List<DisplayFormatSectionInfo>)DisplayFormatSectionInfoChọn phần ngày/giờ từ các phần định dạng.
 Tiếng Việt