/// <summary> /// <para>The height of the button.</para> /// </summary> /// <param name="widget">Widget to call method on.</param> /// <param name="height">Height of button.</param> /// <returns>Reference to the current widget.</returns> /// <exception cref="ArgumentNullException">If <paramref name="widget"/> is a <c>null</c> reference.</exception> /// <seealso cref="IFacebookSendButtonWidget.Height(string)"/> public static IFacebookSendButtonWidget Height(this IFacebookSendButtonWidget widget, short height) { Assertion.NotNull(widget); return(widget.Height(height.ToString(CultureInfo.InvariantCulture))); }
/// <summary> /// <para>The color scheme used by the button.</para> /// </summary> /// <param name="widget">Widget to call method on.</param> /// <param name="colorScheme">Color scheme of button.</param> /// <returns>Reference to the current widget.</returns> /// <exception cref="ArgumentNullException">If <paramref name="widget"/> is a <c>null</c> reference.</exception> /// <seealso cref="IFacebookSendButtonWidget.ColorScheme(string)"/> public static IFacebookSendButtonWidget ColorScheme(this IFacebookSendButtonWidget widget, FacebookColorScheme colorScheme) { Assertion.NotNull(widget); return(widget.ColorScheme(colorScheme.ToString().ToLowerInvariant())); }
/// <summary> /// <para>The width of the button.</para> /// </summary> /// <param name="widget">Widget to call method on.</param> /// <param name="width">Width of button.</param> /// <returns>Reference to the current widget.</returns> /// <exception cref="ArgumentNullException">If <paramref name="widget"/> is a <c>null</c> reference.</exception> /// <seealso cref="IFacebookSendButtonWidget.Width(string)"/> public static IFacebookSendButtonWidget Width(this IFacebookSendButtonWidget widget, short width) { Assertion.NotNull(widget); return(widget.Width(width.ToString(CultureInfo.InvariantCulture))); }