

| Type | Description | |||
| Variant | A Long expression that specifies the handle of the Window to be hosted by the Item. |
The following VB/NET sample displays the form's PropertyGrid control to an Item ( /NET version ):
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
' Add 'exontrol.exribbon.dll' reference to your project.
With Exribbon1
With .Items
With .Add("PropertiesGrid", 3).SubControl
.Width = 256
.Height = 312
.Window = PropertyGrid1
End With
End With
End With
PropertyGrid1.SelectedObject = Exribbon1
End Sub
The following C# sample displays the form's PropertyGrid control to an Item ( /NET version ):
private void Form1_Load(object sender, EventArgs e)
{
exontrol.EXRIBBONLib.Items var_Items = exribbon1.Items;
exontrol.EXRIBBONLib.Control var_Control = var_Items.Add("PropertiesGrid", 3, null).SubControl;
var_Control.Width = 256;
var_Control.Height = 312;
var_Control.Window = propertyGrid1;
propertyGrid1.SelectedObject = exribbon1;
}