Platform SDK: Management Console |
MMCColumnHeader defines the properties of a single column displayed in a list view in detail or filtered mode.
Text is the text displayed in the column header. Text can be changed at any point during run time.
Width determines the column's width in pixels. It can also be set to siColumnAutoWidth to indicate that the width should match the length of the column's text. Width can be changed at any point during run time.
Alignment determines whether the column's text will be aligned left, right, or centered. It can only be specified at design time or when the column header is added by calling MMCColumnHeaders.Add. After the column has been added this property can only be used to examine the alignment.
Hidden determines whether the column will be visible. It must be set at run time in the ResultViews_Initialize or ResultViews_Activate event. Virtual list views must set it in ResultViews_Initialize only.
In MMC 1.2 or later the list view can use column filtering. The filter value for a column can be numeric or textual. The NumericFilter property is used to set a numeric filter value. The snap-in can also get its value to determine if the user has entered a numeric value in the column filter and examine its value. The TextFilter property serves the same function for text values. If the filter value is blank then both properties return an empty Variant. To make the value empty set either property to an empty Variant.