Table of Contents

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

document CadDocument

The document.

handle string

The table's handle.

range DxfCellRange

The cells.

lines DxfGridLineType

The lines of the range, one or more of the six.

visible bool

Whether they are drawn.

weight DxfLineWeight

The lineweight they are given where they are drawn.

color DxfColor

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