Formula
Cell.Formula property
Şunun formülünü alır veya ayarlar:Cell
.
public string Formula { get; set; }
Notlar
Bir formül dizesi her zaman eşittir işaretiyle (=) başlar. Ve lütfen parametre sınırlayıcı olarak her zaman virgül(,) kullanın, örneğin “=SUM(A1, E1, H2)”.
Örnekler
[C#]
Workbook excel = new Workbook();
Cells cells = excel.Worksheets[0].Cells;
cells["B6"].Formula = "=SUM(B2:B5, E1) + sheet1!A1";
[Visual Basic]
Dim excel As Workbook = New Workbook()
Dim cells As Cells = excel.Worksheets(0).Cells
cells("B6").Formula = "=SUM(B2:B5, E1) + sheet1!A1"
Ayrıca bakınız
- class Cell
- ad alanı Aspose.Cells
- toplantı Aspose.Cells