Partager via


_ColumnFormat.Width Property

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

Namespace:  Microsoft.Office.Interop.Outlook
Assembly:  Microsoft.Office.Interop.Outlook (in Microsoft.Office.Interop.Outlook.dll)

Syntax

'Declaration
<DispIdAttribute()> _
Property Width As Integer
    Get
    Set
'Usage
Dim instance As _ColumnFormat
Dim value As Integer

value = instance.Width

instance.Width = value
[DispIdAttribute()]
int Width { get; set; }

Property Value

Type: System.Int32

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.

See Also

Reference

_ColumnFormat Interface

_ColumnFormat Members

Microsoft.Office.Interop.Outlook Namespace