Table of Contents

Method SetGridProperty

Namespace
GeometryHelper.Dxf
Assembly
GeometryHelper.dll

SetGridProperty(int, int, DxfGridLineType, DxfGridPropertyParameter)

Sets properties of lines of a cell, as AutoCAD's SetGridProperty(row, column, gridLineType, gridProperty): those the mask names, each as its own setter writes it; a mask of the line style, the linetype or the spacing of a double line, for which a file of these versions has no groups, is refused.

public void SetGridProperty(int row, int column, DxfGridLineType gridLineType, DxfGridPropertyParameter gridProperty)

Parameters

row int

The row, from nought.

column int

The column, from nought.

gridLineType DxfGridLineType

The lines, one or more of the cell's four.

gridProperty DxfGridPropertyParameter

The properties, those of its mask written.

Exceptions

ArgumentNullException

Thrown when the properties are null, or a colour named is null.

ArgumentOutOfRangeException

Thrown when the cell is not one of the table's, the lines or the mask hold a flag none of their kind has, or a lineweight is none DXF writes.

ArgumentException

Thrown when the lines name none of the cell's four, the mask names a property of no group, or a colour is a true colour or none.

InvalidOperationException

Thrown when the table is erased.

SetGridProperty(DxfCellRange, DxfGridLineType, DxfGridPropertyParameter)

Sets properties of the lines of a block of cells, as AutoCAD's SetGridProperty(rangeIn, gridLineTypes, gridProp): the lines round the block on the outer edges of its outer cells, and the lines inside on the edges of the cells either side of each, so that the range (1, 0) to (2, 1) given HorizontalInside sets the bottom edges of (1, 0) and (1, 1) and the top edges of (2, 0) and (2, 1). The cells are written in one writing of the record, so that the lines of a table of 16 000 rows are set in time linear in its groups.

public void SetGridProperty(DxfCellRange rangeIn, DxfGridLineType gridLineTypes, DxfGridPropertyParameter gridProp)

Parameters

rangeIn DxfCellRange

The block of cells, within the table.

gridLineTypes DxfGridLineType

The lines, one or more of the six.

gridProp DxfGridPropertyParameter

The properties, those of its mask written.

Exceptions

ArgumentNullException

Thrown when the range or the properties are null, or a colour named is null.

ArgumentOutOfRangeException

Thrown when the range reaches past the table, the lines or the mask hold a flag none of their kind has, or a lineweight is none DXF writes.

ArgumentException

Thrown when the lines name none of the block's, the mask names a property of no group, or a colour is a true colour or none.

InvalidOperationException

Thrown when the table is erased.