C# Class Faker.Placeholder

A collection of Placeholder related resources.
Exibir arquivo Open project: AdmiringWorm/Faker.NET.Portable

Public Methods

Method Description
Placeholdit ( string size = "300x300", PlaceholditImageFormat format = PlaceholditImageFormat.png, string backgroundColor = null, string textColor = null, string text = null ) : string

Generates a url pointing to the website placehold.it.

Method Details

Placeholdit() public static method

Generates a url pointing to the website placehold.it.
/// /// If the is not in the format '300' and not in the format '300x300'. /// /// If the background color is not a hex color value without '#' /// If the text color is not a hex color value without '#' ///
public static Placeholdit ( string size = "300x300", PlaceholditImageFormat format = PlaceholditImageFormat.png, string backgroundColor = null, string textColor = null, string text = null ) : string
size string The size of the image
format PlaceholditImageFormat The format the image
backgroundColor string The image background color.
textColor string The image text/foreground color.
text string The text on the image.
return string