Interface IStyleStrategy
Defines a strategy for styling fortune items based on their position.
public interface IStyleStrategy
Methods
GetStyle(int, int, FortuneItemStyle?)
Gets the style for an item at a specific index.
FortuneItemStyle GetStyle(int index, int totalCount, FortuneItemStyle? itemStyle)
Parameters
indexintThe index of the item.
totalCountintThe total number of items.
itemStyleFortuneItemStyleThe item's custom style, if any.
Returns
- FortuneItemStyle
The style to apply to the item.