Gets the font of an UI element.
[Visual Basic]
Public ReadOnly Property Font As
FontInfo
Remarks
This property gets FontInfo object which wraps up font-related CSS attributes. Here is an example of using this property to set font-related CSS attributes.
[C#]
// Get a menu look item
MenuItem lookItem;
lookItem = Menu1.ItemLooks.GetItemByID("default");
// Set the look item's normal style font to bold.
// All the menu items that uses this look item will have bold font in normal state.
lookItem.NormalStyle.Font.Bold = true;
[Visual Basic.NET] ' Get a menu look item
Dim lookItem as MenuItem
lookItem = Menu1.ItemLooks.GetItemByID("default")
' Set the look item's normal style font to bold.
' All the menu items that uses this look item will have bold font in normal state.
lookItem.NormalStyle.Font.Bold = true
FontInfo
See Also
ElementStyle Class | EO.Web Namespace | FontInfo