Class ButtonAdvReflectable
Represents quick button able to reflect functionality of referenced tool strip button.
Inheritance
Implements
Namespace: Syncfusion.Windows.Forms.Tools
Assembly: Syncfusion.Tools.Windows.dll
Syntax
public class ButtonAdvReflectable : ToolStripButton, IQuickItem
Constructors
ButtonAdvReflectable()
Creates new instance of ButtonAdv.
Declaration
public ButtonAdvReflectable()
ButtonAdvReflectable(ButtonAdv)
Constructor of the ButtonAdvReflectable
Declaration
public ButtonAdvReflectable(ButtonAdv reflectedButton)
Parameters
Type | Name | Description |
---|---|---|
ButtonAdv | reflectedButton | The ToolStripButton instance. |
Properties
Enabled
Gets / Sets the QuickButtonReflectable is enabled or disabled.
Declaration
public override bool Enabled { get; set; }
Property Value
Type |
---|
System.Boolean |
ReflectedButton
Gets or sets button that is reflected by current QuickItemButton.
Declaration
public ToolStripButton ReflectedButton { get; set; }
Property Value
Type |
---|
System.Windows.Forms.ToolStripButton |
ReflectedComponent
Gets component that is reflected by current QuickItemButton.
Declaration
public Component ReflectedComponent { get; }
Property Value
Type |
---|
System.ComponentModel.Component |
RightToLeft
Gets or sets a value indicating whether items are to be placed from right to left and text is to be written from right to left.
Declaration
public override RightToLeft RightToLeft { get; set; }
Property Value
Type | Description |
---|---|
System.Windows.Forms.RightToLeft | true if items are to be placed from right to left and text is to be written from right to left; otherwise, false. |
Size
Gets or sets the size of the item.
Declaration
public override Size Size { get; set; }
Property Value
Type | Description |
---|---|
System.Drawing.Size | A System.Drawing.Size, representing the width and height of a rectangle. |
Methods
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. |
OnClick(EventArgs)
Redirects mouse click to reflected button.
Declaration
protected override void OnClick(EventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.EventArgs | e |
OnLayout(LayoutEventArgs)
To update size of the ToolStrip items in 150 scaling
Declaration
protected override void OnLayout(LayoutEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Forms.LayoutEventArgs | e |
OnMouseHover(EventArgs)
Declaration
protected override void OnMouseHover(EventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.EventArgs | e |
OnPaint(PaintEventArgs)
Declaration
protected override void OnPaint(PaintEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Forms.PaintEventArgs | e |
Reflects(IComponent)
Checks whether current class instance reflects given component.
Declaration
public bool Reflects(IComponent c)
Parameters
Type | Name | Description |
---|---|---|
System.ComponentModel.IComponent | c | Provide functionality required by all the components. |
Returns
Type |
---|
System.Boolean |
Reset()
Reset the QuickButtonReflectable.
Declaration
public void Reset()