property Items.ItemHeight(Item as HITEM) as Long

Retrieves or sets the item's height.

 TypeDescription 
   Item as HITEM A long expression that indicates the item's handle. If the Item is 0, setting the ItemHeight property changes the height for all items. For instance, the ItemHeight(0) = 24, changes the height for all items to be 24 pixels wide.  
   Long A long value that indicates the item's height in pixels.  
To change the default height of the item before inserting items to collection you can call DefaultItemHeight property of the control. The control supports items with different heights. When an item hosts an ActiveX control ( was previously created by the InsertControlItem property ), the ItemHeight property changes the height of contained ActiveX control. The CellSingleLine property specifies whether a cell displays its caption using multiple lines. The ItemHeight property has no effect, if the CellSingleLine property is False. If the CellSingleLine property is False, you can specify the maximum height for the item using the ItemMaxHeight property.   Use the ScrollBySingleLine property when using items with different heights. Use the ItemAllowSizing property to specify whether the user can resize the item at runtime. Use the Height property to specify the height for a bar.

VBA Is it possible to change the height for all items at once?

With G2antt1
	.DefaultItemHeight = 12
	.Items.ItemHeight(0) = 12
End With
VB6 Is it possible to change the height for all items at once?
With G2antt1
	.DefaultItemHeight = 12
	.Items.ItemHeight(0) = 12
End With
VB.NET Is it possible to change the height for all items at once?
With Exg2antt1
	.DefaultItemHeight = 12
	.Items.set_ItemHeight(0,12)
End With
VB.NET for /COM Is it possible to change the height for all items at once?
With AxG2antt1
	.DefaultItemHeight = 12
	.Items.ItemHeight(0) = 12
End With
C++ Is it possible to change the height for all items at once?
/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXG2ANTTLib' for the library: 'ExG2antt 1.0 Control Library'

	#import <ExG2antt.dll>
	using namespace EXG2ANTTLib;
*/
EXG2ANTTLib::IG2anttPtr spG2antt1 = GetDlgItem(IDC_G2ANTT1)->GetControlUnknown();
spG2antt1->PutDefaultItemHeight(12);
spG2antt1->GetItems()->PutItemHeight(0,12);
C++ Builder Is it possible to change the height for all items at once?
G2antt1->DefaultItemHeight = 12;
G2antt1->Items->set_ItemHeight(0,12);
C# Is it possible to change the height for all items at once?
exg2antt1.DefaultItemHeight = 12;
exg2antt1.Items.set_ItemHeight(0,12);
JavaScript Is it possible to change the height for all items at once?
<OBJECT classid="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
	G2antt1.DefaultItemHeight = 12

	G2antt1.Items.ItemHeight(0) = 12

</SCRIPT>
C# for /COM Is it possible to change the height for all items at once?
axG2antt1.DefaultItemHeight = 12;
axG2antt1.Items.set_ItemHeight(0,12);
X++ (Dynamics Ax 2009) Is it possible to change the height for all items at once?
public void init()
{
	super()


	exg2antt1.DefaultItemHeight(12)

	exg2antt1.Items().ItemHeight(0,12)

}
VFP Is it possible to change the height for all items at once?
with thisform.G2antt1
	.DefaultItemHeight = 12
	.Items.ItemHeight(0) = 12
endwith
dBASE Plus Is it possible to change the height for all items at once?
local oG2antt,var_Items

oG2antt = form.Activex1.nativeObject
oG2antt.DefaultItemHeight = 12
// oG2antt.Items.ItemHeight(0) = 12
var_Items = oG2antt.Items
with (oG2antt)
	TemplateDef = [Dim var_Items]
	TemplateDef = var_Items
	Template = [var_Items.ItemHeight(0) = 12]
endwith
XBasic (Alpha Five) Is it possible to change the height for all items at once?
Dim oG2antt as P
Dim var_Items as P

oG2antt = topparent:CONTROL_ACTIVEX1.activex
oG2antt.DefaultItemHeight = 12
' oG2antt.Items.ItemHeight(0) = 12
var_Items = oG2antt.Items
oG2antt.TemplateDef = "Dim var_Items"
oG2antt.TemplateDef = var_Items
oG2antt.Template = "var_Items.ItemHeight(0) = 12"

Delphi 8 (.NET only) Is it possible to change the height for all items at once?
with AxG2antt1 do
begin
	DefaultItemHeight := 12;
	Items.ItemHeight[0] := 12;
end
Delphi (standard) Is it possible to change the height for all items at once?
with G2antt1 do
begin
	DefaultItemHeight := 12;
	Items.ItemHeight[0] := 12;
end
Visual Objects Is it possible to change the height for all items at once?
oDCOCX_Exontrol1:DefaultItemHeight := 12
oDCOCX_Exontrol1:Items:[ItemHeight,0] := 12
PowerBuilder Is it possible to change the height for all items at once?
OleObject oG2antt

oG2antt = ole_1.Object
oG2antt.DefaultItemHeight = 12
oG2antt.Items.ItemHeight(0,12)


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