Nevron .NET Vision
Nevron.UI.WinForm.Controls Namespace / NCommand Class / Measure Event


In This Topic
    Measure Event
    In This Topic
    Fired when the NCommand needs measuring (works only if the "OwnMeasure" flag is set to true).
    Syntax
    'Declaration
     
    
    <System.ComponentModel.DescriptionAttribute("Fired when the NCommand needs measuring (works only if the "OwnMeasure" flag is set to true).")>
    Public Event Measure As MeasureCommandEventHandler
    'Usage
     
    
    Dim instance As NCommand
    Dim handler As MeasureCommandEventHandler
     
    AddHandler instance.Measure, handler
    [System.ComponentModel.Description("Fired when the NCommand needs measuring (works only if the "OwnMeasure" flag is set to true).")]
    public event MeasureCommandEventHandler Measure
    Event Data

    The event handler receives an argument of type MeasureCommandEventArgs containing data related to this event. The following MeasureCommandEventArgs properties provide information specific to this event.

    PropertyDescription
    Gets the NCommand object associated with the event. (Inherited from Nevron.UI.WinForm.Controls.CommandEventArgs)
    Gets the Graphics object to measure against.  
    Gets/sets a value whether the event is handled. (Inherited from Nevron.UI.WinForm.Controls.CommandEventArgs)
    Gets/sets the size of the text rect for the command.  
    Gets/sets the size of the command.  
    Gets/sets the size of the text rect for the command.  
    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