PowerPointTable
OfficeIMO.PowerPoint
Represents a table on a slide.
Inheritance
- PowerPointShape
- PowerPointTable
Usage
Explore 19 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 19
- Property PowerPointPaginatedTableResult.Tables
- Method PowerPointSlide.AddTable
- Method PowerPointSlide.AddTable``1
- Method PowerPointSlide.GetGroupTables
- Method PowerPointSlide.GetTable
- Property PowerPointSlide.Tables
- Method PowerPointTable.ApplyStyle
- Method PowerPointTable.ApplyStyleByName
- Method PowerPointTable.SetCellAlignment
- Method PowerPointTable.SetCellPadding
- Method PowerPointTable.SetColumnWidth
- Method PowerPointTable.SetColumnWidths
- Method PowerPointTable.SetColumnWidthsByRatio
- Method PowerPointTable.SetColumnWidthsEvenly
- Method PowerPointTable.SetRowHeight
- Method PowerPointTable.SetRowHeights
- Method PowerPointTable.SetRowHeightsByRatio
- Method PowerPointTable.SetRowHeightsEvenly
- Property PowerPointTablePaginationOptions.ConfigureTable
Methods
public PowerPointTableColumn AddColumn(int? index = null) #Adds a new column to the table.
Parameters
- index int? = null
- Optional zero-based index where the column should be inserted. If omitted, column is appended.
Returns
PowerPointTableColumnpublic PowerPointTableColumn AddColumnFromTemplate(int templateColumnIndex, int? index = null, bool clearText = true) #Adds a new column cloned from a template column.
Parameters
- templateColumnIndex int
- index int? = null
- clearText bool = true
Returns
PowerPointTableColumnpublic PowerPointTableRow AddRow(int? index = null) #Adds a new row to the table.
Parameters
- index int? = null
- Optional zero-based index where the row should be inserted. If omitted, row is appended.
Returns
PowerPointTableRowpublic PowerPointTableRow AddRowFromTemplate(int templateRowIndex, int? index = null, bool clearText = true) #Adds a new row cloned from a template row.
Parameters
- templateRowIndex int
- index int? = null
- clearText bool = true
Returns
PowerPointTableRowpublic PowerPointTable ApplyStyle(PowerPointTableStylePreset preset) #Applies a style preset to the table.
Parameters
- preset OfficeIMO.PowerPoint.PowerPointTableStylePreset
Returns
PowerPointTablepublic PowerPointTable ApplyStyleByName(string styleName, bool ignoreCase = true, bool? firstRow = null, bool? lastRow = null, bool? firstColumn = null, bool? lastColumn = null, bool? bandedRows = null, bool? bandedColumns = null) #Applies a table style by name, with optional banding/heading toggles.
Parameters
- styleName string
- ignoreCase bool = true
- firstRow bool? = null
- lastRow bool? = null
- firstColumn bool? = null
- lastColumn bool? = null
- bandedRows bool? = null
- bandedColumns bool? = null
Returns
PowerPointTablepublic void ApplyToCells(Action<PowerPointTableCell> action) #Applies an action to all cells in the table.
Parameters
- action System.Action<OfficeIMO.PowerPoint.PowerPointTableCell>
public void ApplyToCells(int startRow, int endRow, int startColumn, int endColumn, Action<PowerPointTableCell> action) #Applies an action to a rectangular range of cells.
Parameters
- startRow int
- endRow int
- startColumn int
- endColumn int
- action System.Action<OfficeIMO.PowerPoint.PowerPointTableCell>
public void ApplyToColumn(int columnIndex, Action<PowerPointTableCell> action) #Applies an action to a specific column.
Parameters
- columnIndex int
- action System.Action<OfficeIMO.PowerPoint.PowerPointTableCell>
public void ApplyToRow(int rowIndex, Action<PowerPointTableCell> action) #Applies an action to a specific row.
Parameters
- rowIndex int
- action System.Action<OfficeIMO.PowerPoint.PowerPointTableCell>
public void Bind<T>(IEnumerable<T?> data, IEnumerable<PowerPointTableColumn<T?>> columns, bool includeHeaders = true, int startRow = 0, int startColumn = 0) #Binds data to the table, expanding rows/columns as needed.
Type Parameters
- T
Parameters
- data System.Collections.Generic.IEnumerable<T?>
- columns System.Collections.Generic.IEnumerable<OfficeIMO.PowerPoint.PowerPointTableColumn<T?>>
- includeHeaders bool = true
- startRow int = 0
- startColumn int = 0
public void ClearCellBorders(PowerPointTableCellBorders borders) #Clears borders for all cells.
Parameters
- borders OfficeIMO.PowerPoint.PowerPointTableCellBorders
public PowerPointTableCell GetCell(int row, int column) #Retrieves a cell at the specified row and column index.
Parameters
- row int
- Zero-based row index.
- column int
- Zero-based column index.
Returns
PowerPointTableCellpublic PowerPointTableColumn GetColumn(int columnIndex) #Retrieves a column wrapper at the specified index.
Parameters
- columnIndex int
Returns
PowerPointTableColumnpublic OfficeLength GetColumnWidth(int columnIndex) #Gets the width of a specific column as a physical length.
Parameters
- columnIndex int
Returns
OfficeLengthpublic PowerPointTableRow GetRow(int rowIndex) #Retrieves a row wrapper at the specified index.
Parameters
- rowIndex int
Returns
PowerPointTableRowpublic OfficeLength GetRowHeight(int rowIndex) #Gets the height of a specific row as a physical length.
Parameters
- rowIndex int
Returns
OfficeLengthpublic void MergeCells(int startRow, int startColumn, int endRow, int endColumn, bool clearMergedContent = true) #Merges a rectangular range of cells into the top-left cell.
Parameters
- startRow int
- Zero-based start row.
- startColumn int
- Zero-based start column.
- endRow int
- Zero-based end row.
- endColumn int
- Zero-based end column.
- clearMergedContent bool = true
- Whether to clear text from merged cells.
public void RemoveColumn(int index) #Removes a column at the specified index.
Parameters
- index int
- Zero-based index of the column to remove.
public void RemoveRow(int index) #Removes a row at the specified index.
Parameters
- index int
- Zero-based index of the row to remove.
public PowerPointTable SetCellAlignment(PowerPointTextAlignment? horizontal, PowerPointTextVerticalAlignment? vertical) #Sets cell alignment for all cells.
Parameters
- horizontal OfficeIMO.PowerPoint.PowerPointTextAlignment?
- vertical OfficeIMO.PowerPoint.PowerPointTextVerticalAlignment?
Returns
PowerPointTablepublic PowerPointTable SetCellAlignment(PowerPointTextAlignment? horizontal, PowerPointTextVerticalAlignment? vertical, int startRow, int endRow, int startColumn, int endColumn) #Sets cell alignment for a range of cells.
Parameters
- horizontal OfficeIMO.PowerPoint.PowerPointTextAlignment?
- vertical OfficeIMO.PowerPoint.PowerPointTextVerticalAlignment?
- startRow int
- endRow int
- startColumn int
- endColumn int
Returns
PowerPointTablepublic void SetCellBorders(PowerPointTableCellBorders borders, OfficeColor color, OfficeLength? width = null, PowerPointLineDashStyle? dash = null) #Applies borders to all cells, retaining the existing width or dash when omitted.
Parameters
- borders OfficeIMO.PowerPoint.PowerPointTableCellBorders
- color OfficeIMO.OfficeColor
- width OfficeIMO.OfficeLength? = null
- dash OfficeIMO.PowerPoint.PowerPointLineDashStyle? = null
public PowerPointTable SetCellPadding(OfficeLength? left, OfficeLength? top, OfficeLength? right, OfficeLength? bottom) #Sets cell padding for all cells.
Parameters
- left OfficeIMO.OfficeLength?
- top OfficeIMO.OfficeLength?
- right OfficeIMO.OfficeLength?
- bottom OfficeIMO.OfficeLength?
Returns
PowerPointTablepublic PowerPointTable SetCellPadding(OfficeLength? left, OfficeLength? top, OfficeLength? right, OfficeLength? bottom, int startRow, int endRow, int startColumn, int endColumn) #Sets cell padding for a range of cells.
Parameters
- left OfficeIMO.OfficeLength?
- top OfficeIMO.OfficeLength?
- right OfficeIMO.OfficeLength?
- bottom OfficeIMO.OfficeLength?
- startRow int
- endRow int
- startColumn int
- endColumn int
Returns
PowerPointTablepublic PowerPointTable SetColumnWidth(int columnIndex, OfficeLength width) #Sets the width of a specific column as a physical length.
Parameters
- columnIndex int
- width OfficeIMO.OfficeLength
Returns
PowerPointTablepublic PowerPointTable SetColumnWidths(params OfficeLength[] widths) #Sets physical sizes for the first rows or columns supplied.
Parameters
- widths OfficeIMO.OfficeLength[]
Returns
PowerPointTablepublic PowerPointTable SetColumnWidthsByRatio(params double[] ratios) #Sets column widths proportionally using ratios.
Parameters
- ratios double[]
Returns
PowerPointTablepublic PowerPointTable SetColumnWidthsEvenly() #Sets column widths evenly across the table width.
Returns
PowerPointTablepublic PowerPointTable SetRowHeight(int rowIndex, OfficeLength height) #Sets the height of a specific row as a physical length.
Parameters
- rowIndex int
- height OfficeIMO.OfficeLength
Returns
PowerPointTablepublic PowerPointTable SetRowHeights(params OfficeLength[] heights) #Sets physical sizes for the first rows or columns supplied.
Parameters
- heights OfficeIMO.OfficeLength[]
Returns
PowerPointTablepublic PowerPointTable SetRowHeightsByRatio(params double[] ratios) #Sets row heights proportionally using ratios.
Parameters
- ratios double[]
Returns
PowerPointTablepublic PowerPointTable SetRowHeightsEvenly() #Sets row heights evenly across the table height.
Returns
PowerPointTablepublic bool TryApplyStyleByName(string styleName, bool ignoreCase = true, bool? firstRow = null, bool? lastRow = null, bool? firstColumn = null, bool? lastColumn = null, bool? bandedRows = null, bool? bandedColumns = null) #Tries to apply a table style by name. Returns false if the style is not found.
Parameters
- styleName string
- ignoreCase bool = true
- firstRow bool? = null
- lastRow bool? = null
- firstColumn bool? = null
- lastColumn bool? = null
- bandedRows bool? = null
- bandedColumns bool? = null
Returns
boolInherited Methods
public PowerPointShape BindToPlaceholder(PowerPointPlaceholderType placeholderType, uint? index = null) #Parameters
- placeholderType PowerPointPlaceholderType
- index uint? = null
Returns
PowerPointShapepublic PowerPointShape Duplicate(OfficeLength offsetX = default, OfficeLength offsetY = default) #Parameters
- offsetX OfficeLength = default
- offsetY OfficeLength = default
Returns
PowerPointShapepublic PowerPointShape MoveBy(OfficeLength offsetX, OfficeLength offsetY) #Parameters
- offsetX OfficeLength
- offsetY OfficeLength
Returns
PowerPointShapepublic PowerPointShape Resize(OfficeLength width, OfficeLength height, PowerPointShapeAnchor anchor = TopLeft) #Parameters
- width OfficeLength
- height OfficeLength
- anchor PowerPointShapeAnchor = TopLeft
Returns
PowerPointShapepublic PowerPointShape Scale(double scale, PowerPointShapeAnchor anchor = Center) #Parameters
- scale double
- anchor PowerPointShapeAnchor = Center
Returns
PowerPointShapepublic PowerPointShape Scale(double scaleX, double scaleY, PowerPointShapeAnchor anchor = Center) #Parameters
- scaleX double
- scaleY double
- anchor PowerPointShapeAnchor = Center
Returns
PowerPointShapepublic void SetBlur(OfficeLength radius, bool grow = false) #Parameters
- radius OfficeLength
- grow bool = false
public void SetClickSound(Stream audio, string name, string contentType = "audio/wav", string extension = ".wav") #Parameters
- audio Stream
- name string
- contentType string = "audio/wav"
- extension string = ".wav"
public void SetGlow(OfficeColor color, OfficeLength? radius = null, int transparencyPercent = 30) #Parameters
- color OfficeColor
- radius OfficeLength? = null
- transparencyPercent int = 30
public void SetHyperlink(Uri uri, string? tooltip = null) #Parameters
- uri Uri
- tooltip string? = null
public void SetHyperlink(PowerPointSlide targetSlide, string? tooltip = null) #Parameters
- targetSlide PowerPointSlide
- tooltip string? = null
public PowerPointShape SetLanguage(string language) #Parameters
- language string
Returns
PowerPointShapepublic void SetLineEnds(OfficeLineMarkerKind? startType, OfficeLineMarkerKind? endType, PowerPointLineEndWidth? width = null, PowerPointLineEndLength? length = null) #Parameters
- startType OfficeLineMarkerKind?
- endType OfficeLineMarkerKind?
- width PowerPointLineEndWidth? = null
- length PowerPointLineEndLength? = null
public void SetMouseOverSound(Stream audio, string name, string contentType = "audio/wav", string extension = ".wav") #Parameters
- audio Stream
- name string
- contentType string = "audio/wav"
- extension string = ".wav"
public PowerPointShape SetPosition(OfficeLength left, OfficeLength top) #Parameters
- left OfficeLength
- top OfficeLength
Returns
PowerPointShapepublic void SetReflection(OfficeLength? blur = null, OfficeLength? distance = null, double directionDegrees = 270, double fadeDirectionDegrees = 90, int startOpacityPercent = 50, int endOpacityPercent = 0, int startPositionPercent = 0, int endPositionPercent = 100, PowerPointRectangleAlignment? alignment = null, bool rotateWithShape = false) #Parameters
- blur OfficeLength? = null
- distance OfficeLength? = null
- directionDegrees double = 270
- fadeDirectionDegrees double = 90
- startOpacityPercent int = 50
- endOpacityPercent int = 0
- startPositionPercent int = 0
- endPositionPercent int = 100
- alignment PowerPointRectangleAlignment? = null
- rotateWithShape bool = false
public void SetShadow(OfficeColor color, OfficeLength? blur = null, OfficeLength? distance = null, double angleDegrees = 45, int transparencyPercent = 35, bool rotateWithShape = false) #Parameters
- color OfficeColor
- blur OfficeLength? = null
- distance OfficeLength? = null
- angleDegrees double = 45
- transparencyPercent int = 35
- rotateWithShape bool = false
public PowerPointShape SetSize(OfficeLength width, OfficeLength height) #Parameters
- width OfficeLength
- height OfficeLength
Returns
PowerPointShapepublic void SetSoftEdges(OfficeLength radius) #Parameters
- radius OfficeLength
Properties
public IReadOnlyList<PowerPointTableRow> Rows { get; } #Row wrappers for the table.
public IReadOnlyList<PowerPointTableColumn> Columns { get; } #Column wrappers for the table.
public bool HeaderRow { get; set; } #Enables or disables header row styling (firstRow attribute) on the table.
public bool FirstRow { get; set; } #Enables or disables first row styling on the table.
public bool LastRow { get; set; } #Enables or disables last row styling on the table.
public bool FirstColumn { get; set; } #Enables or disables first column styling on the table.
public bool LastColumn { get; set; } #Enables or disables last column styling on the table.
public bool BandedRows { get; set; } #Enables or disables banded rows styling (bandRow attribute) on the table.
public bool BandedColumns { get; set; } #Enables or disables banded columns styling (bandCol attribute) on the table.
Inherited Properties
public string? Title { get; set; } #public bool Decorative { get; set; } #public IReadOnlyList<string> Languages { get; } #public OfficeColor? FillColor { get; set; } #public int? FillTransparency { get; set; } #public double? Rotation { get; set; } #public bool? HorizontalFlip { get; set; } #public bool? VerticalFlip { get; set; } #public PowerPointPlaceholderType? ShapePlaceholderType { get; } #public PowerPointPlaceholderSize? ShapePlaceholderSize { get; } #public PowerPointPlaceholderDirection? ShapePlaceholderOrientation { get; } #public PowerPointShapeContentType ShapeContentType { get; } #public OfficeLength Width { get; set; } #public OfficeLength Height { get; set; } #public IReadOnlyList<PowerPointConnectionSite> ConnectionSites { get; } #public OfficeLength Right { get; set; } #public OfficeLength Bottom { get; set; } #public OfficeLength CenterX { get; set; } #public OfficeLength CenterY { get; set; } #public PowerPointLayoutBox Bounds { get; set; } #public OfficeColor? OutlineColor { get; set; } #public int? OutlineTransparency { get; set; } #public OfficeLength? OutlineWidth { get; set; } #public PowerPointLineDashStyle? OutlineDash { get; set; } #public string? MouseOverSoundName { get; } #