次の方法で共有


Column::Width property

The Width property sets or returns the width (in pixels) of the column. This property is read/write.

Syntax

Property Width As Long

Property value

The width of the column, in pixels.

Examples

' Retrieve the column's width.
Dim nWidth As Long
nWidth = objCol.Width
MsgBox (nWidth)
 
' Set the column's width to 120 pixels.
objCol.Width = 120

Requirements

Minimum supported client
Windows Vista
Minimum supported server
Windows Server 2008
Header
MMCObj.h
IDL
MMCObj.idl
DLL
Mmc.exe
IID
IID_Column is defined as FD1C5F63-2B16-4D06-9AB3-F45350B940AB

See also

Column.Hidden