Table of Contents

Method SetCellStyle

Namespace
OpenCAD2D
Assembly
OpenCAD2D.Core.dll

SetCellStyle(CadDocument, string, DxfCellRange, string)

Gives the cells of a range a cell style, as choosing one in the Cell Styles box does: its look (alignment, text height, text style and colour, fill and the four borders) written as the cells' own overrides over what they held, their contents kept, and its id written into their TABLECONTENT; null is By Row/Column: the cells name no style and keep what they hold. One undo step.

public static CadEditResult SetCellStyle(CadDocument document, string handle, DxfCellRange range, string styleName)

Parameters

document CadDocument

The document.

handle string

The table's handle.

range DxfCellRange

The cells.

styleName string

The name of a cell style of the table's style; null for By Row/Column.

Returns

CadEditResult

What came of it; refused where the table style has no such cell style or a cell is locked in its format.