NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

ListView.InsertColumn (Int32, String, Int32, HorizontalAlignment)

Same as above, except the ColumnHeader is constructed from the passed-in data

[Visual Basic]
Overloads Public Function InsertColumn( _
   ByVal index As Integer, _
   ByVal str As String, _
   ByVal width As Integer, _
   ByVal textAlign As HorizontalAlignment _
) As ColumnHeader
[C#]
public ColumnHeader InsertColumn(
   int index,
   string str,
   int width,
   HorizontalAlignment textAlign
);
[C++]
public: ColumnHeader* InsertColumn(
   int index,
   String* str,
   int width,
   HorizontalAlignment textAlign
);
[JScript]
public function InsertColumn(
   index : int,
   str : String,
   width : int,
   textAlign : HorizontalAlignment
) : ColumnHeader;

Parameters

index
Index for new Column
str
Text for new Column
width
Width of new column
textAlign
The alignment of the text in this column. Must be a value from HorizontalAlignment class

Return Value

a ColumnHeader object representing the new column.

See Also

ListView Class | ListView Members | System.WinForms Namespace | ListView.InsertColumn Overload List