Skip to main content

TableCellExt

Trait TableCellExt 

Source
pub trait TableCellExt {
    // Required methods
    fn text_body(&self) -> Option<&TextBody>;
    fn text(&self) -> String;
    fn row_span(&self) -> u32;
    fn col_span(&self) -> u32;
    fn has_row_span(&self) -> bool;
    fn has_col_span(&self) -> bool;
    fn is_h_merge(&self) -> bool;
    fn is_v_merge(&self) -> bool;
}
Expand description

Extension trait for CTTableCell providing convenience methods.

Required Methods§

Source

fn text_body(&self) -> Option<&TextBody>

Get the text body (paragraphs) if present.

Source

fn text(&self) -> String

Get the cell text (paragraphs joined with newlines).

Source

fn row_span(&self) -> u32

Get the row span (number of rows this cell spans).

Source

fn col_span(&self) -> u32

Get the column span (number of columns this cell spans).

Source

fn has_row_span(&self) -> bool

Check if this cell spans multiple rows.

Source

fn has_col_span(&self) -> bool

Check if this cell spans multiple columns.

Source

fn is_h_merge(&self) -> bool

Check if this cell is merged horizontally (continuation of previous cell).

Source

fn is_v_merge(&self) -> bool

Check if this cell is merged vertically (continuation of cell above).

Implementors§

Source§

impl TableCellExt for CTTableCell

Available on crate feature dml-tables only.