TreeNodeStyle
Stores per-node font, text color, text alignment, fill, border, and gradient overrides. Full-row selection determines whether fill, border, and gradient values apply to the row or node content.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class TreeNodeStyle : INotifyPropertyChanged
Inheritance: objectTreeNodeStyle
Implements:
Constructors
Initializes all colors to Empty, four gradient colors with a linear style, 0.5 gradient percentages, a gradient angle of 90, and MiddleLeft text alignment. Font is initially null.
public TreeNodeStyle()
Properties
Gets or sets the color of the back.
public Color BackColor { get; set; }
The color of the back.
Gets or sets the back color2.
public Color BackColor2 { get; set; }
The back color2.
Gets or sets the back color3.
public Color BackColor3 { get; set; }
The back color3.
Gets or sets the back color4.
public Color BackColor4 { get; set; }
The back color4.
Gets or sets the color of the border.
public Color BorderColor { get; set; }
The color of the border.
Gets or sets the color of the fore.
public Color ForeColor { get; set; }
The color of the fore.
Gets or sets the gradient angle.
public float GradientAngle { get; set; }
The gradient angle.
Gets or sets the gradient percentage.
public float GradientPercentage { get; set; }
The gradient percentage.
Gets or sets the gradient percentage2.
public float GradientPercentage2 { get; set; }
The gradient percentage2.
Gets or sets the gradient style.
public GradientStyles GradientStyle { get; set; }
The gradient style.
Gets or sets the number of colors.
public int NumberOfColors { get; set; }
The number of colors.
Gets or sets the text alignment.
public ContentAlignment TextAlignment { get; set; }
The text alignment.
Methods
Raises PropertyChanged with the supplied event data when handlers are registered.
protected virtual void OnNotifyPropertyChanged(PropertyChangedEventArgs args)
The property-change notification data.
Creates event data from the supplied property name and forwards it to the notification overload.
protected virtual void OnNotifyPropertyChanged(string name)
The property name to include in the notification.
Events
Occurs after a style property setter assigns a value. The RadTreeNode uses this notification to refresh its visual state.
The BackColor2 setter currently reports backColor2 as the property name.
public event PropertyChangedEventHandler PropertyChanged
Implements: