BaseLayoutItem.Name Property
Gets or sets the layout item’s name.
Namespace: DevExpress.XtraLayout
Assembly: DevExpress.XtraLayout.v20.2.dll
NuGet Package: DevExpress.Win.Navigation
Declaration
[Browsable(false)]
[DefaultValue("")]
[XtraSerializableProperty]
public string Name { get; set; }
Property Value
Type | Default | Description |
---|---|---|
String | String.Empty | A String value that specifies the item’s name. |
Remarks
BaseLayoutItem objects are Component descendants and thus, can be directly accessed in code using their names. Therefore, the Name property specifies the string that can be used in code to access the layout item.
Note
To allow a Layout Control’s layout to be customized and serialized you need to ensure that Name properties of the layout items and controls within the layout items are set to unique values. You must set the Name properties to unique values for layout items and controls that are created at runtime. The control’s Name property must be initialized before this control is assigned to the LayoutControlItem.Control property.
Related GitHub Examples
The following code snippets (auto-collected from DevExpress Examples) contain references to the Name property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.