Table of Contents

Method AttachmentPoint

Namespace
GeometryHelper.Dxf
Assembly
GeometryHelper.dll

AttachmentPoint(int, int)

Gets the point a cell's content is placed at, as AutoCAD's AttachmentPoint: the corner, the middle of a side or the middle of the cell (of its block of merged cells) its alignment names, in from the sides by the table's HorizontalCellMargin and VerticalCellMargin. The cell's own alignment where it has one (a block's, that of its top left cell, which holds its content), else as AutoCAD's table style STANDARD has it, which the library takes for the table style it does not read: the middle for the title and the header, the middle of the top for a row of data. The header cell (1, 1) of the table at (300, -100, 0), in the middle of its rows 10 and 8 high and its columns 40 and 30 wide, is at (355, -114, 0). The top is the cell's top as it is seen, whichever way the rows flow: the cell (2, 0) of that table with its rows flowing up, from y -82 to -74, is placed at the top middle at (320, -74.06, 0).

public GeoPoint3 AttachmentPoint(int row, int col)

Parameters

row int

The row, from nought.

col int

The column, from nought.

Returns

GeoPoint3

The point, in world coordinates.

Exceptions

ArgumentOutOfRangeException

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