Table of Contents

Method Fill

Namespace
GeometryHelper.Dxf
Assembly
GeometryHelper.dll

Fill(DxfCellRange, DxfCellRange, DxfTableFillOptions)

Fills cells from others, as AutoCAD's Fill does when a cell's grip is dragged, as AutoCAD 2021 filled them (D33 f01 to f20, g01 to g26): the rows of the fill range down the columns of the source range, or its columns along the rows of the source with Row, whatever columns (or rows) the fill range names; each cell given the source cell its place repeats, from the fill range's first cell on, so that 1.5 and 2.5 filled into rows 5 and 6 give 1.5 and 2.5. Above (or left of) its source and longer than it, a fill repeats the source back from the fill range's last cell, the source's last next to it, in whole lengths of the source, and leaves as they are the cells of one that would reach before the table's first row or column, as AutoCAD 2021 filled 464 such ranges (D33c): 2.5 and 3.5 filled into rows 10 to 12 give 3.5, 2.5 and 3.5, and four sources from column 7 filled into columns 0 to 6 fill columns 3 to 6 alone. A cell a block of merged cells hides is left as it is, the title's second cell filled from Parts staying empty (D33b f12, D33c e09). CopyContent copies the content alone, the cell keeping its look and flags, and wins over a series; CopyFormat copies the look, the flags and the kind of value, a cell of no value given one of none of that kind (93 5), one of a value of that kind keeping it, and one of a value of another kind turned into it as SetDataType(int, int, DxfDataType, DxfUnitType) turns it, Mark given the look of 1.5 a number of none, the text 12 the number 12 shown 12.0000 (D33b f02, f23 to f26, f31, f32); the two together copy the cell whole. The header and the title are filled as rows of data are (D33b f01 to f20). GenerateSeries without CopyContent carries the numbers of the source on, the cell given its kind of value (0x40000) and its look kept unless CopyFormat is given: on from the source's last number by the step from its first to its last (one for a source of one number) through the fill range, wherever it stands, 1.5 and 2.5 going on to 3.5, 4.5 and 5.5 below them or above them alike; with Reverse back from the source's first number, the fill range's last cell next to it, 1.5 and 2.5 to -1.5, -0.5 and 0.5, and 10 and 20 to -20, -10 and 0. Reverse alone changes nothing of a copy. A number of a series is rounded to the places of decimals of its source and its step, and to 15 significant figures, 0.1 and 0.2 going on to 0.3, written of six places from R2007 on (0.300000), a whole number where every source is one and so is the step; a source of a text that is no number is copied, the cell given its kind of value. Options of none of the three change nothing; a fill range that holds a cell of the source is refused, as AutoCAD 2021 refused it (eInvalidInput). A cell emptied while the drawing is open, reset, given an empty text, put in, or emptied by a merge, holds no content to give: CopyContent leaves the target as it was, and CopyFormat gives it the cell's own look alone, its alignment, background and lines, the target keeping its text style, height, colour and kind of value, as AutoCAD 2021 filled Z from B-12 reset (D33d a16, D33e f01 to f19, g01 to g13); one read of no value from the file is copied as none. With GenerateSeries a cell of no value, of either kind, gives the target none of no kind of value (91 0), CopyContent given or not (D33e f04, f05, g08, g20, g21). A cell given a content is no longer one emptied in the session (D33e g12, g14). The numbers are those of a whole number or a number value, or before R2007 a text that reads as one. A series of dates goes on as AutoCAD 2021's console took them (D42), in seconds counted as the C library's mktime counts them, the date as shown read in the machine's zone and taken to the epoch, 1 January 1970, and put back with no zone: from the last date by the step between the last two (a day for one date), or in reverse back from the first by the step between the first two, so that 1/1/2020 filled into three cells is 1/1/2020 17:00, 1/2/2020 17:00 and 1/3/2020 17:00 in a zone seven hours ahead of Greenwich and 1/2/2020, 1/3/2020 and 1/4/2020 in Greenwich; a date before the epoch counts as -1 and a count before 12 hours before it makes none (16 bytes of nought, no words), as AutoCAD 2021 did, so that 12:30 alone, which is on the 30th of December 1899, goes on as 1/1/1970 23:59:59 in any zone. Each cell is of the format of the source it repeats. Dates mixed with other values are copied. The record is written once; the block AutoCAD drew the table with is not drawn anew.

public void Fill(DxfCellRange fillRange, DxfCellRange sourceRange, DxfTableFillOptions options)

Parameters

fillRange DxfCellRange

The cells filled: its rows (its columns along the rows), within the table.

sourceRange DxfCellRange

The cells filled from, within the table.

options DxfTableFillOptions

How, of the flags of DxfTableFillOptions.

Exceptions

ArgumentNullException

Thrown when a range is null.

ArgumentOutOfRangeException

Thrown when a range reaches past the table, or the options hold a flag none of DxfTableFillOptions has.

ArgumentException

Thrown when the rows of the fill range (its columns, along the rows) meet the source's.

InvalidOperationException

Thrown when the table's record does not hold its cells, heights and widths, or the table is erased.