In This Article

IOutliningNode Interface

Provides the base requirements for an outlining node.

public interface IOutliningNode

Properties

Count

The count of child nodes within this outlining node.

int Count { get; }

Property Value

int

Definition

The IOutliningNodeDefinition that was used to define the node.

IOutliningNodeDefinition Definition { get; }

Property Value

IOutliningNodeDefinition

IsCollapsed

Indicates whether the node is collapsed.

bool IsCollapsed { get; set; }

Property Value

bool:

true if the node is collapsed; otherwise, false.

IsOpen

Indicates whether the outlining node is open (has no fixed end offset).

bool IsOpen { get; }

Property Value

bool:

true if the outlining node is open (has no fixed end offset); otherwise, false.

IsRoot

Indicates whether the outlining node is a root-level node.

bool IsRoot { get; }

Property Value

bool:

true if the outlining node is a root-level node; otherwise, false.

Remarks

A root-level node has no ParentNode.

this[int]

The child IOutliningNode at the specified index.

IOutliningNode? this[int index] { get; }
Parameter Type Description
index int

The zero-based index of the child IOutliningNode.

Property Value

IOutliningNode

ParentNode

The IOutliningNode that is the parent of this outlining node.

IOutliningNode? ParentNode { get; }

Property Value

IOutliningNode

SnapshotRange

The TextSnapshotRange that specifies the offset range of this outlining node.

TextSnapshotRange SnapshotRange { get; }

Property Value

TextSnapshotRange

Methods

FindNodeRecursive(int)

Returns a descendant IOutliningNode that contains the specified offset.

IOutliningNode? FindNodeRecursive(int offset)
Parameter Type Description
offset int

The offset for which to search.

Returns

IOutliningNode

ToTreeString(int)

Outputs the contents of the outlining node in tree form.

string ToTreeString(int indentLevel)
Parameter Type Description
indentLevel int

The indentation level.

Returns

string:

A string containing the tree form of the outlining node.

Extension Methods