Skip to main content

LayoutControl.GetControlByName(String) Method

Returns the control with the specified name, contained within the Layout Control.

Namespace: DevExpress.XtraLayout

Assembly: DevExpress.XtraLayout.v24.1.dll

NuGet Package: DevExpress.Win.Navigation

Declaration

public Control GetControlByName(
    string name
)

Parameters

Name Type Description
name String

A String value that specifies the control’s name.

Returns

Type Description
Control

A Control descendant that represents the control with the specified name, contained within the Layout Control. null (Nothing in Visual Basic) if the control isn’t found.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the GetControlByName(String) method.

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.

See Also