Comment
Overview
Comment is a struct in Aspose.Cells FOSS for Rust.
Represents a worksheet comment (legacy note) anchored to a single cell.
This struct provides 23 methods for working with Comment objects in Rust programs.
Available methods include: author, cell_name, column, delete, get_author, get_cell_name, get_column, get_height, get_is_visible, get_note, get_row, get_width, and 11 additional methods.
All public members are accessible to any Rust application after installing the Aspose.Cells FOSS for Rust package.
Methods
| Signature | Description |
|---|---|
row() → u32 | Gets the zero-based row index of the annotated cell. |
get_row() → u32 | Gets the zero-based row index of the annotated cell. |
column() → u32 | Gets the zero-based column index of the annotated cell. |
get_column() → u32 | Gets the zero-based column index of the annotated cell. |
cell_name() → String | Gets the associated value. |
get_cell_name() → String | Gets the associated value. |
note() → &str | Gets the plain-text note content of the comment. |
get_note() → &str | Gets the plain-text note content of the comment. |
set_note(value: impl Into<String>) | Sets the plain-text note content of the comment. |
author() → &str | Gets the comment author name. |
get_author() → &str | Gets the comment author name. |
set_author(value: impl Into<String>) | Sets the comment author name. |
visible() → bool | Gets whether the comment box is always shown (true) or hidden until hover (false). |
is_visible() → bool | Gets whether the comment box is always shown (true) or hidden until hover (false). |
get_is_visible() → bool | Gets whether the comment box is always shown (true) or hidden until hover (false). |
set_is_visible(value: bool) | Sets whether the comment box is always shown (true) or hidden until hover (false). |
width() → f64 | Gets the comment box width in pixels. |
get_width() → f64 | Gets the comment box width in pixels. |
set_width(value: f64) → Result<(), CellsError> | Sets the comment box width in pixels. |
height() → f64 | Gets the comment box height in pixels. |
get_height() → f64 | Gets the comment box height in pixels. |
set_height(value: f64) → Result<(), CellsError> | Sets the comment box height in pixels. |
delete() | Deletes this item from its owning collection. |