Class Floor
Class Floor
Namespace: Aspose.Cells.Charts
Assembly: Aspose.Cells.dll (25.2.0)
Mengenkapsulasi objek yang mewakili lantai dari grafik 3-D.
public class Floor : Area
Pewarisan
Turunan
Anggota yang Dwarisi
Area.BackgroundColor, Area.ForegroundColor, Area.Formatting, Area.InvertIfNegative, Area.FillFormat, Area.Transparency, object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Contoh
//Instansiasi kelas Lisensi
Aspose.Cells.License license = new Aspose.Cells.License();
//Hanya masukkan nama file lisensi yang disematkan dalam assembly
license.SetLicense("Aspose.Cells.lic");
//Instansiasi objek workbook
Workbook workbook = new Workbook();
//Ambil koleksi sel
Cells cells = workbook.Worksheets[0].Cells;
//Masukkan nilai ke dalam sel
cells["A1"].PutValue(1);
cells["A2"].PutValue(2);
cells["A3"].PutValue(3);
//ambil koleksi grafik
ChartCollection charts = workbook.Worksheets[0].Charts;
//tambahkan grafik baru
int index = charts.Add(ChartType.Column3DStacked, 5, 0, 15, 5);
//ambil grafik yang baru ditambahkan
Chart chart = charts[index];
//atur seri grafik
chart.NSeries.Add("A1:A3", true);
//Tampilkan label data
chart.NSeries[0].DataLabels.ShowValue = true;
//Ambil lantai grafik
Floor floor = chart.Floor;
//atur border lantai menjadi merah
floor.Border.Color = System.Drawing.Color.Red;
//atur format pengisian
floor.FillFormat.SetPresetColorGradient(GradientPresetType.CalmWater, GradientStyleType.DiagonalDown, 2);
//simpan file
workbook.Save(@"dest.xls");
'Instansiasi kelas Lisensi
Dim license As New Aspose.Cells.License()
'Pass hanya nama file lisensi yang disematkan dalam assembly
license.SetLicense("Aspose.Cells.lic")
'Instansiasi objek workbook
Dim workbook As Workbook = New Workbook()
'Ambil koleksi sel
Dim cells As Cells = workbook.Worksheets(0).Cells
'Masukkan nilai ke dalam sel
cells("A1").PutValue(1)
cells("A2").PutValue(2)
cells("A3").PutValue(3)
'ambil koleksi grafik
Dim charts As ChartCollection = workbook.Worksheets(0).Charts
'tambahkan grafik baru
Dim index As Integer = charts.Add(ChartType.Column3DStacked, 5, 0, 15, 5)
'ambil grafik yang baru ditambahkan
Dim chart As Chart = charts(index)
'set seri grafik
chart.NSeries.Add("A1:A3", True)
'Tampilkan label data
chart.NSeries(0).DataLabels.ShowValue = True
'Ambil lantai grafik
Dim floor As Floor = chart.Floor
'set border lantai menjadi merah
floor.Border.Color = System.Drawing.Color.Red
'set format pengisian
floor.FillFormat.SetPresetColorGradient(GradientPresetType.CalmWater, GradientStyleType.DiagonalDown, 2)
'simpan file
workbook.Save("dest.xls")
Field
m_SpPr
protected ShapePropertyCollection m_SpPr
Nilai Field
Properti
Border
Mengambil atau menetapkan border Aspose.Cells.Drawing.Line.
public Line Border { get; set; }