Class ValuesToolTip
Implements
Inherited Members
Namespace: ZedGraph
Assembly: ZedGraph.WinForms.dll
Syntax
public class ValuesToolTip : IValuesToolTip
Constructors
| Improve this Doc View SourceValuesToolTip(Control, Action<Boolean>, Action<Control, String>)
Initializes a new instance of the ValuesToolTip class.
Declaration
public ValuesToolTip(Control control, Action<bool> activeCallback, Action<Control, string> setToolTipCallback)
Parameters
Type | Name | Description |
---|---|---|
Control | control | The control. |
Action<Boolean> | activeCallback | The active callback. |
Action<Control, String> | setToolTipCallback | The set tool tip callback. |
Exceptions
Type | Condition |
---|---|
ArgumentNullException | control or activeCallback or setToolTipCallback |
Properties
| Improve this Doc View SourceActiveCallback
Gets the delegate that is called when the active state of the tool tip is changed.
Declaration
public Action<bool> ActiveCallback { get; }
Property Value
Type | Description |
---|---|
Action<Boolean> | The active state delegate callback. |
Control
Gets the control that this tool tip instance handles.
Declaration
public Control Control { get; }
Property Value
Type | Description |
---|---|
Control | The control that this tool tip instance handles. |
SetCallback
Gets the callback delegate to call when the caption is set.
Declaration
public Action<Control, string> SetCallback { get; }
Property Value
Type | Description |
---|---|
Action<Control, String> | The callback delegate to call when the caption is set. |
Methods
| Improve this Doc View SourceCreate(Control, ToolTip)
Creates a ValuesToolTip for the specified control, using the supplied tooltip to display values.
Declaration
public static ValuesToolTip Create(Control control, ToolTip toolTip)
Parameters
Type | Name | Description |
---|---|---|
Control | control | The control. |
ToolTip | toolTip | The tool tip. |
Returns
Type | Description |
---|---|
ValuesToolTip |
Exceptions
Type | Condition |
---|---|
ArgumentNullException | toolTip |
Disable()
Disables the tool tip.
Declaration
public void Disable()
Enable()
Enables the tool tip.
Declaration
public void Enable()
Set(String)
Sets the specified caption.
Declaration
public void Set(string caption)
Parameters
Type | Name | Description |
---|---|---|
String | caption | The caption. |
Set(String, Point)
Sets the caption for the tool tip at the specified point.
Declaration
public void Set(string caption, Point point)
Parameters
Type | Name | Description |
---|---|---|
String | caption | The caption. |
Point | point | The point. |