RtfTableCell
OfficeIMO.Rtf
RTF table cell.
Inheritance
- object
- RtfTableCell
Usage
Explore 10 API references to this type
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by 10
- Method RtfTableCell.SetBackgroundColor
- Method RtfTableCell.SetFitText
- Method RtfTableCell.SetHideCellMark
- Method RtfTableCell.SetNoWrap
- Method RtfTableCell.SetPadding
- Method RtfTableCell.SetPreferredWidth
- Method RtfTableCell.SetShading
- Method RtfTableCell.SetTextFlow
- Method RtfTableRow.AddCell
- Property RtfTableRow.Cells
Constructors
public RtfTableCell() #Methods
public RtfParagraph AddParagraph(string? text = null) #Adds a paragraph to the cell.
Parameters
- text string? = null
Returns
RtfParagraphpublic RtfTable AddTable(int rows, int columns) #Adds a nested table to the cell.
Parameters
- rows int
- columns int
Returns
RtfTablepublic RtfTableCell SetBackgroundColor(int? colorIndex) #Sets cell background shading to a one-based color table index.
Parameters
- colorIndex int?
Returns
RtfTableCellpublic RtfTableCell SetFitText(bool fitText = true) #Sets whether text is compressed to fit within the cell width.
Parameters
- fitText bool = true
Returns
RtfTableCellpublic RtfTableCell SetHideCellMark(bool hidden = true) #Sets whether the end-of-cell mark is hidden.
Parameters
- hidden bool = true
Returns
RtfTableCellpublic RtfTableCell SetNoWrap(bool noWrap = true) #Sets whether text should not wrap inside the cell.
Parameters
- noWrap bool = true
Returns
RtfTableCellpublic RtfTableCell SetPadding(int? topTwips = null, int? leftTwips = null, int? bottomTwips = null, int? rightTwips = null) #Sets cell padding in twips.
Parameters
- topTwips int? = null
- leftTwips int? = null
- bottomTwips int? = null
- rightTwips int? = null
Returns
RtfTableCellpublic RtfTableCell SetPreferredWidth(int? width, RtfTableWidthUnit? unit = null) #Sets the preferred cell width.
Parameters
- width int?
- unit OfficeIMO.Rtf.RtfTableWidthUnit? = null
Returns
RtfTableCellpublic RtfTableCell SetShading(int? backgroundColorIndex, int? foregroundColorIndex = null, int? patternPercent = null, RtfShadingPattern pattern = None) #Sets cell shading color and pattern metadata.
Parameters
- backgroundColorIndex int?
- foregroundColorIndex int? = null
- patternPercent int? = null
- pattern OfficeIMO.Rtf.RtfShadingPattern = None
Returns
RtfTableCellpublic RtfTableCell SetTextFlow(RtfTableCellTextFlow? textFlow) #Sets the cell text flow.
Parameters
- textFlow OfficeIMO.Rtf.RtfTableCellTextFlow?
Returns
RtfTableCellInherited Methods
Properties
public IReadOnlyList<IRtfBlock> Blocks { get; } #Ordered cell blocks, including paragraphs and nested tables.
public int? BackgroundColorIndex { get; set; } #One-based color table index used for cell background shading.
public int? ShadingForegroundColorIndex { get; set; } #One-based color table index used for cell pattern foreground shading.
public int? ShadingPatternPercent { get; set; } #Raw RTF \clshdng value, where 10000 represents 100 percent.
public RtfShadingPattern ShadingPattern { get; set; } #Named RTF cell shading pattern.
public RtfTableCellVerticalAlignment? VerticalAlignment { get; set; } #Vertical alignment for cell content.
public int? PreferredWidth { get; set; } #Preferred cell width value carried by \clwWidth.
public RtfTableWidthUnit? PreferredWidthUnit { get; set; } #Preferred cell width unit carried by \clftsWidth.
public bool HideCellMark { get; set; } #Whether the end-of-cell mark is hidden, represented by \clhidemark.
public bool NoWrap { get; set; } #Whether text should not wrap inside the cell, represented by \clNoWrap.
public bool FitText { get; set; } #Whether text is compressed to fit within the cell width, represented by \clFitText.
public RtfTableCellBorder TopLeftToBottomRightBorder { get; private set; } #Diagonal cell border from top-left to bottom-right.
public RtfTableCellBorder TopRightToBottomLeftBorder { get; private set; } #Diagonal cell border from top-right to bottom-left.