Class OfficeDropDownButton
ToolStripDropDownButton for MenuDropDown.
Inheritance
System.Object
OfficeDropDownButton
Namespace: Syncfusion.Windows.Forms.Tools
Assembly: Syncfusion.Tools.Windows.dll
Syntax
public class OfficeDropDownButton : ToolStripDropDownButton
Constructors
OfficeDropDownButton()
Constructor of the OfficeDropDownButton
Declaration
public OfficeDropDownButton()
Properties
DropDownFont
Gets or sets font for DropDown caption.
Declaration
public Font DropDownFont { get; set; }
Property Value
Type |
---|
System.Drawing.Font |
DropDownLocation
Get DropDown location as TopLeft corner of AuxPanel.
Declaration
protected override Point DropDownLocation { get; }
Property Value
Type |
---|
System.Drawing.Point |
DropDownText
Gets or sets caption for DropDown.
Declaration
public string DropDownText { get; set; }
Property Value
Type |
---|
System.String |
Methods
CreateDefaultDropDown()
Base ToolStripDropDown creating replaced.
Declaration
protected override ToolStripDropDown CreateDefaultDropDown()
Returns
Type | Description |
---|---|
System.Windows.Forms.ToolStripDropDown | New instance of OFficeDropDown. |
GetPreferredSize(Size)
Retrieves the size of a rectangular area into which a control can be fit.
Declaration
public override Size GetPreferredSize(Size constrainingSize)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Size | constrainingSize | The custom-sized area for a control. |
Returns
Type | Description |
---|---|
System.Drawing.Size | A System.Drawing.Size ordered pair, representing the width and height of a rectangle. |
OnDropDownOpened(EventArgs)
Declaration
protected override void OnDropDownOpened(EventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.EventArgs | e |
OnMouseEnter(EventArgs)
Declaration
protected override void OnMouseEnter(EventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.EventArgs | e |
OnMouseLeave(EventArgs)
Declaration
protected override void OnMouseLeave(EventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.EventArgs | e |