/// <summary> /// Creates a line-list item from this general list item. If you don't need to pass any arguments, don't use this method; general list items are implicitly /// converted to line-list items. /// </summary> /// <param name="item"></param> /// <param name="verticalAlignment">The vertical alignment of the item.</param> /// <param name="width">The width of the item.</param> public static LineListItem ToLineListItem( this ComponentListItem item, FlexboxVerticalAlignment verticalAlignment = FlexboxVerticalAlignment.NotSpecified, ContentBasedLength width = null) => new LineListItem(() => item.GetItemAndComponent(FlexboxVerticalAlignmentStatics.Class(verticalAlignment), width));
/// <summary> /// Creates a wrapping-list item from this general list item. If you don't need to pass any arguments, don't use this method; general list items are /// implicitly converted to wrapping-list items. /// </summary> /// <param name="item"></param> /// <param name="verticalAlignment">The vertical alignment of the item.</param> /// <param name="width">The width of the item.</param> public static WrappingListItem ToWrappingListItem( this ComponentListItem item, FlexboxVerticalAlignment verticalAlignment = FlexboxVerticalAlignment.NotSpecified, ContentBasedLength width = null) { return(new WrappingListItem(() => item.GetItemAndComponent(FlexboxVerticalAlignmentStatics.Class(verticalAlignment), width))); }