Exemple #1
0
        /// <summary>
        ///   <para>Sets predefined dimensions of board and images to make board look like a site's square.</para>
        /// </summary>
        /// <param name="widget">Widget to call method on.</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="IPinterestBoardWidget.Image(string)"/>
        /// <seealso cref="IPinterestBoardWidget.Height(string)"/>
        /// <seealso cref="IPinterestBoardWidget.Width(string)"/>
        public static IPinterestBoardWidget Square(this IPinterestBoardWidget widget)
        {
            Assertion.NotNull(widget);

            return(widget.Image(80).Height(320).Width(400));
        }
Exemple #2
0
        /// <summary>
        ///   <para>Width of board's image in pixels.</para>
        /// </summary>
        /// <param name="widget">Widget to call method on.</param>
        /// <param name="width">Board's image 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="IPinterestBoardWidget.Image(string)"/>
        public static IPinterestBoardWidget Image(this IPinterestBoardWidget widget, short width)
        {
            Assertion.NotNull(widget);

            return(widget.Image(width.ToString(CultureInfo.InvariantCulture)));
        }
Exemple #3
0
        /// <summary>
        ///   <para>Sets predefined dimensions of board and images to make board look like a site's sidebar.</para>
        /// </summary>
        /// <param name="widget">Widget to call method on.</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="IPinterestBoardWidget.Image(string)"/>
        /// <seealso cref="IPinterestBoardWidget.Height(string)"/>
        /// <seealso cref="IPinterestBoardWidget.Width(string)"/>
        public static IPinterestBoardWidget Sidebar(this IPinterestBoardWidget widget)
        {
            Assertion.NotNull(widget);

            return(widget.Image(60).Height(800).Width(150));
        }
Exemple #4
0
        /// <summary>
        ///   <para>Sets predefined dimensions of board and images to make board look like a site's header.</para>
        /// </summary>
        /// <param name="widget">Widget to call method on.</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="IPinterestBoardWidget.Image(string)"/>
        /// <seealso cref="IPinterestBoardWidget.Height(string)"/>
        /// <seealso cref="IPinterestBoardWidget.Width(string)"/>
        public static IPinterestBoardWidget Header(this IPinterestBoardWidget widget)
        {
            Assertion.NotNull(widget);

            return(widget.Image(115).Height(120).Width(900));
        }