pub struct Cell {
pub text: TextBody,
pub fill: Color,
pub margin: (Option<Emu>, Option<Emu>, Option<Emu>, Option<Emu>),
pub row_span: u32,
pub grid_span: u32,
pub h_merge: bool,
pub v_merge: bool,
pub anchor: VerticalAnchor,
pub border_left: Option<CellBorder>,
pub border_right: Option<CellBorder>,
pub border_top: Option<CellBorder>,
pub border_bottom: Option<CellBorder>,
}Expand description
单元格。
Fields§
§text: TextBody单元格文本体。
fill: Color单元格填充色。Color::None 表示不写出填充。
margin: (Option<Emu>, Option<Emu>, Option<Emu>, Option<Emu>)上下左右内边距(EMU)。
row_span: u32跨行数(rowSpan 属性,0 或 1 表示不跨行)。
grid_span: u32跨列数(gridSpan 属性,0 或 1 表示不跨列)。
h_merge: bool水平合并虚拟单元格标记(hMerge="1",被合并方写出)。
v_merge: bool垂直合并虚拟单元格标记(vMerge="1",被合并方写出)。
anchor: VerticalAnchor垂直对齐方式。
border_left: Option<CellBorder>左边框(<a:lnL>)。
border_right: Option<CellBorder>右边框(<a:lnR>)。
border_top: Option<CellBorder>上边框(<a:lnT>)。
border_bottom: Option<CellBorder>下边框(<a:lnB>)。
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Cell
impl RefUnwindSafe for Cell
impl Send for Cell
impl Sync for Cell
impl Unpin for Cell
impl UnsafeUnpin for Cell
impl UnwindSafe for Cell
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more