BaseLayoutItem.Name Property

Gets or sets the layout item's name.

Namespace: DevExpress.XtraLayout

Assembly: DevExpress.XtraLayout.v20.1.dll

Declaration

[XtraSerializableProperty]
[DefaultValue("")]
[Browsable(false)]
public string Name { get; set; }
<XtraSerializableProperty>
<DefaultValue("")>
<Browsable(False)>
Public Property Name As String

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.

See Also