Method SetCellBorders
- Namespace
- OpenCAD2D
- Assembly
- OpenCAD2D.Core.dll
SetCellBorders(CadDocument, string, DxfCellRange, DxfGridLineType, bool, DxfLineWeight, DxfColor)
Gives lines of a range of cells properties, as OK of the Cell Border Properties dialog does: the lines (All, Outside, Inside, Bottom, Left, Top or Right, or all of them hidden by No Border) drawn or not, and, where they are drawn, their lineweight and colour; one undo step. A range of one row or column has no lines inside it of that way.
public static CadEditResult SetCellBorders(CadDocument document, string handle, DxfCellRange range, DxfGridLineType lines, bool visible, DxfLineWeight weight, DxfColor color)
Parameters
documentCadDocumentThe document.
handlestringThe table's handle.
rangeDxfCellRangeThe cells.
linesDxfGridLineTypeThe lines of the range, one or more of the six.
visibleboolWhether they are drawn.
weightDxfLineWeightThe lineweight they are given where they are drawn.
colorDxfColorThe colour they are given where they are drawn: of the index, by layer or by block.
Returns
- CadEditResult
What came of it; refused where a cell is locked in its format, or the colour is a true colour.