Intersoft ClientUI Documentation
TooltipText Property
See Also  Send Feedback
Intersoft.Client.UI.Controls.Interactivity Namespace > DragDropBehavior 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 DragDropBehavior
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);
}

Example

You can customize the tooltip by modifying the TooltipIcon and TooltipText properties as shown below.

Sample Code Copy Code
<Border Height="116" Width="100">
    <i:Interaction.Behaviors>
    <Intersoft:DragDropBehavior TooltipIcon="cursor_link.png" 
                                TooltipText="Link"/>
    </i:Interaction.Behaviors>

    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
        </Grid.RowDefinitions>
        <Image Source="folder2.png"/>
        <TextBlock Grid.Row="1" Text="My Archive" HorizontalAlignment="Center"/>
    </Grid>
</Border>

Remarks

Each DragEffect comes with predefined tooltip image and text that indicates the drag action.

  • DragEffect = Copy, shows copy icon and "Copy" tooltip
  • DragEffect = Link, shows link icon and "Link" tooltip
  • DragEffect = Move, shows move icon and "Move" tooltip
  • DragEffect = Space, shows move icon and "Move" tooltip

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.