Class SheetPathNode
- Namespace
- Smartsheet.Api.Models
- Assembly
- smartsheet-csharp-sdk.dll
Node in a sheet path response. Contains recursive folders leading to the target sheet.
public class SheetPathNode : PathNode
- Inheritance
-
SheetPathNode
- Inherited Members
Properties
Folders
The list of nested folder nodes on the path from this node to the target sheet; may be null.
public IList<SheetPathNode>? Folders { get; set; }
Property Value
Sheets
The list of sheet leaf nodes within this node; non-null only at the deepest folder level.
public IList<PathLeaf>? Sheets { get; set; }
Property Value
Methods
GetLeafSheet()
Walks down through folders until reaching the node that contains sheets, then returns the first sheet.
public PathLeaf? GetLeafSheet()
Returns
- PathLeaf
The first PathLeaf sheet found at the deepest level, or
nullif the path contains no sheets.
GetLeafSheetPath()
Returns a /-separated path of node names from this node down to the target sheet.
public string? GetLeafSheetPath()
Returns
- string
A string such as
"/Workspace/Folder/Sheet", ornullif the path contains no sheets.
Examples
Workspace → Folder → Sheet returns "/Workspace/Folder/Sheet".
Workspace → Sheet (no intermediate folders) returns "/Workspace/Sheet".