API Reference
PowerPointTable
Represents a table on a slide.
Inheritance
- PowerPointShape
- PowerPointTable
Methods
public Void AddColumn(Nullable<Int32> index = null) #VoidAdds a new column to the table.
Parameters
- index System.Nullable{System.Int32} = null
- Optional zero-based index where the column should be inserted. If omitted, column is appended.
public PowerPointTableColumn AddColumnFromTemplate(Int32 templateColumnIndex, Nullable<Int32> index = null, Boolean clearText = true) #PowerPointTableColumnAdds a new column cloned from a template column.
Parameters
- templateColumnIndex System.Int32
- index System.Nullable{System.Int32} = null
- clearText System.Boolean = true
public Void AddRow(Nullable<Int32> index = null) #VoidAdds a new row to the table.
Parameters
- index System.Nullable{System.Int32} = null
- Optional zero-based index where the row should be inserted. If omitted, row is appended.
public PowerPointTableRow AddRowFromTemplate(Int32 templateRowIndex, Nullable<Int32> index = null, Boolean clearText = true) #PowerPointTableRowAdds a new row cloned from a template row.
Parameters
- templateRowIndex System.Int32
- index System.Nullable{System.Int32} = null
- clearText System.Boolean = true
public Void ApplyStyle(PowerPointTableStylePreset preset) #VoidApplies a style preset to the table.
Parameters
- preset OfficeIMO.PowerPoint.PowerPointTableStylePreset
public Void ApplyStyleByName(String styleName, Boolean ignoreCase = true, Nullable<Boolean> firstRow = null, Nullable<Boolean> lastRow = null, Nullable<Boolean> firstColumn = null, Nullable<Boolean> lastColumn = null, Nullable<Boolean> bandedRows = null, Nullable<Boolean> bandedColumns = null) #VoidApplies a table style by name, with optional banding/heading toggles.
Parameters
- styleName System.String
- ignoreCase System.Boolean = true
- firstRow System.Nullable{System.Boolean} = null
- lastRow System.Nullable{System.Boolean} = null
- firstColumn System.Nullable{System.Boolean} = null
- lastColumn System.Nullable{System.Boolean} = null
- bandedRows System.Nullable{System.Boolean} = null
- bandedColumns System.Nullable{System.Boolean} = null
public Void ApplyToCells(Action<PowerPointTableCell> action) #VoidApplies an action to all cells in the table.
Parameters
- action System.Action{OfficeIMO.PowerPoint.PowerPointTableCell}
public Void ApplyToCells(Int32 startRow, Int32 endRow, Int32 startColumn, Int32 endColumn, Action<PowerPointTableCell> action) #VoidApplies an action to a rectangular range of cells.
Parameters
- startRow System.Int32
- endRow System.Int32
- startColumn System.Int32
- endColumn System.Int32
- action System.Action{OfficeIMO.PowerPoint.PowerPointTableCell}
public Void ApplyToColumn(Int32 columnIndex, Action<PowerPointTableCell> action) #VoidApplies an action to a specific column.
Parameters
- columnIndex System.Int32
- action System.Action{OfficeIMO.PowerPoint.PowerPointTableCell}
public Void ApplyToRow(Int32 rowIndex, Action<PowerPointTableCell> action) #VoidApplies an action to a specific row.
Parameters
- rowIndex System.Int32
- action System.Action{OfficeIMO.PowerPoint.PowerPointTableCell}
public Void Bind<T>(IEnumerable<T> data, IEnumerable<PowerPointTableColumn<T>> columns, Boolean includeHeaders = true, Int32 startRow = 0, Int32 startColumn = 0) #VoidType Parameters
- T
Parameters
- data IEnumerable<T>
- columns IEnumerable<PowerPointTableColumn<T>>
- includeHeaders Boolean = true
- startRow Int32 = 0
- startColumn Int32 = 0
Bind``1(System.Collections.Generic.IEnumerable{``0} data, System.Collections.Generic.IEnumerable{OfficeIMO.PowerPoint.PowerPointTableColumn{``0}} columns, System.Boolean includeHeaders, System.Int32 startRow, System.Int32 startColumn) #Binds data to the table, expanding rows/columns as needed.
Parameters
- data System.Collections.Generic.IEnumerable{``0}
- columns System.Collections.Generic.IEnumerable{OfficeIMO.PowerPoint.PowerPointTableColumn{``0}}
- includeHeaders System.Boolean
- startRow System.Int32
- startColumn System.Int32
public Void ClearCellBorders(TableCellBorders borders) #VoidClears borders for all cells.
Parameters
- borders OfficeIMO.PowerPoint.TableCellBorders
public PowerPointTableCell GetCell(Int32 row, Int32 column) #PowerPointTableCellRetrieves a cell at the specified row and column index.
Parameters
- row System.Int32
- Zero-based row index.
- column System.Int32
- Zero-based column index.
public PowerPointTableColumn GetColumn(Int32 columnIndex) #PowerPointTableColumnRetrieves a column wrapper at the specified index.
Parameters
- columnIndex System.Int32
public Int64 GetColumnWidth(Int32 columnIndex) #Int64Gets the width of a specific column in EMUs.
Parameters
- columnIndex System.Int32
public Double GetColumnWidthCm(Int32 columnIndex) #DoubleGets the width of a specific column in centimeters.
Parameters
- columnIndex System.Int32
public Double GetColumnWidthInches(Int32 columnIndex) #DoubleGets the width of a specific column in inches.
Parameters
- columnIndex System.Int32
public Double GetColumnWidthPoints(Int32 columnIndex) #DoubleGets the width of a specific column in points.
Parameters
- columnIndex System.Int32
public PowerPointTableRow GetRow(Int32 rowIndex) #PowerPointTableRowRetrieves a row wrapper at the specified index.
Parameters
- rowIndex System.Int32
public Int64 GetRowHeight(Int32 rowIndex) #Int64Gets the height of a specific row in EMUs.
Parameters
- rowIndex System.Int32
public Double GetRowHeightCm(Int32 rowIndex) #DoubleGets the height of a specific row in centimeters.
Parameters
- rowIndex System.Int32
public Double GetRowHeightInches(Int32 rowIndex) #DoubleGets the height of a specific row in inches.
Parameters
- rowIndex System.Int32
public Double GetRowHeightPoints(Int32 rowIndex) #DoubleGets the height of a specific row in points.
Parameters
- rowIndex System.Int32
public Void MergeCells(Int32 startRow, Int32 startColumn, Int32 endRow, Int32 endColumn, Boolean clearMergedContent = true) #VoidMerges a rectangular range of cells into the top-left cell.
Parameters
- startRow System.Int32
- Zero-based start row.
- startColumn System.Int32
- Zero-based start column.
- endRow System.Int32
- Zero-based end row.
- endColumn System.Int32
- Zero-based end column.
- clearMergedContent System.Boolean = true
- Whether to clear text from merged cells.
public Void RemoveColumn(Int32 index) #VoidRemoves a column at the specified index.
Parameters
- index System.Int32
- Zero-based index of the column to remove.
public Void RemoveRow(Int32 index) #VoidRemoves a row at the specified index.
Parameters
- index System.Int32
- Zero-based index of the row to remove.
public Void SetCellAlignment(Nullable<TextAlignmentTypeValues> horizontal, Nullable<TextAnchoringTypeValues> vertical) #VoidSets cell alignment for all cells.
Parameters
- horizontal System.Nullable{DocumentFormat.OpenXml.Drawing.TextAlignmentTypeValues}
- vertical System.Nullable{DocumentFormat.OpenXml.Drawing.TextAnchoringTypeValues}
public Void SetCellAlignment(Nullable<TextAlignmentTypeValues> horizontal, Nullable<TextAnchoringTypeValues> vertical, Int32 startRow, Int32 endRow, Int32 startColumn, Int32 endColumn) #VoidSets cell alignment for a range of cells.
Parameters
- horizontal System.Nullable{DocumentFormat.OpenXml.Drawing.TextAlignmentTypeValues}
- vertical System.Nullable{DocumentFormat.OpenXml.Drawing.TextAnchoringTypeValues}
- startRow System.Int32
- endRow System.Int32
- startColumn System.Int32
- endColumn System.Int32
public Void SetCellBorders(TableCellBorders borders, String color, Nullable<Double> widthPoints = null) #VoidApplies borders to all cells.
Parameters
- borders OfficeIMO.PowerPoint.TableCellBorders
- color System.String
- widthPoints System.Nullable{System.Double} = null
public Void SetCellBorders(TableCellBorders borders, String color, Nullable<Double> widthPoints, PresetLineDashValues dash) #VoidApplies dashed borders to all cells.
Parameters
- borders OfficeIMO.PowerPoint.TableCellBorders
- color System.String
- widthPoints System.Nullable{System.Double}
- dash DocumentFormat.OpenXml.Drawing.PresetLineDashValues
public Void SetCellPaddingCm(Nullable<Double> leftCm, Nullable<Double> topCm, Nullable<Double> rightCm, Nullable<Double> bottomCm) #VoidSets cell padding in centimeters for all cells.
Parameters
- leftCm System.Nullable{System.Double}
- topCm System.Nullable{System.Double}
- rightCm System.Nullable{System.Double}
- bottomCm System.Nullable{System.Double}
public Void SetCellPaddingInches(Nullable<Double> leftInches, Nullable<Double> topInches, Nullable<Double> rightInches, Nullable<Double> bottomInches) #VoidSets cell padding in inches for all cells.
Parameters
- leftInches System.Nullable{System.Double}
- topInches System.Nullable{System.Double}
- rightInches System.Nullable{System.Double}
- bottomInches System.Nullable{System.Double}
public Void SetCellPaddingPoints(Nullable<Double> left, Nullable<Double> top, Nullable<Double> right, Nullable<Double> bottom) #VoidSets cell padding in points for all cells.
Parameters
- left System.Nullable{System.Double}
- top System.Nullable{System.Double}
- right System.Nullable{System.Double}
- bottom System.Nullable{System.Double}
public Void SetCellPaddingPoints(Nullable<Double> left, Nullable<Double> top, Nullable<Double> right, Nullable<Double> bottom, Int32 startRow, Int32 endRow, Int32 startColumn, Int32 endColumn) #VoidSets cell padding in points for a range of cells.
Parameters
- left System.Nullable{System.Double}
- top System.Nullable{System.Double}
- right System.Nullable{System.Double}
- bottom System.Nullable{System.Double}
- startRow System.Int32
- endRow System.Int32
- startColumn System.Int32
- endColumn System.Int32
public Void SetColumnWidth(Int32 columnIndex, Int64 width) #VoidSets the width of a specific column in EMUs.
Parameters
- columnIndex System.Int32
- width System.Int64
public Void SetColumnWidthCm(Int32 columnIndex, Double widthCm) #VoidSets the width of a specific column in centimeters.
Parameters
- columnIndex System.Int32
- widthCm System.Double
public Void SetColumnWidthInches(Int32 columnIndex, Double widthInches) #VoidSets the width of a specific column in inches.
Parameters
- columnIndex System.Int32
- widthInches System.Double
public Void SetColumnWidthPoints(Int32 columnIndex, Double widthPoints) #VoidSets the width of a specific column in points.
Parameters
- columnIndex System.Int32
- widthPoints System.Double
public Void SetColumnWidthsByRatio(params Double[] ratios) #VoidSets column widths proportionally using ratios.
Parameters
- ratios System.Double[]
public Void SetColumnWidthsCm(params Double[] widthsCm) #VoidSets widths for columns in centimeters (applies to the first N columns provided).
Parameters
- widthsCm System.Double[]
public Void SetColumnWidthsInches(params Double[] widthsInches) #VoidSets widths for columns in inches (applies to the first N columns provided).
Parameters
- widthsInches System.Double[]
public Void SetColumnWidthsPoints(params Double[] widthsPoints) #VoidSets widths for columns in points (applies to the first N columns provided).
Parameters
- widthsPoints System.Double[]
public Void SetRowHeight(Int32 rowIndex, Int64 height) #VoidSets the height of a specific row in EMUs.
Parameters
- rowIndex System.Int32
- height System.Int64
public Void SetRowHeightCm(Int32 rowIndex, Double heightCm) #VoidSets the height of a specific row in centimeters.
Parameters
- rowIndex System.Int32
- heightCm System.Double
public Void SetRowHeightInches(Int32 rowIndex, Double heightInches) #VoidSets the height of a specific row in inches.
Parameters
- rowIndex System.Int32
- heightInches System.Double
public Void SetRowHeightPoints(Int32 rowIndex, Double heightPoints) #VoidSets the height of a specific row in points.
Parameters
- rowIndex System.Int32
- heightPoints System.Double
public Void SetRowHeightsByRatio(params Double[] ratios) #VoidSets row heights proportionally using ratios.
Parameters
- ratios System.Double[]
public Void SetRowHeightsCm(params Double[] heightsCm) #VoidSets heights for rows in centimeters (applies to the first N rows provided).
Parameters
- heightsCm System.Double[]
public Void SetRowHeightsInches(params Double[] heightsInches) #VoidSets heights for rows in inches (applies to the first N rows provided).
Parameters
- heightsInches System.Double[]
public Void SetRowHeightsPoints(params Double[] heightsPoints) #VoidSets heights for rows in points (applies to the first N rows provided).
Parameters
- heightsPoints System.Double[]
public Boolean TryApplyStyleByName(String styleName, Boolean ignoreCase = true, Nullable<Boolean> firstRow = null, Nullable<Boolean> lastRow = null, Nullable<Boolean> firstColumn = null, Nullable<Boolean> lastColumn = null, Nullable<Boolean> bandedRows = null, Nullable<Boolean> bandedColumns = null) #BooleanTries to apply a table style by name. Returns false if the style is not found.
Parameters
- styleName System.String
- ignoreCase System.Boolean = true
- firstRow System.Nullable{System.Boolean} = null
- lastRow System.Nullable{System.Boolean} = null
- firstColumn System.Nullable{System.Boolean} = null
- lastColumn System.Nullable{System.Boolean} = null
- bandedRows System.Nullable{System.Boolean} = null
- bandedColumns System.Nullable{System.Boolean} = null
Inherited Methods
public override Boolean Equals(Object obj) #BooleanParameters
- obj Object
public Void MoveBy(Int64 offsetX, Int64 offsetY) #VoidParameters
- offsetX Int64
- offsetY Int64
public Void MoveByCm(Double offsetXCm, Double offsetYCm) #VoidParameters
- offsetXCm Double
- offsetYCm Double
public Void MoveByInches(Double offsetXInches, Double offsetYInches) #VoidParameters
- offsetXInches Double
- offsetYInches Double
public Void MoveByPoints(Double offsetXPoints, Double offsetYPoints) #VoidParameters
- offsetXPoints Double
- offsetYPoints Double
public Void Resize(Int64 width, Int64 height, PowerPointShapeAnchor anchor = TopLeft) #VoidParameters
- width Int64
- height Int64
- anchor PowerPointShapeAnchor = TopLeft
public Void ResizeCm(Double widthCm, Double heightCm, PowerPointShapeAnchor anchor = TopLeft) #VoidParameters
- widthCm Double
- heightCm Double
- anchor PowerPointShapeAnchor = TopLeft
public Void ResizeInches(Double widthInches, Double heightInches, PowerPointShapeAnchor anchor = TopLeft) #VoidParameters
- widthInches Double
- heightInches Double
- anchor PowerPointShapeAnchor = TopLeft
public Void ResizePoints(Double widthPoints, Double heightPoints, PowerPointShapeAnchor anchor = TopLeft) #VoidParameters
- widthPoints Double
- heightPoints Double
- anchor PowerPointShapeAnchor = TopLeft
public Void Scale(Double scaleX, Double scaleY, PowerPointShapeAnchor anchor = Center) #VoidParameters
- scale Double
- anchor PowerPointShapeAnchor = Center
public Void SetBlur(Double radiusPoints, Boolean grow = false) #VoidParameters
- radiusPoints Double
- grow Boolean = false
public Void SetGlow(String color, Double radiusPoints = 4, Int32 transparencyPercent = 30) #VoidParameters
- color String
- radiusPoints Double = 4
- transparencyPercent Int32 = 30
public Void SetLineEnds(Nullable<LineEndValues> startType, Nullable<LineEndValues> endType, Nullable<LineEndWidthValues> width = null, Nullable<LineEndLengthValues> length = null) #VoidParameters
- startType Nullable<LineEndValues>
- endType Nullable<LineEndValues>
- width Nullable<LineEndWidthValues> = null
- length Nullable<LineEndLengthValues> = null
public Void SetPositionCm(Double leftCm, Double topCm) #VoidParameters
- leftCm Double
- topCm Double
public Void SetPositionInches(Double leftInches, Double topInches) #VoidParameters
- leftInches Double
- topInches Double
public Void SetPositionPoints(Double leftPoints, Double topPoints) #VoidParameters
- leftPoints Double
- topPoints Double
public Void SetReflection(Double blurPoints = 4, Double distancePoints = 2, Double directionDegrees = 270, Double fadeDirectionDegrees = 90, Int32 startOpacityPercent = 50, Int32 endOpacityPercent = 0, Int32 startPositionPercent = 0, Int32 endPositionPercent = 100, Nullable<RectangleAlignmentValues> alignment = null, Boolean rotateWithShape = false) #VoidParameters
- blurPoints Double = 4
- distancePoints Double = 2
- directionDegrees Double = 270
- fadeDirectionDegrees Double = 90
- startOpacityPercent Int32 = 50
- endOpacityPercent Int32 = 0
- startPositionPercent Int32 = 0
- endPositionPercent Int32 = 100
- alignment Nullable<RectangleAlignmentValues> = null
- rotateWithShape Boolean = false
public Void SetShadow(String color, Double blurPoints = 4, Double distancePoints = 3, Double angleDegrees = 45, Int32 transparencyPercent = 35, Boolean rotateWithShape = false) #VoidParameters
- color String
- blurPoints Double = 4
- distancePoints Double = 3
- angleDegrees Double = 45
- transparencyPercent Int32 = 35
- rotateWithShape Boolean = false
public Void SetSizeCm(Double widthCm, Double heightCm) #VoidParameters
- widthCm Double
- heightCm Double
public Void SetSizeInches(Double widthInches, Double heightInches) #VoidParameters
- widthInches Double
- heightInches Double
public Void SetSizePoints(Double widthPoints, Double heightPoints) #VoidParameters
- widthPoints Double
- heightPoints Double
public Void SetSoftEdges(Double radiusPoints) #VoidParameters
- radiusPoints Double
Properties
public Int32 Rows { get; } #Returns number of rows in the table.
public Int32 Columns { get; } #Returns number of columns in the table.
public IReadOnlyList<PowerPointTableRow> RowItems { get; } #Row wrappers for the table.
public IReadOnlyList<PowerPointTableColumn> ColumnItems { get; } #Column wrappers for the table.
public Boolean HeaderRow { get; set; } #Enables or disables header row styling (firstRow attribute) on the table.
public Boolean FirstRow { get; set; } #Enables or disables first row styling on the table.
public Boolean LastRow { get; set; } #Enables or disables last row styling on the table.
public Boolean FirstColumn { get; set; } #Enables or disables first column styling on the table.
public Boolean LastColumn { get; set; } #Enables or disables last column styling on the table.
public Boolean BandedRows { get; set; } #Enables or disables banded rows styling (bandRow attribute) on the table.
public Boolean BandedColumns { get; set; } #Enables or disables banded columns styling (bandCol attribute) on the table.
public String StyleId { get; set; } #Gets or sets the table style ID GUID.
Inherited Properties
public String Name { get; } #public String FillColor { get; set; } #public Int64 Left { get; set; } #public Double LeftPoints { get; set; } #public Double LeftCm { get; set; } #public Double LeftInches { get; set; } #public Int64 Top { get; set; } #public Double TopPoints { get; set; } #public Double TopCm { get; set; } #public Double TopInches { get; set; } #public Int64 Width { get; set; } #public Double WidthPoints { get; set; } #public Double WidthCm { get; set; } #public Double WidthInches { get; set; } #public Int64 Height { get; set; } #public Double HeightPoints { get; set; } #public Double HeightCm { get; set; } #public Double HeightInches { get; set; } #public Int64 Right { get; set; } #public Double RightPoints { get; set; } #public Double RightCm { get; set; } #public Double RightInches { get; set; } #public Int64 Bottom { get; set; } #public Double BottomPoints { get; set; } #public Double BottomCm { get; set; } #public Double BottomInches { get; set; } #public Int64 CenterX { get; set; } #public Double CenterXPoints { get; set; } #public Double CenterXCm { get; set; } #public Double CenterXInches { get; set; } #public Int64 CenterY { get; set; } #public Double CenterYPoints { get; set; } #public Double CenterYCm { get; set; } #public Double CenterYInches { get; set; } #public PowerPointLayoutBox Bounds { get; set; } #public String OutlineColor { get; set; } #public Nullable<Double> OutlineWidthPoints { get; set; } #public Nullable<PresetLineDashValues> OutlineDash { get; set; } #public Nullable<Int32> FillTransparency { get; set; } #public Nullable<Double> Rotation { get; set; } #public Nullable<Boolean> HorizontalFlip { get; set; } #public Nullable<Boolean> VerticalFlip { get; set; } #