Şeklin veya Grafiğin Yansıma Efektiyle Çalışma

Olası Kullanım Senaryoları

Aspose.Cells şunları sağlar:şekil.yansıma ile birlikte mülkYansıma Etkisi şeklin veya grafiğin yansıma efektiyle çalışmak için sınıf. buYansıma Etkisiclass, uygulama gereksinimlerine göre farklı sonuçlar elde etmek için ayarlanabilen aşağıdaki özellikleri içerir.

Şeklin veya Grafiğin Yansıma Efektiyle Çalışma

Aşağıdaki örnek kod,kaynak excel dosyası ve varsayılan çalışma sayfasındaki ilk şekle erişir ve şeklin farklı özelliklerini ayarlar.şekil.yansımasınıfına kaydeder ve ardından çalışma kitabınıçıktı excel dosyası.

// 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 your source excel file
Workbook wb = new Workbook(dataDir + "sample.xlsx");
// Access first worksheet
Worksheet ws = wb.Worksheets[0];
// Access first shape
Shape sh = ws.Shapes[0];
// Set the reflection effect of the shape, set its Blur, Size, Transparency and Distance properties
ReflectionEffect re = sh.Reflection;
re.Blur = 30;
re.Size = 90;
re.Transparency = 0;
re.Distance = 80;
// Save the workbook in xlsx format
wb.Save(dataDir + "output_out.xlsx");