Intersoft ClientUI Documentation
TooltipText Property
See Also  Send Feedback
Intersoft.Client.UI.Controls.Interactivity Namespace > DropTargetBehavior Class : TooltipText Property






Gets or sets the text of the tooltip.

Syntax

Visual Basic (Declaration) 
<CategoryAttribute("Tooltip")>
Public Property TooltipText As String
Visual Basic (Usage)Copy Code
Dim instance As DropTargetBehavior
Dim value As String
 
instance.TooltipText = value
 
value = instance.TooltipText
C# 
[CategoryAttribute("Tooltip")]
public string TooltipText {get; set;}
Delphi 
public read-write property TooltipText: String; 
JScript 
CategoryAttribute("Tooltip")
public function get,set TooltipText : String
Managed Extensions for C++ 
[CategoryAttribute("Tooltip")]
public: __property string* get_TooltipText();
public: __property void set_TooltipText( 
   string* value
);
C++/CLI 
[CategoryAttribute("Tooltip")]
public:
property String^ TooltipText {
   String^ get();
   void set (    String^ value);
}

Remarks

You can customize the tooltip text and icon of the drag-drop visual cues when the dragged object is over the drop target. The DropTargetBehavior already has the properties that allow you customize it directly in the form of TooltipIcon and TooltipText as explained in the following code.

Customizing Tooltip Copy Code
<Grid HorizontalAlignment="Center" Height="100" VerticalAlignment="Center" Width="100" Background="Gray" AllowDrop="True">
    <i:Interaction.Behaviors>
        <Intersoft:DropTargetBehavior AllowDropItem="True" TooltipIcon="accept.png" TooltipText="Drop here."/>
    </i:Interaction.Behaviors>
</Grid>

For the first two approaches, you need to manually change the tooltip text and icon during DragEnter event. To learn more how to handle DragEnter event, see How to: Change tooltip when hovering drop target.

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2012 All Rights Reserved.