/// <summary> /// <para>Annotation to display next to the button.</para> /// </summary> /// <param name="widget">Widget to call method on.</param> /// <param name="annotation">Annotation for the 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="IGooglePlusOneButtonWidget.Annotation(string)"/> public static IGooglePlusOneButtonWidget Annotation(this IGooglePlusOneButtonWidget widget, GooglePlusOneButtonAnnotation annotation) { Assertion.NotNull(widget); return(widget.Annotation(annotation.ToString().ToLowerInvariant())); }
/// <summary> /// <para>Size of the button.</para> /// </summary> /// <param name="widget">Widget to call method on.</param> /// <param name="size">Size of the 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="IGooglePlusOneButtonWidget.Size(string)"/> public static IGooglePlusOneButtonWidget Size(this IGooglePlusOneButtonWidget widget, GooglePlusOneButtonSize size) { Assertion.NotNull(widget); return(widget.Size(size.ToString().ToLowerInvariant())); }
/// <summary> /// <para>Horizontal alignment of the button assets within its frame.</para> /// </summary> /// <param name="widget">Widget to call method on.</param> /// <param name="alignment">Horizontal alignment of the 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="IGooglePlusOneButtonWidget.Alignment(string)"/> public static IGooglePlusOneButtonWidget Alignment(this IGooglePlusOneButtonWidget widget, GooglePlusOneButtonAlignment alignment) { Assertion.NotNull(widget); return(widget.Alignment(alignment.ToString().ToLowerInvariant())); }
/// <summary> /// <para>If annotation is set to "inline", this parameter sets the width in pixels to use for the button and its inline annotation.</para> /// </summary> /// <param name="widget">Widget to call method on.</param> /// <param name="width">Width of the 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="IGooglePlusOneButtonWidget.Width(string)"/> public static IGooglePlusOneButtonWidget Width(this IGooglePlusOneButtonWidget widget, short width) { Assertion.NotNull(widget); return(widget.Width(width.ToString(CultureInfo.InvariantCulture))); }