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; }