IOutliningSource Interface
Provides the base requirements of an object that can drive automatic code outlining (folding) features for a language.
public interface IOutliningSource
Methods
GetNodeAction(ref Int32, out IOutliningNodeDefinition)
Returns information about the action to take when incrementally updating automatic outlining for a particular offset.
OutliningNodeAction GetNodeAction(ref int offset, out IOutliningNodeDefinition definition)
Parameter | Type | Description |
---|---|---|
offset | Int32 | The offset to examine. For improved incremental outlining performance, it can be modified to indicate the next meaningful offset for the source. |
definition | IOutliningNodeDefinition | If the node action indicated is a start or end, an IOutliningNodeDefinition describing the related node must be returned. |
Returns
- OutliningNodeAction:
An OutliningNodeAction indicating the action to take for the offset.