示例#1
0
        /// <summary>
        ///   <para>Specifies size of social icons.</para>
        /// </summary>
        /// <param name="widget">Widget to call method on.</param>
        /// <param name="size">Size of icons (both height and width).</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="IShare42PanelWidget.Size(byte)"/>
        public static IShare42PanelWidget Size(this IShare42PanelWidget widget, Share42PanelSize size)
        {
            Assertion.NotNull(widget);

            return(widget.Size((byte)size));
        }
    /// <summary>
    ///   <para>Specifies size of social icons.</para>
    /// </summary>
    /// <param name="widget">Widget to call method on.</param>
    /// <param name="size">Size of icons (both height and width).</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="IShare42PanelWidget.Size(byte)"/>
    public static IShare42PanelWidget Size(this IShare42PanelWidget widget, Share42PanelSize size)
    {
      Assertion.NotNull(widget);

      return widget.Size((byte)size);
    }