Table of Contents

Method SetBackgroundColor

Namespace
GeometryHelper.Dxf
Assembly
GeometryHelper.dll

SetBackgroundColor(int, int, DxfColor)

Sets the colour of a cell's background, as AutoCAD's SetBackgroundColor(row, col, color): the cell's own (63, of the index), its flag 0x04 set; whether the background is filled is SetBackgroundColorNone(int, int, bool)'s, left as it is. The block AutoCAD drew the table with is not drawn anew.

public void SetBackgroundColor(int row, int col, DxfColor color)

Parameters

row int

The row, from nought.

col int

The column, from nought.

color DxfColor

The colour: of the index, BYLAYER, BYBLOCK or the foreground (7).

Exceptions

ArgumentNullException

Thrown when the colour is null.

ArgumentOutOfRangeException

Thrown when the cell is not one of the table's.

ArgumentException

Thrown when the colour is a true colour or none.

InvalidOperationException

Thrown when the table is erased.