Поделиться через


Columns::Count property

The Count property returns the number of Column objects that are in the Columns collection. Hidden columns are included in the collection's count. This property is read-only.

Syntax

Property Count As Long

Property value

The number of Column objects contained in this collection.

Examples

' Determine the number of columns in the view.
Dim nCols As Long
nCols = objCols.Count

Requirements

Minimum supported client
Windows Vista
Minimum supported server
Windows Server 2008
Header
MMCObj.h
IDL
MMCObj.idl
DLL
Mmc.exe
IID
IID_Columns is defined as 383D4D97-FC44-478B-B139-6323DC48611C

See also

Columns.Item