Shape
Overview
Shape is a struct in Aspose.Cells FOSS for Rust.
Represents a drawing object (auto shape) anchored to a worksheet.
This struct provides 21 methods for working with Shape objects in Rust programs.
Available methods include: auto_shape_type, auto_shape_type_to_geometry, delete, geometry_to_auto_shape_type, get_auto_shape_type, get_lower_right_column, get_lower_right_row, get_name, get_upper_left_column, get_upper_left_row, lower_right_column, lower_right_row, and 9 additional methods.
All public members are accessible to any Rust application after installing the Aspose.Cells FOSS for Rust package.
Methods
| Signature | Description |
|---|---|
upper_left_row() → u32 | Gets the zero-based row index of the upper-left anchor cell. |
get_upper_left_row() → u32 | Gets the zero-based row index of the upper-left anchor cell. |
set_upper_left_row(value: u32) → Result<(), CellsError> | Sets the zero-based row index of the upper-left anchor cell. |
upper_left_column() → u32 | Gets the zero-based column index of the upper-left anchor cell. |
get_upper_left_column() → u32 | Gets the zero-based column index of the upper-left anchor cell. |
set_upper_left_column(value: u32) → Result<(), CellsError> | Sets the zero-based column index of the upper-left anchor cell. |
lower_right_row() → u32 | Gets the zero-based row index of the lower-right anchor cell. |
get_lower_right_row() → u32 | Gets the zero-based row index of the lower-right anchor cell. |
set_lower_right_row(value: u32) → Result<(), CellsError> | Sets the zero-based row index of the lower-right anchor cell. |
lower_right_column() → u32 | Gets the zero-based column index of the lower-right anchor cell. |
get_lower_right_column() → u32 | Gets the zero-based column index of the lower-right anchor cell. |
set_lower_right_column(value: u32) → Result<(), CellsError> | Sets the zero-based column index of the lower-right anchor cell. |
auto_shape_type() → AutoShapeType | Gets the shape type. |
get_auto_shape_type() → AutoShapeType | Gets the shape type. |
set_auto_shape_type(value: AutoShapeType) | Sets the shape type. |
name() → &str | Gets the display name of the shape. |
get_name() → &str | Gets the display name of the shape. |
set_name(value: impl Into<String>) | Sets the display name of the shape. |
delete() | Deletes this item from its owning collection. |
auto_shape_type_to_geometry(shape_type: AutoShapeType) → String | Converts an auto shape type to its DrawingML geometry name. |
geometry_to_auto_shape_type(prst: String) → AutoShapeType | Converts a DrawingML geometry name to an auto shape type. |