Nevron .NET Vision
Nevron.GraphicsCore Namespace / NCursorAttribute Class / Type Property
Example


In This Topic
    Type Property (NCursorAttribute)
    In This Topic
    The cursor type when the mouse is over the object.
    Syntax
    'Declaration
     
    
    <System.ComponentModel.CategoryAttribute("General")>
    <System.ComponentModel.DescriptionAttribute("The cursor type when the mouse is over the object.")>
    <System.ComponentModel.DefaultValueAttribute(Mono.Cecil.CustomAttributeArgument)>
    <System.Xml.Serialization.XmlAttributeAttribute()>
    Public Property Type As CursorType
    'Usage
     
    
    Dim instance As NCursorAttribute
    Dim value As CursorType
     
    instance.Type = value
     
    value = instance.Type
    [System.ComponentModel.Category("General")]
    [System.ComponentModel.Description("The cursor type when the mouse is over the object.")]
    [System.ComponentModel.DefaultValue(Mono.Cecil.CustomAttributeArgument)]
    [System.Xml.Serialization.XmlAttribute()]
    public CursorType Type {get; set;}
    Remarks
    For Windows Forms applications you must also add a NCursorChangeInteractivityOperation object to the InteractivityOperations collection of the control. For Web forms you must use a response type of HTML image map or HMTL postback in order for this property to take effect.
    Example
    The following code changes the cursor type of a label:
    NChartControl.InteractivityOperations.Add(New NCursorChangeInteractivityOperation())
                
    Dim label As NLabel =  NChartControl.Labels.AddHeader("Cursor hand") 
    label.InteractivityStyle.CursorType = CursorType.Hand
    NChartControl.InteractivityOperations.Add(new NCursorChangeInteractivityOperation());
                
    NLabel label = NChartControl.Labels.AddHeader("Cursor hand");
    label.InteractivityStyle.CursorType = CursorType.Hand;
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also