Edit

Share via


MenuItemStyle Constructors

Definition

Initializes a new instance of the MenuItemStyle class.

Overloads

MenuItemStyle()

Initializes a new instance of the MenuItemStyle class.

MenuItemStyle(StateBag)

Initializes a new instance of the MenuItemStyle class using the specified state information.

MenuItemStyle()

Initializes a new instance of the MenuItemStyle class.

public:
 MenuItemStyle();
public MenuItemStyle ();
Public Sub New ()

Remarks

Use this constructor to create a new instance of the MenuItemStyle class.

Note

This constructor is commonly used when extending the Menu class to initialize the menu item style properties, such as DynamicMenuItemStyle.

See also

Applies to

MenuItemStyle(StateBag)

Initializes a new instance of the MenuItemStyle class using the specified state information.

public:
 MenuItemStyle(System::Web::UI::StateBag ^ bag);
public MenuItemStyle (System.Web.UI.StateBag bag);
new System.Web.UI.WebControls.MenuItemStyle : System.Web.UI.StateBag -> System.Web.UI.WebControls.MenuItemStyle
Public Sub New (bag As StateBag)

Parameters

bag
StateBag

A StateBag that represents the state bag in which menu item style information is stored.

Remarks

Use this constructor to create and initialize a new instance of the MenuItemStyle class using the StateBag object specified by the bag parameter.

Note

This member is used primarily by control developers when deriving a custom control from the Menu class. It is used to initialize the menu item style properties, such as DynamicMenuItemStyle.

See also

Applies to