FoldedRegionButton
Folded region button implementation class..
Definition
Namespace:Telerik.WinForms.Controls.SyntaxEditor.UI
Assembly:Telerik.WinControls.SyntaxEditor.dll
Syntax:
public class FoldedRegionButton : FrameworkElement, IDisposable, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IStylableNode, ISupportDrop
Inheritance: objectDisposableObjectRadObjectRadElementVisualElementUIElementFrameworkElementFoldedRegionButton...
Implements:
Inherited Members
Constructors
Initializes a new instance of the FoldedRegionButton class.
public FoldedRegionButton()
Fields
Registers the text dependency property.
public static readonly RadProperty TextProperty
Properties
Gets the cached drawing font created from FontFamily, FontSize, FontStyle, and FontWeight.
public Font Font { get; }
Gets or sets the font family used to measure and draw the folded-region text.
public FontFamily FontFamily { get; set; }
Gets or sets the font size used to measure and draw the folded-region text.
public double FontSize { get; set; }
Gets or sets the font style used to measure and draw the folded-region text.
public FontStyle FontStyle { get; set; }
Gets or sets the font weight used to measure and draw the folded-region text.
public FontWeight FontWeight { get; set; }
Methods
Raises DoubleClick when the button detects a double click.
protected virtual void OnDoubleClick()
Starts the double-click timer on the first mouse press and raises DoubleClick on a second press within the timer interval.
protected override void OnMouseDown(MouseEventArgs e)
The mouse event data.
Overrides:
Updates the owning control's cursor to match this button's cursor.
protected override void OnMouseMove(MouseEventArgs e)
The mouse event data.
Overrides:
Clears the cached drawing font when one of its font properties changes.
protected override void OnNotifyPropertyChanged(string propertyName)
The name of the changed property.
Overrides:
Events
Occurs on mouse double click.
public event EventHandler DoubleClick