Class SmartTagBase
The base class for smart tags.
Namespace: FastReport
Assembly: FastReport.dll
Syntax
public class SmartTagBase
Remarks
"Smart tag" is a little button that appears near the object's top-right corner when we are in the designer and move the mouse over the object. When you click that button you will see a popup window where you can set up some properties of the object. FastReport uses smart tags to quickly choose the datasource (for a band) or data column (for objects).
Smart tag is internally a ContextMenuStrip.
Constructors
SmartTagBase(ComponentBase)
Initializes a new instance of the SmartTagBase class with default settings.
Declaration
public SmartTagBase(ComponentBase obj)
Parameters
Type | Name | Description |
---|---|---|
ComponentBase | obj | Report object that owns this smart tag. |
Properties
Designer
Gets the report designer.
Declaration
public Designer Designer { get; }
Property Value
Type | Description |
---|---|
Designer |
Menu
Gets the underlying context menu.
Declaration
public ContextMenuStrip Menu { get; }
Property Value
Type | Description |
---|---|
System.Windows.Forms.ContextMenuStrip |
Obj
Gets the report object that invokes this smart tag.
Declaration
public ComponentBase Obj { get; }
Property Value
Type | Description |
---|---|
ComponentBase |
Methods
CreateItems()
Creates the smart tag menu items.
Declaration
protected virtual void CreateItems()
Remarks
Override this method to create the smart tag menu.
ItemClicked()
Called when the menu item is clicked.
Declaration
protected virtual void ItemClicked()
Remarks
Override this method to define a reaction on the menu item click.
Show(Control, Point)
Displays a smart tag at the specified location.
Declaration
public void Show(Control control, Point pt)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Forms.Control | control | Control. |
System.Drawing.Point | pt | Location. |
Remarks
Do not call this method directly. It is called automatically when click on smart tag button.