編輯

共用方式為


_ColumnFormat.Width Property

Definition

Returns or sets an Integer (int in C#) value indicating the approximate width (in characters) of the column. Read/write.

public:
 property int Width { int get(); void set(int value); };
public int Width { get; set; }
Public Property Width As Integer

Property Value

Remarks

This property can be set to a value between 2 and 1024. If this property is set to a value less than 2, the property is set to 2. If this property is set to a value greater than 1024, the property is set to 1024.

If the value of this property for every column in a view is less than the total width of the view, then the Width property of the ColumnFormat object for the last ViewField in the view is increased to match the total width of the view.

Applies to