Site Map | About Us | Contact Us  
 The same content in Microsoft HTML help file format is included in the download package.

FontInfo Class

This class maintains the CSS attributes specific to font.

For a list of all members of this type, see FontInfo Members.

System.Object
   EO.Web.FontInfo

[Visual Basic]
Public Class FontInfo
[C#]
public class FontInfo

Thread Safety

Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.

Remarks

ElementStyle's Font property uses this class to maintain font-related CSS attributes for navigation controls and navigation items. Here is an example to use 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

Requirements

Namespace: EO.Web

Assembly: EO.Web (in EO.Web.dll)

See Also

FontInfo Members | EO.Web Namespace


Direct link to this topic