Xceed Grid for WinForms v4.3 Documentation
Width Property (ColumnReportStyle)


Xceed.Grid.v4.3 Assembly > Xceed.Grid.Reporting Namespace > ColumnReportStyle Class : Width Property
Gets or sets the width, in hundredths of an inch, of the column when it is printed in a report.
Syntax
'Declaration
 
<DescriptionAttribute("The width, in hundredths of an inch, of the column when it is printed in a report.")>
<CategoryAttribute("Appearance")>
<EditorAttribute("Xceed.Grid.Reporting.Design.UnitValueEditor, Xceed.Grid.v4.3,Version=4.3.20076.12375,Culture=neutral,PublicKeyToken=ba83ff368b7563c6", System.Drawing.Design.UITypeEditor)>
Public Property Width As Integer
'Usage
 
Dim instance As ColumnReportStyle
Dim value As Integer
 
instance.Width = value
 
value = instance.Width
[Description("The width, in hundredths of an inch, of the column when it is printed in a report.")]
[Category("Appearance")]
[Editor("Xceed.Grid.Reporting.Design.UnitValueEditor, Xceed.Grid.v4.3,Version=4.3.20076.12375,Culture=neutral,PublicKeyToken=ba83ff368b7563c6", System.Drawing.Design.UITypeEditor)]
public int Width {get; set;}

Property Value

A value representing the width, in hundredths of an inch, of the column when it is printed in a report.
Remarks

The value of the parent Xceed.Grid.Column's Xceed.Grid.Column.Width property will be used in the case where the Width property has not been explicitly set.

The UnitConverter class can be used to convert values to and from hundredths of an inch.

When no value is set to this property, the report's column width will be an approximation from the screen column's width. The value will be transformed is such a way as to be printed with approximately the same width. For optimal results, the screen should have around 96 pixels per inch, and the font used by the Xceed.Grid.Column.ReportStyle should match or resemble the font used by the Xceed.Grid.Column.

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

ColumnReportStyle Class
ColumnReportStyle Members