LayoutControl.AddItem(String, Control, BaseLayoutItem, BaseLayoutItem, InsertType) Method
In This Article
OBSOLETE
Use the Add
Inserts the specified layout item at a position relative to another item within the root group. Allows a new text to be specified for the item.
Namespace: DevExpress.XtraLayout
Assembly: DevExpress.XtraLayout.v24.2.dll
NuGet Package: DevExpress.Win.Navigation
#Declaration
[EditorBrowsable(EditorBrowsableState.Never)]
[Obsolete("Use the AddItem(BaseLayoutItem newItem, BaseLayoutItem baseItem, InsertType insertType) method instead")]
public LayoutControlItem AddItem(
string text,
Control control,
BaseLayoutItem newItem,
BaseLayoutItem baseItem,
InsertType insertType
)
#Parameters
Name | Type | Description |
---|---|---|
text | String | A String value that specifies the new text to be assigned to the added item. The parameter is ignored if the value represents an empty string. |
control | Control | This parameter is ignored. |
new |
Base |
The item to add to the root group. |
base |
Base |
A Base |
insert |
Insert |
The position of the new item relative to the base |
#Returns
Type | Description |
---|---|
Layout |
The newly created layout item. |
See Also