API Reference
PowerPointTableCell
Represents a cell within a PowerPoint table.
Inheritance
- Object
- PowerPointTableCell
Usage
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by
- Method PowerPointTable.GetCell
- Method PowerPointTableCell.SetTextAutoFit
- Method PowerPointTableColumn.GetCell
- Property PowerPointTableColumn.Cells
- Method PowerPointTableRow.GetCell
- Property PowerPointTableRow.Cells
Accepted by parameters
- Method PowerPointTable.ApplyToCells
- Method PowerPointTable.ApplyToCells
- Method PowerPointTable.ApplyToColumn
- Method PowerPointTable.ApplyToRow
Methods
public PowerPointParagraph AddBullet(String text, Char bulletChar = '•', Int32 level = 0, Action<PowerPointParagraph> configure = null) #PowerPointParagraphAdds a bulleted paragraph to the table cell.
Parameters
- text System.String
- bulletChar System.Char = '•'
- level System.Int32 = 0
- configure System.Action{OfficeIMO.PowerPoint.PowerPointParagraph} = null
public IReadOnlyList<PowerPointParagraph> AddBullets(IEnumerable<String> bullets, Int32 level = 0, Char bulletChar = '•', Action<PowerPointParagraph> configure = null) #IReadOnlyList<PowerPointParagraph>Adds a bulleted list to the table cell.
Parameters
- bullets System.Collections.Generic.IEnumerable{System.String}
- level System.Int32 = 0
- bulletChar System.Char = '•'
- configure System.Action{OfficeIMO.PowerPoint.PowerPointParagraph} = null
public PowerPointParagraph AddNumberedItem(String text, TextAutoNumberSchemeValues style, Int32 startAt = 1, Int32 level = 0, Action<PowerPointParagraph> configure = null) #PowerPointParagraphAdds a numbered paragraph to the table cell.
Parameters
- text System.String
- style DocumentFormat.OpenXml.Drawing.TextAutoNumberSchemeValues
- startAt System.Int32 = 1
- level System.Int32 = 0
- configure System.Action{OfficeIMO.PowerPoint.PowerPointParagraph} = null
public PowerPointParagraph AddNumberedItem(String text, Int32 startAt = 1, Int32 level = 0, Action<PowerPointParagraph> configure = null) #PowerPointParagraphAdds a numbered paragraph to the table cell using the default numbering style.
Parameters
- text System.String
- startAt System.Int32 = 1
- level System.Int32 = 0
- configure System.Action{OfficeIMO.PowerPoint.PowerPointParagraph} = null
public IReadOnlyList<PowerPointParagraph> AddNumberedList(IEnumerable<String> items, TextAutoNumberSchemeValues style, Int32 startAt = 1, Int32 level = 0, Action<PowerPointParagraph> configure = null) #IReadOnlyList<PowerPointParagraph>Adds a numbered list to the table cell.
Parameters
- items System.Collections.Generic.IEnumerable{System.String}
- style DocumentFormat.OpenXml.Drawing.TextAutoNumberSchemeValues
- startAt System.Int32 = 1
- level System.Int32 = 0
- configure System.Action{OfficeIMO.PowerPoint.PowerPointParagraph} = null
public IReadOnlyList<PowerPointParagraph> AddNumberedList(IEnumerable<String> items, Int32 startAt = 1, Int32 level = 0, Action<PowerPointParagraph> configure = null) #IReadOnlyList<PowerPointParagraph>Adds a numbered list to the table cell using the default numbering style.
Parameters
- items System.Collections.Generic.IEnumerable{System.String}
- startAt System.Int32 = 1
- level System.Int32 = 0
- configure System.Action{OfficeIMO.PowerPoint.PowerPointParagraph} = null
public PowerPointParagraph AddParagraph(String text = "", Action<PowerPointParagraph> configure = null, Action<PowerPointTextRun> run = null) #PowerPointParagraphAdds a paragraph to the table cell.
Parameters
- text System.String = ""
- configure System.Action{OfficeIMO.PowerPoint.PowerPointParagraph} = null
- run System.Action{OfficeIMO.PowerPoint.PowerPointTextRun} = null
public IReadOnlyList<PowerPointParagraph> AddParagraphs(IEnumerable<String> paragraphs, Action<PowerPointParagraph> configure = null) #IReadOnlyList<PowerPointParagraph>Adds multiple paragraphs to the table cell.
Parameters
- paragraphs System.Collections.Generic.IEnumerable{System.String}
- configure System.Action{OfficeIMO.PowerPoint.PowerPointParagraph} = null
public PowerPointTextRun AddRun(String text, Action<PowerPointTextRun> configure = null) #PowerPointTextRunAdds a formatted run to the first cell paragraph.
Parameters
- text System.String
- configure System.Action{OfficeIMO.PowerPoint.PowerPointTextRun} = null
public Void ClearBorders(TableCellBorders borders) #VoidClears borders on the specified sides.
Parameters
- borders OfficeIMO.PowerPoint.TableCellBorders
public Int32 ReplaceText(String oldValue, String newValue) #Int32Replaces text within the cell while preserving run formatting.
Parameters
- oldValue System.String
- newValue System.String
public Void SetBorders(TableCellBorders borders, String color, Nullable<Double> widthPoints = null) #VoidApplies border styling to the specified sides.
Parameters
- borders OfficeIMO.PowerPoint.TableCellBorders
- color System.String
- widthPoints System.Nullable{System.Double} = null
public Void SetBorders(TableCellBorders borders, String color, Nullable<Double> widthPoints, PresetLineDashValues dash) #VoidApplies border styling with a dash pattern to the specified sides.
Parameters
- borders OfficeIMO.PowerPoint.TableCellBorders
- color System.String
- widthPoints System.Nullable{System.Double}
- dash DocumentFormat.OpenXml.Drawing.PresetLineDashValues
public IReadOnlyList<PowerPointParagraph> SetBullets(IEnumerable<String> bullets, Int32 level = 0, Char bulletChar = '•', Action<PowerPointParagraph> configure = null) #IReadOnlyList<PowerPointParagraph>Replaces all table-cell paragraphs with a bulleted list.
Parameters
- bullets System.Collections.Generic.IEnumerable{System.String}
- level System.Int32 = 0
- bulletChar System.Char = '•'
- configure System.Action{OfficeIMO.PowerPoint.PowerPointParagraph} = null
public IReadOnlyList<PowerPointParagraph> SetNumberedList(IEnumerable<String> items, TextAutoNumberSchemeValues style, Int32 startAt = 1, Int32 level = 0, Action<PowerPointParagraph> configure = null) #IReadOnlyList<PowerPointParagraph>Replaces all table-cell paragraphs with a numbered list.
Parameters
- items System.Collections.Generic.IEnumerable{System.String}
- style DocumentFormat.OpenXml.Drawing.TextAutoNumberSchemeValues
- startAt System.Int32 = 1
- level System.Int32 = 0
- configure System.Action{OfficeIMO.PowerPoint.PowerPointParagraph} = null
public IReadOnlyList<PowerPointParagraph> SetNumberedList(IEnumerable<String> items, Int32 startAt = 1, Int32 level = 0, Action<PowerPointParagraph> configure = null) #IReadOnlyList<PowerPointParagraph>Replaces all table-cell paragraphs with a numbered list using the default numbering style.
Parameters
- items System.Collections.Generic.IEnumerable{System.String}
- startAt System.Int32 = 1
- level System.Int32 = 0
- configure System.Action{OfficeIMO.PowerPoint.PowerPointParagraph} = null
public IReadOnlyList<PowerPointParagraph> SetParagraphs(IEnumerable<String> paragraphs, Action<PowerPointParagraph> configure = null) #IReadOnlyList<PowerPointParagraph>Replaces all table-cell paragraphs with the provided content.
Parameters
- paragraphs System.Collections.Generic.IEnumerable{System.String}
- configure System.Action{OfficeIMO.PowerPoint.PowerPointParagraph} = null
public PowerPointTableCell SetTextAutoFit(PowerPointTextAutoFit fit, Nullable<PowerPointTextAutoFitOptions> options = null) #PowerPointTableCellSets the auto-fit mode and optional Normal auto-fit options.
Parameters
- fit OfficeIMO.PowerPoint.PowerPointTextAutoFit
- options System.Nullable{OfficeIMO.PowerPoint.PowerPointTextAutoFitOptions} = null
Inherited Methods
public override Boolean Equals(Object obj) #BooleanParameters
- obj Object
Properties
public String Text { get; set; } #Gets or sets the text contained in the cell.
public ValueTuple<Int32, Int32> Merge { get; set; } #Gets or sets the merge information for this cell. Tuple is in format (rows, columns).
public Nullable<TextAlignmentTypeValues> HorizontalAlignment { get; set; } #Gets or sets the horizontal alignment of the cell text.
public String FillColor { get; set; } #Gets or sets the fill color of the cell in hex format (e.g. "FF0000").
public String BorderColor { get; set; } #Gets or sets the border color (all sides) in hex format.
public Boolean IsMergedCell { get; } #Gets a value indicating whether this cell is a merged continuation cell.
public Boolean IsMergeAnchor { get; } #Gets a value indicating whether this cell is the anchor for a merged range.
public IReadOnlyList<PowerPointTextRun> Runs { get; } #Gets formatted runs from the first cell paragraph.
public Boolean Bold { get; set; } #Gets or sets whether the cell text is bold.
public Boolean Italic { get; set; } #Gets or sets whether the cell text is italic.
public Nullable<Int32> FontSize { get; set; } #Gets or sets the font size in points.
public String FontName { get; set; } #Gets or sets the font name.
public String Color { get; set; } #Gets or sets the text color in hex format (e.g. "FF0000").
public Nullable<Double> PaddingLeftPoints { get; set; } #Gets or sets the left padding in points.
public Nullable<Double> PaddingRightPoints { get; set; } #Gets or sets the right padding in points.
public Nullable<Double> PaddingTopPoints { get; set; } #Gets or sets the top padding in points.
public Nullable<Double> PaddingBottomPoints { get; set; } #Gets or sets the bottom padding in points.
public Nullable<Double> PaddingLeftCm { get; set; } #Gets or sets the left padding in centimeters.
public Nullable<Double> PaddingRightCm { get; set; } #Gets or sets the right padding in centimeters.
public Nullable<Double> PaddingTopCm { get; set; } #Gets or sets the top padding in centimeters.
public Nullable<Double> PaddingBottomCm { get; set; } #Gets or sets the bottom padding in centimeters.
public Nullable<Double> PaddingLeftInches { get; set; } #Gets or sets the left padding in inches.
public Nullable<Double> PaddingRightInches { get; set; } #Gets or sets the right padding in inches.
public Nullable<Double> PaddingTopInches { get; set; } #Gets or sets the top padding in inches.
public Nullable<Double> PaddingBottomInches { get; set; } #Gets or sets the bottom padding in inches.
public Nullable<TextAnchoringTypeValues> VerticalAlignment { get; set; } #Gets or sets the vertical alignment of the cell text (top/center/bottom).
public Nullable<PowerPointTextAutoFit> TextAutoFit { get; set; } #Gets or sets the text auto-fit behavior for the cell.
public Nullable<PowerPointTextAutoFitOptions> TextAutoFitOptions { get; set; } #Gets or sets detailed auto-fit options (only applies to Normal auto-fit).
public IReadOnlyList<PowerPointParagraph> Paragraphs { get; } #Gets the paragraphs contained in the table cell.