Struct DiagramColumnTruncation
Result of truncating one diagram column to a maximum visible card count.
Inherited Members
Namespace: Serenity.Shared.Layout
Assembly: Serenity.Shared.dll
Syntax
public readonly struct DiagramColumnTruncation
Constructors
DiagramColumnTruncation(int, int, bool, bool)
Creates a truncation result.
Declaration
public DiagramColumnTruncation(int totalCount, int visibleCount, bool hasOverflowSlot, bool isExpanded)
Parameters
| Type | Name | Description |
|---|---|---|
| int | totalCount | |
| int | visibleCount | |
| bool | hasOverflowSlot | |
| bool | isExpanded |
Fields
HasOverflowSlot
Whether a trailing "show N more…" / "show less" pseudo-card is present.
Declaration
public readonly bool HasOverflowSlot
Field Value
| Type | Description |
|---|---|
| bool |
IsExpanded
Whether the column is currently showing every card (the pseudo-card reads "show less").
Declaration
public readonly bool IsExpanded
Field Value
| Type | Description |
|---|---|
| bool |
TotalCount
How many candidate cards the column has in total, before truncation.
Declaration
public readonly int TotalCount
Field Value
| Type | Description |
|---|---|
| int |
VisibleCount
How many of those cards are real, visible slots (excludes the overflow pseudo-card).
Declaration
public readonly int VisibleCount
Field Value
| Type | Description |
|---|---|
| int |
Properties
HiddenCount
How many candidate cards were left out of the visible slots.
Declaration
public int HiddenCount { get; }
Property Value
| Type | Description |
|---|---|
| int |