HTMLStyleAttribute Method
Compose and returns the style attribute (e.g. style="font-family:Segoe UI; font-size:12;").
Namespace: Aliquo.CoreAssembly: Aliquo.Core (in Aliquo.Core.dll) Version: 5.0.9179.22651
public static string StyleAttribute(
string font = "",
string fontSize = "",
string fontColor = "",
HTMLTextAlign? textAlign = null,
string width = "",
string margin = "",
string padding = "",
string colorBackground = "",
string customStyle = ""
)
Public Shared Function StyleAttribute (
Optional font As String = "",
Optional fontSize As String = "",
Optional fontColor As String = "",
Optional textAlign As HTMLTextAlign? = Nothing,
Optional width As String = "",
Optional margin As String = "",
Optional padding As String = "",
Optional colorBackground As String = "",
Optional customStyle As String = ""
) As String
- 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;""
StringString with the defined style attribute (p.e. "font-family:Segoe UI; font-size:12;").