Class Floor
Class Floor
Namespace: Aspose.Cells.Charts
Assembly: Aspose.Cells.dll (25.2.0)
3-D 차트의 바닥을 나타내는 객체를 캡슐화합니다.
public class Floor : Area
상속
파생
상속된 멤버
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()
예제
// 라이센스 클래스 인스턴스화
Aspose.Cells.License license = new Aspose.Cells.License();
// 어셈블리에 포함된 라이센스 파일의 이름만 전달
license.SetLicense("Aspose.Cells.lic");
// 워크북 객체 인스턴스화
Workbook workbook = new Workbook();
// 셀 컬렉션 가져오기
Cells cells = workbook.Worksheets[0].Cells;
// 셀에 값 넣기
cells["A1"].PutValue(1);
cells["A2"].PutValue(2);
cells["A3"].PutValue(3);
// 차트 컬렉션 가져오기
ChartCollection charts = workbook.Worksheets[0].Charts;
// 새 차트 추가
int index = charts.Add(ChartType.Column3DStacked, 5, 0, 15, 5);
// 새로 추가된 차트 가져오기
Chart chart = charts[index];
// 차트의 n시리즈 설정
chart.NSeries.Add("A1:A3", true);
// 데이터 레이블 표시
chart.NSeries[0].DataLabels.ShowValue = true;
// 차트의 바닥 가져오기
Floor floor = chart.Floor;
// 바닥의 테두리를 빨간색으로 설정
floor.Border.Color = System.Drawing.Color.Red;
// 채우기 형식 설정
floor.FillFormat.SetPresetColorGradient(GradientPresetType.CalmWater, GradientStyleType.DiagonalDown, 2);
// 파일 저장
workbook.Save(@"dest.xls");
' 라이센스 클래스 인스턴스화
Dim license As New Aspose.Cells.License()
' 어셈블리에 포함된 라이센스 파일의 이름만 전달
license.SetLicense("Aspose.Cells.lic")
' 워크북 객체 인스턴스화
Dim workbook As Workbook = New Workbook()
' 셀 컬렉션 가져오기
Dim cells As Cells = workbook.Worksheets(0).Cells
' 셀에 값 넣기
cells("A1").PutValue(1)
cells("A2").PutValue(2)
cells("A3").PutValue(3)
' 차트 컬렉션 가져오기
Dim charts As ChartCollection = workbook.Worksheets(0).Charts
' 새 차트 추가
Dim index As Integer = charts.Add(ChartType.Column3DStacked, 5, 0, 15, 5)
' 새로 추가된 차트 가져오기
Dim chart As Chart = charts(index)
' 차트의 n시리즈 설정
chart.NSeries.Add("A1:A3", True)
' 데이터 레이블 표시
chart.NSeries(0).DataLabels.ShowValue = True
' 차트의 바닥 가져오기
Dim floor As Floor = chart.Floor
' 바닥의 테두리를 빨간색으로 설정
floor.Border.Color = System.Drawing.Color.Red
' 채우기 형식 설정
floor.FillFormat.SetPresetColorGradient(GradientPresetType.CalmWater, GradientStyleType.DiagonalDown, 2)
' 파일 저장
workbook.Save("dest.xls")
필드
m_SpPr
protected ShapePropertyCollection m_SpPr
필드 값
속성
Border
Aspose.Cells.Drawing.Line의 테두리를 가져오거나 설정합니다.
public Line Border { get; set; }