ICreate.Controls.Bars Send comments on this topic.
CommandLink Class
See Also  Members  
ICreate.Controls.Bars Namespace : CommandLink Class






CommandLink is an enhanced version of the standard Windows Forms LinkLabel control.

Syntax

Visual Basic (Declaration) 
Public Class CommandLink 
   Inherits CommandItem
   Implements IMouseEventProcessor 
Visual Basic (Usage)Copy Code
Dim instance As CommandLink
C# 
public class CommandLink : CommandItem, IMouseEventProcessor  
Delphi 
public class CommandLink = class(CommandItem, IMouseEventProcessor)
JScript 
public class CommandLink extends CommandItem implements IMouseEventProcessor 
Managed Extensions for C++ 
public __gc class CommandLink : public CommandItem, IMouseEventProcessor  
C++/CLI 
public ref class CommandLink : public CommandItem, IMouseEventProcessor  

Remarks

CommandLink is a replacement for the standard WinForm LinkLabel control. CommandLink provides a number of additional features not found in the standard LinkLabel. CommandLink can display Text and an image. The image is specified by setting the Image property or assigning an ImageList to the CommandLink and specifying an ImageIndex or ImageKey. If Animate is true then the image animates to an expanded state when the CommandLink is hot and animates back to its normal size when the CommandLink becomes cold.

The background and Text colour of the CommandLink change depending on its state. The following colours can be specified for a CommandLink: ForeColor, BackColor, HotTrackForeColor, HotTrackBackColorPressedForeColor, PressedBackColor, CheckedForeColor and CheckedBackColor. If Animate is true then the colour transitions occur using a fade affect. If Animate is false then the colour transitions are abrupt.

ContextMenuStrip may be assigned to the CommandLink. This menu is displayed when the CommandLink is pressed.

A CommandLink can automatically toggle its Checked property if CheckOnClick is set true.

A CommandLink automatically resize or adjusts its height depending on the Text and Image. Set AutomaticSize true for the CommandLink to automatically adjust its Size. Set AutomaticHeight true for the CommandLink to maintain the correct Height. In this case the Width is freely adjustable. Note that the Text will wrap if required.

Inheritance Hierarchy

System.Object
   System.MarshalByRefObject
      System.ComponentModel.Component
         System.Windows.Forms.Control
            ICreate.Controls.Bars.CommandItem
               ICreate.Controls.Bars.CommandLink

Requirements

Namespace: ICreate.Controls.Bars

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

Assembly: ICreate.Controls.Bars (in ICreate.Controls.Bars.dll)

See Also