Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,9 @@ public ElementBuilder(ElementType type,
/// <summary>The kind of element (e.g. article, item, task, ...)</summary>
public ElementType Type { get; }

/// <summary>Defines the initial interval for the element</summary>
public int Interval { get; private set; } = 1;

/// <summary>The content definitions (e.g. text, images, ...)</summary>
public List<ContentBase> Contents { get; } = new List<ContentBase>();

Expand Down Expand Up @@ -298,6 +301,18 @@ public ElementBuilder WithTemplate(ITemplate template)
return this;
}

/// <summary>Determines the element's initial interval</summary>
/// <param name="interval"></param>
/// <returns></returns>
public ElementBuilder WithInterval(int interval)
{
if (interval < 1)
interval = 1;

Interval = interval;
return this;
}

/// <summary>Defines how to apply <see cref="Template"/></summary>
/// <param name="applyMode"></param>
/// <returns></returns>
Expand Down