ThreeDFormat of Shape veya Chart ile Çalışma
Contents
[
Hide
]
Olası Kullanım Senaryoları
Aspose.Cells şunları sağlar:Shape.ThreeDFormat ile birlikte mülkÜçDFormat şeklin veya grafiğin 3-B Formatıyla çalışmak için sınıf. buÜçDFormatclass, uygulama gereksinimlerine göre farklı sonuçlar elde etmek için ayarlanabilen farklı özellikler içerir.
ThreeDFormat of Shape veya Chart ile Çalışma
Aşağıdaki örnek kod,kaynak excel dosyası ve ilk çalışma sayfasındaki ilk şekle erişir ve alt özelliklerini ayarlar.Shape.ThreeDFormatözelliğine ve ardından çalışma kitabını şuraya kaydeder:çıktı excel dosyası.
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 | |
// The path to the documents directory. | |
string dataDir = RunExamples.GetDataDir(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); | |
// Load excel file containing a shape | |
Workbook wb = new Workbook(dataDir + "sample.xlsx"); | |
// Access first worksheet | |
Worksheet ws = wb.Worksheets[0]; | |
// Access first shape | |
Shape sh = ws.Shapes[0]; | |
// Apply different three dimensional settings | |
ThreeDFormat n3df = sh.ThreeDFormat; | |
n3df.ContourWidth = 17; | |
n3df.ExtrusionHeight = 32; | |
// Save the output excel file in xlsx format | |
wb.Save(dataDir + "output_out.xlsx"); |