Class ToolTipItem
Represents a class that maintains the information of the ToolTipItem.
Inheritance
Inherited Members
Namespace: Syncfusion.WinForms.Controls
Assembly: Syncfusion.Shared.Base.dll
Syntax
public class ToolTipItem
Constructors
ToolTipItem()
Initializes a new instance of the ToolTipItem class.
Declaration
public ToolTipItem()
Properties
Control
Gets or sets a control to be added on the ToolTipItem.
Declaration
public Control Control { get; set; }
Property Value
Type |
---|
System.Windows.Forms.Control |
Remarks
If the control is set to the tooltip item, the text, image and other customization cannot be applied to the tooltip item. The assigned control only will be displayed in the tooltip item.
EnableGradientBackground
Gets or sets a value indicating whether gradient background drawing for the ToolTipItem should be enabled or not.
Declaration
public bool EnableGradientBackground { get; set; }
Property Value
Type |
---|
System.Boolean |
Remarks
The gradient brush can be set to the tooltip item by using the
EnableSeparator
Gets or sets a value indicating whether separator line between the ToolTipItem should be enabled or not.
Declaration
public bool EnableSeparator { get; set; }
Property Value
Type |
---|
System.Boolean |
Remarks
If the
Image
Gets or sets the image of the tooltip item.
Declaration
public Image Image { get; set; }
Property Value
Type |
---|
System.Drawing.Image |
ImageIndex
Gets or sets the zero-based index of an image in a
Declaration
public int ImageIndex { get; set; }
Property Value
Type |
---|
System.Int32 |
ImageList
Gets or sets the System.Windows.Forms.ImageList of the tooltip item.
Declaration
public ImageList ImageList { get; set; }
Property Value
Type |
---|
System.Windows.Forms.ImageList |
Remarks
If the
ImageList collection will be only considered when
Padding
Gets or sets the padding of the tooltip item.
Declaration
public Padding Padding { get; set; }
Property Value
Type |
---|
System.Windows.Forms.Padding |
Remarks
The padding is applicable for entire tooltip item i.e. tooltip item's image, text and control will be drawn based on the padding.
Style
Gets or sets the
Declaration
public ToolTipVisualStyle Style { get; set; }
Property Value
Type |
---|
ToolTipVisualStyle |
Text
Gets or sets the ToolTip text of the ToolTipItem.
Declaration
public string Text { get; set; }
Property Value
Type |
---|
System.String |
Methods
ToString()
Overriden. To return a string which represents the object instance.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | Returns a string which represents the objecr instance. |