Skip to main content

TdxNavBarViewsFactory.GetIDFromName(string) Method

Returns the identity value of the NavBar control View by its name.

Declaration

function GetIDFromName(const Name: string): Integer;

Parameters

Name Type
Name string

Returns

Type
Integer

Remarks

The Name parameter specifies the View’s name. If a View with the specified identity value is not registered within the NavBar control, GetIDFromName function returns -1.

The View property specifies the identity value of the View that is currently applied to the NavBar control. To specify a View by its name, use the GetIDFromName to obtain the corresponding identity value first.

The following code applies the ExplorerBarView View to the NavBar control:

dxNavBar1.View := dxNavBarViewsFactory.GetIDFromName('ExplorerBarView');
See Also