Represents a definition used to create an outlining node.
- Inheritance:
- object object
- Implements:
-
IOutlining
Node IKeyedDefinition Object
Constructors
OutliningNodeDefinition(string)
Initializes the OutliningNodeDefinition
class.
Parameter | Type | Description |
---|---|---|
key | string | The string-based key that identifies the object. |
Properties
DefaultCollapsedContent
Gets or sets the default content that should be displayed when the outlining node is collapsed.
Property Value
- object:
The default content that should be displayed when the outlining node is collapsed.
Remarks
Only string-based content is currently supported.
This property may be left null
to use the global default collapsed content.
HasEndDelimiter
Gets or sets whether the outlining node ends using a delimiter.
Property Value
- bool:
true
if the outlining node ends using a delimiter; otherwise,false
.
Remarks
This property can be set to false
to hint to the outlining manager that the node might be properly closed even though it doesn't have an end delimiter.
IsCollapsible
Gets or sets whether the outlining node is capable of being collapsed.
Property Value
- bool:
true
if the outlining node is capable of being collapsed; otherwise,false
.
IsDefaultCollapsed
Gets or sets whether the outlining node is collapsed by default.
Property Value
- bool:
true
if the outlining node is collapsed by default; otherwise,false
.
Remarks
Pre-processor region nodes are examples of nodes that are generally collapsed by default.
IsImplementation
Gets or sets whether the outlining node represents some sort of member implementation that should be auto-collapsed when collapsing to definitions.
Property Value
- bool:
true
if the outlining node represents some sort of member implementation; otherwise,false
.
Key
Gets the string-based key that identifies the object.
Property Value
- string:
The string-based key that identifies the object.
Methods
GetCollapsedContent(IOutliningNode)
Returns the content that should be displayed when the outlining node is collapsed.
Parameter | Type | Description |
---|---|---|
node | IOutlining |
The IOutlining |
Returns
- object:
The content that should be displayed when the outlining node is collapsed.
Remarks
Only string-based content is currently supported.
The default implementation of this method returns the value of the Default
ToString()
Returns a String
that represents the current Object
.
Returns
- string:
A
String
that represents the currentObject
.