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