HTMLStyle Method

Compose and returns a style (e.g. "font-family:Segoe UI; font-size:12;").

Definition

Namespace: Aliquo.Core
Assembly: Aliquo.Core (in Aliquo.Core.dll) Version: 5.0.9179.22651
C#
public static string Style(
	string font = "",
	string fontSize = "",
	string fontColor = "",
	HTMLTextAlign? textAlign = null,
	string width = "",
	string margin = "",
	string padding = "",
	string colorBackground = "",
	string customStyle = ""
)

Parameters

font  String  (Optional)
Syntax: family-name|generic-family|initial|inherit (example: "Arial, Helvetica, sans-serif")
fontSize  String  (Optional)
Syntax: medium|xx-small|x-small|small|large|x-large|xx-large|smaller|larger|length|initial|inherit (example: "15px")
fontColor  String  (Optional)
Syntax: color_name|hex_number|rgb_number (example: "red")
textAlign  NullableHTMLTextAlign  (Optional)
Syntax: left|right|center|justify|initial|inherit (example: "right")
width  String  (Optional)
Syntax: auto|value|initial|inherit (example: "500px")
margin  String  (Optional)
Syntax: top right bottom left| top-bottom right-left (example: "20px 10px 0px 10px")
padding  String  (Optional)
Syntax: top right bottom left| top-bottom right-left (example: "20px 10px 0px 10px")
colorBackground  String  (Optional)
Syntax: color|transparent|initial|inherit (example: "red")
customStyle  String  (Optional)
Syntax: attribute; attribute; ... (example: "border:2px solid Tomato; width: 100px;""

Return Value

String
String with the defined style (p.e. "font-family:Segoe UI; font-size:12;").

See Also