System.Web 2.0.0.0 System.Web.UI.WebControls.Style Use the class to represent the style of a menu item in the control. A menu item is displayed in either a static menu or a dynamic menu. A static menu is always displayed in a control, whereas a dynamic menu is displayed only when the user positions the mouse pointer over a parent menu item that contains a dynamic submenu. You can specify different style characteristics (such as font size and color) for each of the different menu item types. The following table lists the available menu item styles. Menu item style property Description The style settings for a dynamic menu item when the mouse pointer is positioned over it. The style settings for an individual dynamic menu item. The style settings for a dynamic menu. The style settings for the currently selected dynamic menu item. The style settings for a static menu item when the mouse pointer is positioned over it. The style settings for an individual static menu item. The style settings for a static menu. The style settings for the currently selected static menu item. When multiple style properties are set for a static menu item, the style properties are applied in the following order: . . If the collection or collection is defined, it is applied at this time, overriding the other menu item style properties. . If the collection is defined, it is applied at this time, overriding the other menu item style properties. . Likewise, the style properties for a dynamic menu item are applied in the following order: . . If the collection or collection is defined, it is applied at this time, overriding the other menu item style properties. . If the collection is defined, it is applied at this time, overriding the other menu item style properties. . The class inherits most of its members from the class. It extends the class by providing properties that control the amount of space around a menu item's text, as well as the space between adjacent menu items. Use the property to control the amount of space to the left and right of the menu item's text. Similarly, the property controls the amount of space above and below the menu item's text. You can control the amount of spacing between the menu item that the object is applied to and its adjacent menu items by setting the property. For more information on the inherited style settings, see . Represents the style of a menu item in a control. This class cannot be inherited. Constructor Use this constructor to create a new instance of the class. This constructor is commonly used when extending the class to initialize the menu item style properties, such as . Initializes a new instance of the class. 2.0.0.0 Constructor 2.0.0.0 Use this constructor to create and initialize a new instance of the class using the object specified by the bag parameter. This member is used primarily by control developers when deriving a custom control from the class. It is used to initialize the menu item style properties, such as . Initializes a new instance of the class using the specified state information. A that represents the state bag in which menu item style information is stored. Method System.Void Use the method to duplicate the style properties of the specified object in the object that calls this method. All properties in the current instance of the class will be replaced by the corresponding properties in the specified object. To copy style properties without replacing any set values, use the method. Copies the style properties of the specified object into the current instance of the class. The to copy. 2.0.0.0 Method System.Void Use the method to add the style properties of the current instance of the class to the specified object. This method is used only by control developers. Adds the style properties of the object to the specified object. The to add the style properties to. An -implemented object that contains the context information for the current location (URL). 2.0.0.0 Property System.ComponentModel.NotifyParentProperty(true) System.ComponentModel.DefaultValue(typeof(System.Web.UI.WebControls.Unit), "") System.Web.UI.WebControls.Unit To be added. Use the property to control the amount of horizontal space around the text of the menu item to which the object is applied. This space is inserted between the left edge of the text and the border of the text area, and between the right edge of the text and the text's border. To control the vertical spacing, use the property. Gets or sets the amount of space to the left and right of the menu item's text. 2.0.0.0 Property System.Boolean To be added. To be added. To be added. 2.0.0.0 System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden) System.ComponentModel.Browsable(false) Property System.ComponentModel.NotifyParentProperty(true) System.ComponentModel.DefaultValue(typeof(System.Web.UI.WebControls.Unit), "") System.Web.UI.WebControls.Unit To be added. Use the property to control the amount of vertical spacing between a menu item to which the object is applied and its adjacent menu items at the same level. This space is inserted between the upper edge of the current menu item and the lower edge of the previous menu item, as well as between the lower edge of the current menu item and upper edge of the next menu item. The upper space is not rendered for the first menu item in the control. Gets or sets the amount of vertical spacing between the menu item to which the object is applied and its adjacent menu items. 2.0.0.0 Method System.Void Use the method to combine the style properties of the specified object with the style properties of the object that this method is called from. This method joins the style properties by setting each property that is not set in the current object with its corresponding value in the specified object. Only properties that have not been set will be updated. If a property in the specified object is not set, the corresponding property in the current object does not change. Combines the style properties of the specified object with those of the current instance of the class. The to combine settings with. 2.0.0.0 Method System.Void Use the method to remove any defined style elements from the state bag and reset the object to its original state. Returns the current instance of the class to its original state. 2.0.0.0 Property System.ComponentModel.NotifyParentProperty(true) System.ComponentModel.DefaultValue(typeof(System.Web.UI.WebControls.Unit), "") System.Web.UI.WebControls.Unit To be added. Use the property to control the amount of vertical space around the text of the menu item to which the object is applied. This space is inserted between the upper edge of the text and the border of the text area, as well as between the lower edge of the text and the text's border. To control the horizontal spacing, use the property. Gets or sets the amount of space above and below a menu item's text. 2.0.0.0