Cells.SetViewColumnWidthPixel

Cells.SetViewColumnWidthPixel method

Sets the width of the column in different view.

public void SetViewColumnWidthPixel(int column, int pixels)
ParameterTypeDescription
columnInt32The column index.
pixelsInt32The width in unit of pixels.

Remarks

If the current view type is PageLayoutView, the column’s width is same as printed width.

See Also