public TableCell(IDocument document) : base((Document)document, null) { this.color_0 = Color.Empty; this.float_3 = float.MinValue; this.byte_3 = 1; this.int_8 = 1; this.int_9 = 1; this.short_0 = 1; this.ftsWidth_0 = FtsWidth.Auto; this.cellWidthType_0 = Spire.Doc.CellWidthType.Auto; this.cellFormat_0 = new Spire.Doc.Formatting.CellFormat(); this.cellFormat_0.method_0(this); this.characterFormat_0 = new Spire.Doc.Formatting.CharacterFormat(base.Document); }
public void SetCellWidth(float width, Spire.Doc.CellWidthType widthType) { if (widthType == Spire.Doc.CellWidthType.Auto) { this.Width = 0f; } else if (widthType == Spire.Doc.CellWidthType.Point) { this.Width = width; } else if (widthType == Spire.Doc.CellWidthType.Percentage) { this.Width = 0f; this.Scaling = width; } this.CellWidthType = widthType; }