event AddColumn (Column as Column)

Fired after a new column has been added.

 TypeDescription 
   Column as Column A Column object that's added to the Columns collection.  

The AddColumn event is fired after a new column has been inserted to Columns collection. Use the AddColumn event to associate extra data to a new column. Use the Add method to add new columns to Columns collection. Use the ColumnAutoSize property to fit all visible columns in the control's client area. 

Syntax for AddColumn event, /NET version, on:

private void AddColumn(object sender,exontrol.EXG2ANTTLib.Column Column)
{
}

Private Sub AddColumn(ByVal sender As System.Object,ByVal Column As exontrol.EXG2ANTTLib.Column) Handles AddColumn
End Sub

Syntax for AddColumn event, /COM version, on:

private void AddColumn(object sender, AxEXG2ANTTLib._IG2anttEvents_AddColumnEvent e)
{
}

void OnAddColumn(LPDISPATCH Column)
{
}

void __fastcall AddColumn(TObject *Sender,Exg2anttlib_tlb::IColumn *Column)
{
}

procedure AddColumn(ASender: TObject; Column : IColumn);
begin
end;

procedure AddColumn(sender: System.Object; e: AxEXG2ANTTLib._IG2anttEvents_AddColumnEvent);
begin
end;

begin event AddColumn(oleobject Column)
end event AddColumn

Private Sub AddColumn(ByVal sender As System.Object, ByVal e As AxEXG2ANTTLib._IG2anttEvents_AddColumnEvent) Handles AddColumn
End Sub

Private Sub AddColumn(ByVal Column As EXG2ANTTLibCtl.IColumn)
End Sub

Private Sub AddColumn(ByVal Column As Object)
End Sub

LPARAMETERS Column

PROCEDURE OnAddColumn(oG2antt,Column)
RETURN

Syntax for AddColumn event, /COM version (others), on:

<SCRIPT EVENT="AddColumn(Column)" LANGUAGE="JScript">
</SCRIPT>

<SCRIPT LANGUAGE="VBScript">
Function AddColumn(Column)
End Function
</SCRIPT>

Procedure OnComAddColumn Variant llColumn
	Forward Send OnComAddColumn llColumn
End_Procedure

METHOD OCX_AddColumn(Column) CLASS MainDialog
RETURN NIL

void onEvent_AddColumn(COM _Column)
{
}

function AddColumn as v (Column as OLE::Exontrol.G2antt.1::IColumn)
end function

function nativeObject_AddColumn(Column)
return

The following VB sample shows how to set the width for all columns:

Private Sub G2antt1_AddColumn(ByVal Column As EXG2ANTTLibCtl.IColumn)
    Column.Width = 128
End Sub

The following VB.NET sample  changes the column's width when a new column is added:

Private Sub AxG2antt1_AddColumn(ByVal sender As Object, ByVal e As AxEXG2ANTTLib._IG2anttEvents_AddColumnEvent) Handles AxG2antt1.AddColumn
    e.column.Width = 128
End Sub

The following C# sample changes the column's width when a new column is added:

private void axG2antt1_AddColumn(object sender, AxEXG2ANTTLib._IG2anttEvents_AddColumnEvent e)
{
	e.column.Width = 128;
}

The following C++ sample changes the column's width when a new column is added:

#include "Column.h"
#include "Columns.h"
void OnAddColumnG2antt1(LPDISPATCH Column) 
{
	CColumn column( Column );column.m_bAutoRelease = FALSE;
	column.SetWidth( 128 );
}

The following VFP sample changes the column's width when a new column is added:

*** ActiveX Control Event ***
LPARAMETERS column

with column
	.Width = 128
endwith

 


Send comments on this topic.
1999-2017 Exontrol.COM, Software. All rights reserved.