
Hi,
Can I put some meaningful text on a collapsed node than those 3 points inside that gray rectangle ?
Kind regards,
Daniel
Hi,
Can I put some meaningful text on a collapsed node than those 3 points inside that gray rectangle ?
Kind regards,
Daniel
Hi Daniel,
Yes the IOutliningNodeDefinition.GetCollapsedContent method is called to retrieve the content that should be displayed when an outlining node is collapsed. It falls back to returning "..." if no content is returned.
Our OutliningNodeDefinition implementation of that interface's method returns its OutliningNodeDefintion.DefaultCollapsedContent property value. It's up to your IOutliningSource-based class to create IOutliningNode objects using an IOutliningNodeDefinition that either overrides the GetCollapsedContent method or sets that DefaultCollapsedContent property.
For instance, in our VBOutliningSource, we have this:
private static OutliningNodeDefinition usingDirectiveSectionDefinition = new OutliningNodeDefinition("UsingDirectiveSection") {
IsImplementation = true,
DefaultCollapsedContent = "Imports ..."
};
Please log in to a validated account to post comments.