Back to Devexpress

BreadCrumbNode.Path Property

windowsforms-devexpress-dot-xtraeditors-dot-breadcrumbnode-e8c04e1b.md

latest4.0 KB
Original Source

BreadCrumbNode.Path Property

Gets this BreadCrumbNode‘s path.

Namespace : DevExpress.XtraEditors

Assembly : DevExpress.XtraEditors.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[Browsable(false)]
public string Path { get; }
vb
<Browsable(False)>
Public ReadOnly Property Path As String

Property Value

TypeDescription
String

A String value that is this BreadCrumbNode‘s path.

|

Remarks

The Path property indicates the sequence of nodes starting from the first node and up to the specific node’s parent and the node’s position within the parent’s BreadCrumbNode.ChildNodes collection. In other words, the Path property returns the Path property value plus this node’s BreadCrumbNode.Value.

In the image below, the “CBS” node’s Path property returns “C:\Windows\Logs\CBS”.

The following code snippets (auto-collected from DevExpress Examples) contain references to the Path 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.

winforms-file-explorer-breadcrumb-folder-nav/CS/FileNavigator/Form1.cs#L65

csharp
//Populate dynamic nodes
string dir = e.Node.Path;
if (!Directory.Exists(dir))

winforms-how-to-use-zoom-transition-effect/CS/dxSample/Form1.cs#L156

csharp
private void repositoryItemBreadCrumbEdit1_QueryChildNodes(object sender, BreadCrumbQueryChildNodesEventArgs e) {
    string dir = e.Node.Path;
    if(!FileSystemHelper.IsDirExists(dir))

winforms-file-explorer-breadcrumb-folder-nav/VB/Form1.vb#L67

vb
'Populate dynamic nodes
Dim dir As String = e.Node.Path
If (Not Directory.Exists(dir)) Then

winforms-how-to-use-zoom-transition-effect/VB/dxSample/Form1.vb#L165

vb
Private Sub repositoryItemBreadCrumbEdit1_QueryChildNodes(ByVal sender As Object, ByVal e As DevExpress.XtraEditors.BreadCrumbQueryChildNodesEventArgs)
    Dim dir As String = e.Node.Path
    If Not DevExpress.Utils.Helpers.FileSystemHelper.IsDirExists(dir) Then Return

See Also

Breadcrumb Edit Control

BreadCrumbNode Class

BreadCrumbNode Members

DevExpress.XtraEditors Namespace