/// <summary> /// <para>Vertical height of the button in pixels.</para> /// </summary> /// <param name="widget">Widget to call method on.</param> /// <param name="height">Height of button.</param> /// <returns>Reference to provided <paramref name="widget"/>.</returns> /// <exception cref="ArgumentNullException">If <paramref name="widget"/> is a <c>null</c> reference.</exception> /// <seealso cref="IVkontakteLikeButtonWidget.Height(string)"/> public static IVkontakteLikeButtonWidget Height(this IVkontakteLikeButtonWidget widget, short height) { Assertion.NotNull(widget); return(widget.Height(height.ToString(CultureInfo.InvariantCulture))); }
/// <summary> /// <para>Visual layout/appearance of the button.</para> /// </summary> /// <param name="widget">Widget to call method on.</param> /// <param name="layout">Layout of button.</param> /// <returns>Reference to provided <paramref name="widget"/>.</returns> /// <exception cref="ArgumentNullException">If <paramref name="widget"/> is a <c>null</c> reference.</exception> /// <seealso cref="IVkontakteLikeButtonWidget.Layout(string)"/> public static IVkontakteLikeButtonWidget Layout(this IVkontakteLikeButtonWidget widget, VkontakteLikeButtonLayout layout) { Assertion.NotNull(widget); return(widget.Layout(layout.ToString().ToLowerInvariant())); }
/// <summary> /// <para>Width of button in pixels.</para> /// </summary> /// <param name="widget">Widget to call method on.</param> /// <param name="width">Width of button.</param> /// <returns>Reference to provided <paramref name="widget"/>.</returns> /// <exception cref="ArgumentNullException">If <paramref name="widget"/> is a <c>null</c> reference.</exception> /// <seealso cref="IVkontakteLikeButtonWidget.Width(string)"/> public static IVkontakteLikeButtonWidget Width(this IVkontakteLikeButtonWidget widget, short width) { Assertion.NotNull(widget); return(widget.Width(width.ToString(CultureInfo.InvariantCulture))); }
/// <summary> /// <para>Type of text to display on the button.</para> /// </summary> /// <param name="widget">Widget to call method on.</param> /// <param name="verb">Displayed button's verb.</param> /// <returns>Reference to provided <paramref name="widget"/>.</returns> /// <exception cref="ArgumentNullException">If <paramref name="widget"/> is a <c>null</c> reference.</exception> /// <seealso cref="IVkontakteLikeButtonWidget.Verb(byte)"/> public static IVkontakteLikeButtonWidget Verb(this IVkontakteLikeButtonWidget widget, VkontakteLikeButtonVerb verb) { Assertion.NotNull(widget); return(widget.Verb((byte)verb)); }