Table of Contents

Struct TwCalendarEventLayout.Slot<T>

Namespace
TwBlazor.Components
Assembly
TwBlazor.dll

One event's position within its overlap cluster: Column (0-based) of ColumnCount total columns in the cluster it belongs to.

public readonly struct TwCalendarEventLayout.Slot<T> : IEquatable<TwCalendarEventLayout.Slot<T>>

Type Parameters

T
Implements
Inherited Members

Constructors

Slot(Schedule<T>, int, int)

One event's position within its overlap cluster: Column (0-based) of ColumnCount total columns in the cluster it belongs to.

public Slot(Schedule<T> Event, int Column, int ColumnCount)

Parameters

Event Schedule<T>
Column int
ColumnCount int

Properties

Column

public int Column { get; init; }

Property Value

int

ColumnCount

public int ColumnCount { get; init; }

Property Value

int

Event

public Schedule<T> Event { get; init; }

Property Value

Schedule<T>

Methods

Deconstruct(out Schedule<T>, out int, out int)

public void Deconstruct(out Schedule<T> Event, out int Column, out int ColumnCount)

Parameters

Event Schedule<T>
Column int
ColumnCount int

Equals(object)

public override bool Equals(object obj)

Parameters

obj object

Returns

bool

Equals(Slot<T>)

public bool Equals(TwCalendarEventLayout.Slot<T> other)

Parameters

other TwCalendarEventLayout.Slot<T>

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string

Operators

operator ==(Slot<T>, Slot<T>)

public static bool operator ==(TwCalendarEventLayout.Slot<T> left, TwCalendarEventLayout.Slot<T> right)

Parameters

left TwCalendarEventLayout.Slot<T>
right TwCalendarEventLayout.Slot<T>

Returns

bool

operator !=(Slot<T>, Slot<T>)

public static bool operator !=(TwCalendarEventLayout.Slot<T> left, TwCalendarEventLayout.Slot<T> right)

Parameters

left TwCalendarEventLayout.Slot<T>
right TwCalendarEventLayout.Slot<T>

Returns

bool