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

SignatureDescription
row()u32Gets the zero-based row index of the annotated cell.
get_row()u32Gets the zero-based row index of the annotated cell.
column()u32Gets the zero-based column index of the annotated cell.
get_column()u32Gets the zero-based column index of the annotated cell.
cell_name()StringGets the associated value.
get_cell_name()StringGets the associated value.
note()&strGets the plain-text note content of the comment.
get_note()&strGets the plain-text note content of the comment.
set_note(value: impl Into<String>)Sets the plain-text note content of the comment.
author()&strGets the comment author name.
get_author()&strGets the comment author name.
set_author(value: impl Into<String>)Sets the comment author name.
visible()boolGets whether the comment box is always shown (true) or hidden until hover (false).
is_visible()boolGets whether the comment box is always shown (true) or hidden until hover (false).
get_is_visible()boolGets 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()f64Gets the comment box width in pixels.
get_width()f64Gets the comment box width in pixels.
set_width(value: f64)Result<(), CellsError>Sets the comment box width in pixels.
height()f64Gets the comment box height in pixels.
get_height()f64Gets 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.

See Also