XlsxWorkbookArchiveHelpers

XlsxWorkbookArchiveHelpers

Overview

XlsxWorkbookArchiveHelpers là một lớp trong Aspose.Cells FOSS cho C++.

Phương pháp hỗ trợ nội bộ để đọc các phần sổ làm việc XLSX từ một lưu trữ ZIP.

Khóa học này cung cấp 21 phương pháp để làm việc với các đối tượng XlsxWorkbookArchiveHelpers trong các chương trình C++. Các phương pháp có sẵn bao gồm: AddIssue, EnsureSeekable, FindRelationshipTarget, FindRelationshipTargetByType, GetEntry, GetRelationshipTargetKind, LoadDateStyleIndexes, LoadDocument, LoadRelationships, LoadSharedStrings, LooksLikeDateFormat, NormalizeFormula,9 phương pháp bổ sung. Tất cả các thành viên công cộng đều có thể truy cập vào bất kỳ ứng dụng C++ nào sau khi cài đặt Aspose.Cells FOSS cho gói C ++.

Methods

SignatureDescription
XlsxWorkbookArchiveHelpers()Hãy gọi XlsxWorkbookArchiveHelpers trên trường hợp này XlsxWorkbookArchiveHelpers.
EnsureSeekable(stream: std::vector<uint8_t>)std::vector<uint8_t>Bảo đảm rằng byte buffer có thể được tìm kiếm (tính danh cho dữ liệu trong bộ nhớ).
GetEntry(archive: ZipArchive, uri: std::string_view)ZipArchiveEntryNhận một nhập ZIP bởi URI, bình thường hóa các vết nứt hàng đầu và vết sẹo.
LoadDocument(entry: ZipArchiveEntry)XmlDocumentTải một tài liệu XML từ một bản nhập ZIP.
LoadRelationships(archive: ZipArchive, relationshipsUri: std::string_view, sourceUri: std::string_view)std::unordered_map<std::string, std::string>Tải về các mối quan hệ từ một tệp .rels trong lưu trữ.
FindRelationshipTarget(workbookRelationships: std::unordered_map<std::string, std::string>, expectedPath: std::string_view)std::stringTìm mục tiêu mối quan hệ đầu tiên mà con đường được giải quyết sẽ đua với những trận đấu mong đợi.
FindRelationshipTargetByType(workbookRelationships: std::unordered_map<std::string, std::string>, relationshipType: std::string_view)std::stringTìm mục tiêu mối quan hệ đầu tiên mà sự kết thúc của tình yêu phù hợp với mối liên hệType.
LoadSharedStrings(archive: ZipArchive, workbookRelationships: std::unordered_map<std::string, std::string>, options: LoadOptions, diagnostics: LoadDiagnostics)std::vector<std::string>Tải bảng chia sẻ dây từ lưu trữ.
LoadDateStyleIndexes(archive: ZipArchive, workbookRelationships: std::unordered_map<std::string, std::string>, options: LoadOptions, diagnostics: LoadDiagnostics)std::unordered_set<int>Tải về bộ các chỉ số định dạng ô sử dụng định hình số ngày.
ParseBoolAttribute(attribute: XmlAttribute)boolParses một thuộc tính boolean (“1” hoặc “truyền thực” kết quả là đúng).
ParseIntAttribute(attribute: XmlAttribute)std::optional<int>Tùy chọn một thuộc tính toàn diện, trả về trống trên thất bại hoặc không thuộc về.
ParseDoubleAttribute(attribute: XmlAttribute)std::optional<double>Thẻ một thuộc tính đôi, trả về trống trên thất bại hoặc không thuộc về.
NormalizeFormula(value: std::string_view)std::stringTự chuẩn hóa một dòng công thức bằng cách trượt và cắt một ‘=’ dẫn đầu.
ReadInlineString(inlineStringElement: XmlElement)std::stringĐọc văn bản được kết hợp từ một yếu tố inline-string.
TryParseNumber(rawValue: std::string_view, numberValue: CellValue)boolCố gắng phân chia một dòng nguyên chất như một số (int hoặc double).
AddIssue(diagnostics: LoadDiagnostics, options: LoadOptions, issue: LoadIssue)Ghi lại một vấn đề tải và thông báo cho cuộc gọi cảnh báo nếu có.
ResolveWorksheetUri(sheetIndex: int, relationshipId: std::string_view, workbookRelationships: std::unordered_map<std::string, std::string>, archive: ZipArchive, diagnostics: LoadDiagnostics, sheetName: std::string_view, options: LoadOptions)std::stringGiải quyết phần URI của bảng tính từ một ID mối quan hệ, rơi trở lại với thỏa thuận.
ResolvePartUri(sourceUri: std::string_view, target: std::string_view)std::stringGiải quyết một mục tiêu tương đối hoặc tuyệt đối chống lại nguồn URI.
RelationshipPointsTo(candidate: std::string_view, expectedUri: std::string_view)boolKiểm tra xem một con đường ứng cử viên có phù hợp với URI (không nhạy cảm về trường hợp) được mong đợi hay không.
GetRelationshipTargetKind(candidate: std::string_view)std::stringTăng loại mối quan hệ từ một con đường mục tiêu được giải quyết.
LooksLikeDateFormat(formatCode: std::string_view)boolKiểm tra xem mã định dạng số có giống như định hình ngày/giờ hay không.

See Also

 Tiếng Việt