ChartCollection

ChartCollection

Overview

ChartCollection is a struct in Aspose.Cells FOSS for Rust.

Represents collection of charts on a worksheet.

This struct provides 6 methods for working with ChartCollection objects in Rust programs. Available methods include: add, count, get, get_count, item, remove_at. All public members are accessible to any Rust application after installing the Aspose.Cells FOSS for Rust package.

Methods

SignatureDescription
count()usizeGets the number of charts on the worksheet.
get_count()i32Gets the number of charts on the worksheet.
add(chart_type: ChartType, data_range: String, upper_left_row: i32, upper_left_column: i32, lower_right_row: i32, lower_right_column: i32)Result<i32, CellsError>Adds a new chart of the specified type to the worksheet.
get(index: usize)Option<Chart<'_>>Gets the chart at the specified zero-based index.
item(index: usize)Option<Chart<'_>>Gets the chart at the specified zero-based index.
remove_at(index: usize)Result<(), CellsError>Removes the chart at the specified zero-based index.

See Also