OfficeIMO

API Reference

Class

PowerPointTableCell

Namespace OfficeIMO.PowerPoint
Assembly OfficeIMO.PowerPoint

Represents a cell within a PowerPoint table.

Inheritance

  • Object
  • PowerPointTableCell

Methods

public Void ClearBorders(TableCellBorders borders) #
Returns: Void

Clears borders on the specified sides.

Parameters

borders OfficeIMO.PowerPoint.TableCellBorders requiredposition: 0
public Int32 ReplaceText(String oldValue, String newValue) #
Returns: Int32

Replaces text within the cell while preserving run formatting.

Parameters

oldValue System.String requiredposition: 0
newValue System.String requiredposition: 1
SetBorders 2 overloads
public Void SetBorders(TableCellBorders borders, String color, Nullable<Double> widthPoints = null) #
Returns: Void

Applies border styling to the specified sides.

Parameters

borders OfficeIMO.PowerPoint.TableCellBorders requiredposition: 0
color System.String requiredposition: 1
widthPoints System.Nullable{System.Double} = null optionalposition: 2
public Void SetBorders(TableCellBorders borders, String color, Nullable<Double> widthPoints, PresetLineDashValues dash) #
Returns: Void

Applies border styling with a dash pattern to the specified sides.

Parameters

borders OfficeIMO.PowerPoint.TableCellBorders requiredposition: 0
color System.String requiredposition: 1
widthPoints System.Nullable{System.Double} requiredposition: 2
dash DocumentFormat.OpenXml.Drawing.PresetLineDashValues requiredposition: 3
public PowerPointTableCell SetTextAutoFit(PowerPointTextAutoFit fit, Nullable<PowerPointTextAutoFitOptions> options = null) #
Returns: PowerPointTableCell

Sets the auto-fit mode and optional Normal auto-fit options.

Parameters

fit OfficeIMO.PowerPoint.PowerPointTextAutoFit requiredposition: 0
options System.Nullable{OfficeIMO.PowerPoint.PowerPointTextAutoFitOptions} = null optionalposition: 1

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).