Open Source Web Application Framework for ASP.NET Core
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

32 lines
625 B

using System.Collections.Generic;
namespace Volo.Docs.TableOfContents;
public class TocHeading
{
public int Level { get; set; }
public string Text { get; set; }
public string Id { get; set; }
public TocHeading(int level, string text, string id)
{
Level = level;
Text = text;
Id = id;
}
}
public class TocItem
{
public TocHeading Heading { get; set; }
public List<TocItem> Children { get; set; }
public TocItem(TocHeading heading, List<TocItem> children)
{
Heading = heading;
Children = children;
}
}