Type | Description | |||
Level as Long | A long expression that indicates the level being resized. The Level parameter is zero based. The 0 Level indicates the first level. The 1 Level indicates the second level and so on. |
private void ResizeLevel(object sender,int Level) { } Private Sub ResizeLevel(ByVal sender As System.Object,ByVal Level As Integer) Handles ResizeLevel End Sub |
private void ResizeLevel(object sender, AxEXMLGRIDLib._IXMLGridEvents_ResizeLevelEvent e) { } void OnResizeLevel(long Level) { } void __fastcall ResizeLevel(TObject *Sender,long Level) { } procedure ResizeLevel(ASender: TObject; Level : Integer); begin end; procedure ResizeLevel(sender: System.Object; e: AxEXMLGRIDLib._IXMLGridEvents_ResizeLevelEvent); begin end; begin event ResizeLevel(long Level) end event ResizeLevel Private Sub ResizeLevel(ByVal sender As System.Object, ByVal e As AxEXMLGRIDLib._IXMLGridEvents_ResizeLevelEvent) Handles ResizeLevel End Sub Private Sub ResizeLevel(ByVal Level As Long) End Sub Private Sub ResizeLevel(ByVal Level As Long) End Sub LPARAMETERS Level PROCEDURE OnResizeLevel(oXMLGrid,Level) RETURN |
<SCRIPT EVENT="ResizeLevel(Level)" LANGUAGE="JScript"> </SCRIPT> <SCRIPT LANGUAGE="VBScript"> Function ResizeLevel(Level) End Function </SCRIPT> Procedure OnComResizeLevel Integer llLevel Forward Send OnComResizeLevel llLevel End_Procedure METHOD OCX_ResizeLevel(Level) CLASS MainDialog RETURN NIL void onEvent_ResizeLevel(int _Level) { } function ResizeLevel as v (Level as N) end function function nativeObject_ResizeLevel(Level) return |
The following VB sample specifies a minimum width for the first level:
Private Sub XMLGrid1_ResizeLevel(ByVal Level As Long) If Level = 0 Then With XMLGrid1 If .LevelWidth(Level) < 64 Then .LevelWidth(Level) = 64 End If End With End If End Sub
The following C++ sample specifies a minimum width for the first level:
void OnResizeLevelXmlgrid1(long Level) { if ( Level == 0 ) if ( m_xmlgrid.GetLevelWidth( Level ) < 64 ) m_xmlgrid.SetLevelWidth( Level, 64 ); }
The following VB.NET sample specifies a minimum width for the first level:
Private Sub AxXMLGrid1_ResizeLevel(ByVal sender As Object, ByVal e As AxEXMLGRIDLib._IXMLGridEvents_ResizeLevelEvent) Handles AxXMLGrid1.ResizeLevel If (e.level = 0) Then With AxXMLGrid1 If (.get_LevelWidth(e.level) < 64) Then .set_LevelWidth(e.level, 64) End If End With End If End Sub
The following C# sample specifies a minimum width for the first level:
private void axXMLGrid1_ResizeLevel(object sender, AxEXMLGRIDLib._IXMLGridEvents_ResizeLevelEvent e) { if (e.level == 0) if (axXMLGrid1.get_LevelWidth(e.level) < 64) axXMLGrid1.set_LevelWidth(e.level, 64); }
The following VFP sample specifies a minimum width for the first level:
*** ActiveX Control Event *** LPARAMETERS level with thisform.XMLGrid1 if ( level = 0 ) if ( .LevelWidth(level) < 64 ) .LevelWidth(level) = 64 endif endif endwith