pub struct TableCellProperties {
pub margin_left_emu: Option<i64>,
pub margin_top_emu: Option<i64>,
pub margin_right_emu: Option<i64>,
pub margin_bottom_emu: Option<i64>,
pub anchor: Option<TextAnchor>,
pub border_left: Option<Line>,
pub border_right: Option<Line>,
pub border_top: Option<Line>,
pub border_bottom: Option<Line>,
pub fill: Option<Fill>,
}Expand description
A TableCell’s own property overrides (<a:tcPr>, CT_TableCellProperties). Not modeled:
anchorCtr/horzOverflow attributes, the diagonal borders (<a:lnTlToBr>/<a:lnBlToTr>), and
<a:cell3D> (bevel/lighting effects) — all secondary refinements on top of margins, vertical
anchor, four straight borders, and background fill. Grounded against a real fixture, which
confirmed the attribute set and the
lnL/lnR/lnT/lnB then fill-choice element order (CT_TableCellProperties’s own
sequence).
Fields§
§margin_left_emu: Option<i64>marL, in EMUs.
margin_top_emu: Option<i64>marT, in EMUs.
margin_right_emu: Option<i64>marR, in EMUs.
margin_bottom_emu: Option<i64>marB, in EMUs.
anchor: Option<TextAnchor>anchor — vertical alignment of this cell’s text within its own height. Reuses
drawing::TextAnchor directly, the same type <a:bodyPr anchor=".."> uses
(CT_TableCellProperties and CT_TextBodyProperties both reference
ST_TextAnchoringType).
border_left: Option<Line><a:lnL> — this cell’s left border.
border_right: Option<Line><a:lnR> — this cell’s right border.
border_top: Option<Line><a:lnT> — this cell’s top border.
border_bottom: Option<Line><a:lnB> — this cell’s bottom border.
fill: Option<Fill>EG_FillProperties — this cell’s own background fill, overriding the table style’s own cell
fill.
Implementations§
Source§impl TableCellProperties
impl TableCellProperties
pub fn new() -> TableCellProperties
Sourcepub fn with_margins_emu(
self,
left: i64,
top: i64,
right: i64,
bottom: i64,
) -> TableCellProperties
pub fn with_margins_emu( self, left: i64, top: i64, right: i64, bottom: i64, ) -> TableCellProperties
Sets all four margins at once, in EMUs.
Sourcepub fn with_anchor(self, anchor: TextAnchor) -> TableCellProperties
pub fn with_anchor(self, anchor: TextAnchor) -> TableCellProperties
Sets this cell’s vertical text anchor.
Sourcepub fn with_border_left(self, border: Line) -> TableCellProperties
pub fn with_border_left(self, border: Line) -> TableCellProperties
Sets this cell’s left border.
Sourcepub fn with_border_right(self, border: Line) -> TableCellProperties
pub fn with_border_right(self, border: Line) -> TableCellProperties
Sets this cell’s right border.
Sourcepub fn with_border_top(self, border: Line) -> TableCellProperties
pub fn with_border_top(self, border: Line) -> TableCellProperties
Sets this cell’s top border.
Sourcepub fn with_border_bottom(self, border: Line) -> TableCellProperties
pub fn with_border_bottom(self, border: Line) -> TableCellProperties
Sets this cell’s bottom border.
Sourcepub fn with_fill(self, fill: Fill) -> TableCellProperties
pub fn with_fill(self, fill: Fill) -> TableCellProperties
Sets this cell’s own background fill.
Trait Implementations§
Source§impl Clone for TableCellProperties
impl Clone for TableCellProperties
Source§fn clone(&self) -> TableCellProperties
fn clone(&self) -> TableCellProperties
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more