API Reference
PowerPointTableCell
Represents a cell within a PowerPoint table.
Inheritance
- Object
- PowerPointTableCell
Methods
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 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 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).