System.Web 2.0.0.0 System.Web.UI.WebControls.Style

Use the class to represent the style of a node in the control. The control allows you to specify different style characteristics (such as font size and color) for each of the different node types.

The following table lists the node styles that are supported by the class.

Node style property

Description

The style settings for a node when the mouse pointer is positioned over it.

The style settings for the leaf nodes.

The default style settings for a node.

The style settings for the parent nodes.

The style settings for the root node.

The style settings for a selected node.

When you set the node style properties of the control, they are applied in the following order:

.

, , or , depending on the node type.

.

.

.

The class inherits most of its members from the class. It extends the class by providing properties that control the amount of space around the text in a node, as well as the space between adjacent nodes. Use the property to control the amount of space to the left and right of the text in a node. Similarly, the property controls the amount of space above and below the text in a node. You can control the amount of spacing between the node that the is applied to and its adjacent nodes by setting the property. To control the amount of spacing between a parent node and a child node, use the property.

For more information about the inherited style settings, see .

Represents the style of a node in the control.

- Constructor
  To be added.

  Initializes a new instance of the class.

  2.0.0.0
- Constructor
  2.0.0.0

  Use the constructor to create and initialize a new instance of the class by using the object that is specified by the parameter.

  Initializes a new instance of the class with the specified object information.

  A that stores the style information.
- Property
  System.ComponentModel.NotifyParentProperty(true)
  System.ComponentModel.DefaultValue(0)
  System.Web.UI.WebControls.Unit To be added.

  Use the property to control the amount of space above and below the child nodes section of the node to which the class is applied. This spacing is inserted between the parent node and its first child node, as well as between its last child node and the next node.

  The space after the last child node is not rendered if there are no additional nodes following the last child node, because this would leave an unnecessary gap at the bottom of the control.

  To control the amount of space between child nodes, use the property.

  The value of this property is stored in view state.

  Gets or sets the amount of space between a parent node and a child node to which the class is applied.

  2.0.0.0
- 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 object are replaced by the corresponding properties in the specified object.

  To copy style properties without replacing any values that have already been set, use the method.

  Copies the style properties of the specified object into the current object.

  The to copy. 2.0.0.0
- Method
  System.Void `` `` To be added. To be added. To be added. To be added. 2.0.0.0
- Property
  System.ComponentModel.NotifyParentProperty(true)
  System.ComponentModel.DefaultValue(0)
  System.Web.UI.WebControls.Unit To be added.

  Use the property to control the amount of horizontal space around the text of the node to which the is applied. This space is inserted between the left edge of the text and the border of the text area, as well as between the right edge of the text and the border for the text. To control the vertical spacing, use the property.

  The value of this property is stored in view state.

  Gets or sets the amount of space to the left and right of the text in the node.

  2.0.0.0
- Property
  System.ComponentModel.Editor("System.Web.UI.Design.ImageUrlEditor, System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", typeof(System.Drawing.Design.UITypeEditor))
  System.ComponentModel.NotifyParentProperty(true)
  System.Web.UI.UrlProperty
  System.ComponentModel.DefaultValue("")
  System.String To be added.

  Use the property to specify a custom image for style. This image is displayed next to the node, and it can be in any image-file format (such as .jpg, .gif, .bmp, and so on), as long as the client browser supports that format.

  If both the and properties are set, the image that is displayed is the one that is specified by the property.

  The value of this property is stored in view state.

  Gets or sets the URL to an image that is displayed next to the node.

  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.

  The 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 are 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 the style properties of the current object.

  The that will merge with the current node's settings. 2.0.0.0
- Property
  System.ComponentModel.NotifyParentProperty(true)
  System.ComponentModel.DefaultValue(0)
  System.Web.UI.WebControls.Unit To be added.

  Use the property to control the amount of vertical spacing between a node that the is applied to and its adjacent nodes at the same level. This space is inserted between the upper edge of the current node and the lower edge of the previous node, as well as between the lower edge of the current node and upper edge of the next node. The upper space is not rendered for the first node in the control, because this would leave an unnecessary gap at the top of the control.

  The and properties are applied independently. Whether or not the node is expanded does not affect the node spacing.

  The value of this property is stored in view state.

  Gets or sets the amount of vertical spacing between the node to which the object is applied and its adjacent nodes.

  2.0.0.0
- Method
  System.Void

  Use the method to remove any previously defined style elements and reset the object to its original (that is, default) state.

  Returns the object to its original state.

  2.0.0.0
- Property
  System.ComponentModel.NotifyParentProperty(true)
  System.ComponentModel.DefaultValue(0)
  System.Web.UI.WebControls.Unit To be added.

  Use the property to control the amount of vertical space around the text of the node to which the class 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 border for the text. To control the horizontal spacing, use the property.

  The value of this property is stored in view state.

  Gets or sets the amount of space above and below the text for a node.

  2.0.0.0