Class ChartCollection

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

상속

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

속성 값

Chart

this[string]

이름으로 차트를 가져옵니다.

public Chart this[string name] { get; }

속성 값

Chart

비고

기본 차트 이름은 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

오른쪽 하단 열 인덱스

반환

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

오른쪽 하단 열 인덱스

반환

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

오른쪽 하단 열 인덱스

반환

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

차트 높이

반환

int

Aspose.Cells.Charts.Chart 객체 인덱스.

Clear()

모든 차트를 지웁니다.

public void Clear()

RemoveAt(int)

특정 인덱스에서 차트를 제거합니다.

public void RemoveAt(int index)

매개변수

index int

차트 인덱스.

 한국어