Method SetContentColor
- Namespace
- GeometryHelper.Dxf
- Assembly
- GeometryHelper.dll
SetContentColor(int, int, DxfColor)
Sets the colour of a cell's content, as AutoCAD's SetContentColor(row, col, color): the cell's own (64, of the
index), its flag 0x08 set. A colour of the index, BYLAYER, BYBLOCK or the foreground (7). The block AutoCAD drew the
table with is not drawn anew.
public void SetContentColor(int row, int col, DxfColor color)
Parameters
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, which the cell's group, of the index, does not hold.
- InvalidOperationException
Thrown when the table is erased.
SetContentColor(int, int, int, DxfColor)
Sets the colour of a content of a cell, as AutoCAD's SetContentColor(row, column, contentIndex, color): of its one content, nought, as SetContentColor(int, int, DxfColor).
public void SetContentColor(int row, int column, int contentIndex, DxfColor color)
Parameters
rowintThe row, from nought.
columnintThe column, from nought.
contentIndexintThe content, nought.
colorDxfColorThe colour.
Exceptions
- ArgumentNullException
Thrown when the colour is null.
- ArgumentOutOfRangeException
Thrown when the cell is not one of the table's, or the content is not nought.
- ArgumentException
Thrown when the colour is a true colour or none.
- InvalidOperationException
Thrown when the table is erased.