Class ChartCollection
Namespace: Aspose.Cells.Charts
Assembly: Aspose.Cells.dll (25.2.0)
Aspose.Cells.Charts.Chart オブジェクトのコレクションをカプセル化します。
public class ChartCollection : CollectionBase<chart>, IList<chart>, ICollection<chart>, IEnumerable<chart>, ICollection, IEnumerable
継承
object ← CollectionBase<chart> ← ChartCollection
実装
IList<chart>, ICollection<chart>, IEnumerable<chart>, ICollection, IEnumerable
継承メンバー
CollectionBase<chart>.BinarySearch(Chart), CollectionBase<chart>.BinarySearch(Chart, IComparer<chart>), CollectionBase<chart>.BinarySearch(int, int, Chart, IComparer<chart>), CollectionBase<chart>.Contains(Chart), CollectionBase<chart>.CopyTo(Chart[]), CollectionBase<chart>.CopyTo(Chart[], int), CollectionBase<chart>.CopyTo(int, Chart[], int, int), CollectionBase<chart>.Exists(Predicate<chart>), CollectionBase<chart>.Find(Predicate<chart>), CollectionBase<chart>.FindAll(Predicate<chart>), CollectionBase<chart>.FindIndex(Predicate<chart>), CollectionBase<chart>.FindIndex(int, Predicate<chart>), CollectionBase<chart>.FindIndex(int, int, Predicate<chart>), CollectionBase<chart>.FindLast(Predicate<chart>), CollectionBase<chart>.FindLastIndex(Predicate<chart>), CollectionBase<chart>.FindLastIndex(int, Predicate<chart>), CollectionBase<chart>.FindLastIndex(int, int, Predicate<chart>), CollectionBase<chart>.IndexOf(Chart), CollectionBase<chart>.IndexOf(Chart, int), CollectionBase<chart>.IndexOf(Chart, int, int), CollectionBase<chart>.LastIndexOf(Chart), CollectionBase<chart>.LastIndexOf(Chart, int), CollectionBase<chart>.LastIndexOf(Chart, int, int), CollectionBase<chart>.GetEnumerator(), CollectionBase<chart>.Clear(), CollectionBase<chart>.RemoveAt(int), CollectionBase<chart>.OnClearComplete(), CollectionBase<chart>.OnClear(), CollectionBase<chart>.Capacity, CollectionBase<chart>.Count, CollectionBase<chart>.InnerList, CollectionBase<chart>.this[int], object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
例
Workbook workbook = new Workbook();
ChartCollection charts = workbook.Worksheets[0].Charts;
Dim workbook as Workbook = new Workbook()
Dim ChartCollection as Charts = workbook.Worksheets(0).Charts
プロパティ
this[int]
指定したインデックスの Aspose.Cells.Charts.Chart 要素を取得します。
public Chart this[int index] { get; }
プロパティ値
this[string]
名前によってチャートを取得します。
public Chart this[string name] { get; }
プロパティ値
備考
デフォルトのチャート名は null です。したがって、チャートの名前を明示的に設定する必要があります。
メソッド
Add(ChartType, int, int, int, int)
コレクションにチャートを追加します。
public int Add(ChartType type, int upperLeftRow, int upperLeftColumn, int lowerRightRow, int lowerRightColumn)
パラメーター
type
ChartType
チャートの種類
upperLeftRow
int
左上の行インデックス。
upperLeftColumn
int
左上の列インデックス。
lowerRightRow
int
右下の行インデックス
lowerRightColumn
int
右下の列インデックス
戻り値
Aspose.Cells.Charts.Chart オブジェクトのインデックス。
Add(byte[], string, bool, int, int, int, int)
プリセットテンプレートを使用してチャートを追加します。
public int Add(byte[] data, string dataRange, bool isVertical, int topRow, int leftColumn, int rightRow, int bottomColumn)
パラメーター
data
byte[]
チャートテンプレートファイル(.crtx)のデータ。
dataRange
string
チャートのデータ範囲を指定します。
isVertical
bool
セル値の範囲から系列を行または列でプロットするかどうかを指定します。
topRow
int
左上の行インデックス。
leftColumn
int
左上の列インデックス。
rightRow
int
右下の行インデックス
bottomColumn
int
右下の列インデックス
戻り値
Aspose.Cells.Charts.Chart オブジェクトのインデックス。
Add(ChartType, string, bool, int, int, int, int)
コレクションにチャートを追加します。
public int Add(ChartType type, string dataRange, bool isVertical, int topRow, int leftColumn, int rightRow, int bottomColumn)
パラメーター
type
ChartType
チャートの種類
dataRange
string
チャートのデータ範囲を指定します。
isVertical
bool
セル値の範囲から系列を行または列でプロットするかどうかを指定します。
topRow
int
左上の行インデックス。
leftColumn
int
左上の列インデックス。
rightRow
int
右下の行インデックス
bottomColumn
int
右下の列インデックス
戻り値
Aspose.Cells.Charts.Chart オブジェクトのインデックス。
AddFloatingChart(ChartType, int, int, int, int)
コレクションにチャートを追加します。
public int AddFloatingChart(ChartType type, int left, int top, int width, int height)
パラメーター
type
ChartType
チャートの種類
left
int
コーナーへの x オフセット
top
int
コーナーへの y オフセット
width
int
チャートの幅
height
int
チャートの高さ
戻り値
Aspose.Cells.Charts.Chart オブジェクトのインデックス。
Clear()
すべてのチャートをクリアします。
public void Clear()
RemoveAt(int)
特定のインデックスのチャートを削除します。
public void RemoveAt(int index)
パラメーター
index
int
チャートのインデックス。