HTML'e kaydederken CrossHideRight ile Yer Paylaşımlı İçeriği Gizleme
Contents
[
Hide
]
Olası Kullanım Senaryoları
Excel dosyanızı HTML’e kaydettiğinizde, hücre dizileri için farklı çapraz tipler belirleyebilirsiniz. Varsayılan olarak, Aspose.Cells, Microsoft Excel’e göre HTML’i oluşturur, ancak çapraz türü olarak değiştirdiğinizdeCrossHideRight, ardından hücrenin sağ tarafında, hücre dizisiyle örtüşen veya örtüşen tüm dizeleri gizler.
Html’ye kaydederken Bindirilmiş İçeriği CrossHideRight ile Gizleme
Aşağıdaki örnek kod,örnek excel dosyası ve onu kaydederçıkış HTML ayarladıktan sonraHtmlSaveOptions.HtmlCrossStringTypeolarakCrossHideRight. Ekran görüntüsü nasıl olduğunu açıklıyorCrossHideRightvarsayılan çıkıştan HTML çıkışını etkiler.
Basit kod
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-.NET | |
//Load sample Excel file | |
Workbook wb = new Workbook(sourceDir + "sampleHidingOverlaidContentWithCrossHideRightWhileSavingToHtml.xlsx"); | |
//Specify HtmlSaveOptions - Hide Overlaid Content with CrossHideRight while saving to Html | |
HtmlSaveOptions opts = new HtmlSaveOptions(); | |
opts.HtmlCrossStringType = HtmlCrossType.CrossHideRight; | |
//Save to HTML with HtmlSaveOptions | |
wb.Save(outputDir + "outputHidingOverlaidContentWithCrossHideRightWhileSavingToHtml.html", opts); |