GridDesktop'ta çalışma kitabını yüklerken nesneleri filtreleme
Contents
[
Hide
]
Olası Kullanım Senaryoları
Lütfen kullanGridDesktop.LoadDataFilterçalışma kitabından verileri filtrelerken özelliği.
buGridLoadDataFilterOptionsnumaralandırma aşağıdaki değerlere sahiptir.
- Herşey
- Kitap Ayarları
- HücreBlank
- HücreBool
- Hücre Verileri
- hücre hatası
- HücreSayısal
- hücre dizisi
- Hücre Değeri
- Çizelge
- Koşullu biçimlendirme
- Veri doğrulama
- tanımlı adlar
- Döküman özellikleri
- formül
- köprüler
- BirleştirilmişAlan
- Pivot tablo
- Ayarlar
- Şekil
- SheetData
- Sayfa Ayarları
- Yapı
- stil
- Masa
- VBA
- XmlMap
Çalışma Kitabını Yüklerken verileri filtreleme
Aşağıdaki örnek kod, çizimin çalışma kitabından nasıl filtreleneceğini gösterir. lütfen kontrol edinizörnek excel dosyası . Gördüğünüz gibi, tüm çizelgeler/şekiller/resimler çalışma kitabından filtrelendi.
Basit kod
This file contains hidden or 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
// Filter all drawing objects(including Chart, Picture, OleObject and all other drawing objects) from the workbook. | |
gridDesktop1.LoadDataFilter = GridLoadDataFilterOptions.All&~GridLoadDataFilterOptions.Drawing; | |
//here is another example ,if we want to filter to show styles and values only, we can use the below code ,notice here we use | | |
// gridDesktop1.LoadDataFilter = GridLoadDataFilterOptions.CellValue | GridLoadDataFilterOptions.Style; | |
gridDesktop1.ImportExcelFile("5472489.xlsx"); | |